PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/Source/Bifrost.Specs/Events/for_EventSubscriptionRepository/when_getting_for_a_specific_event_type_and_there_are_two_subscriptions.cs

#
C# | 17 lines | 14 code | 3 blank | 0 comment | 0 complexity | d136667d6ff763e82d7d7da298838a6d MD5 | raw file
 1using System.Collections.Generic;
 2using System.Linq;
 3using Bifrost.Events;
 4using Bifrost.Fakes.Events;
 5using Machine.Specifications;
 6
 7namespace Bifrost.Specs.Events.for_EventSubscriptionRepository
 8{
 9    public class when_getting_for_a_specific_event_type_and_there_are_two_subscriptions_for_different_event_types : given.an_event_subscription_repository_with_two_subscriptions_for_different_event_types
10    {
11        static IEnumerable<EventSubscription> result;
12
13        Because of = () => result = repository.GetForEvent(typeof(SimpleEvent));
14
15        It should_return_one_event = () => result.Count().ShouldEqual(1);
16    }
17}