PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/Source/Bifrost.Specs/Events/for_EventSubscriptionManager/when_getting_all_subscriptions_and_there_is_none_in_running_process.cs

#
C# | 16 lines | 13 code | 3 blank | 0 comment | 0 complexity | d5242be5e1ec960416692c0412868fae MD5 | raw file
 1using System.Collections.Generic;
 2using System.Linq;
 3using Bifrost.Events;
 4using Machine.Specifications;
 5
 6namespace Bifrost.Specs.Events.for_EventSubscriptionManager
 7{
 8    public class when_getting_all_subscriptions_and_there_is_none_in_running_process : given.an_event_subscription_manager_with_one_subscriber_from_repository
 9    {
10        static IEnumerable<EventSubscription> subscriptions;
11
12        Because of = () => subscriptions = event_subscription_manager.GetAllSubscriptions();
13
14        It should_return_one_subscription = () => subscriptions.Count().ShouldEqual(1);
15    }
16}