/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
Possible License(s): CC-BY-SA-3.0
- using System.Collections.Generic;
- using System.Linq;
- using Bifrost.Events;
- using Machine.Specifications;
-
- namespace Bifrost.Specs.Events.for_EventSubscriptionManager
- {
- public class when_getting_all_subscriptions_and_there_is_none_in_running_process : given.an_event_subscription_manager_with_one_subscriber_from_repository
- {
- static IEnumerable<EventSubscription> subscriptions;
-
- Because of = () => subscriptions = event_subscription_manager.GetAllSubscriptions();
-
- It should_return_one_subscription = () => subscriptions.Count().ShouldEqual(1);
- }
- }