PageRenderTime 27ms CodeModel.GetById 18ms app.highlight 5ms RepoModel.GetById 2ms app.codeStats 0ms

/Source/Bifrost.Specs/Events/for_EventSubscriptionManager/given/an_event_subscription_manager.cs

#
C# | 23 lines | 21 code | 2 blank | 0 comment | 0 complexity | 7ec0858f51afc38cf7cb31d345479c83 MD5 | raw file
 1using Bifrost.Events;
 2using Bifrost.Execution;
 3using Machine.Specifications;
 4using Moq;
 5
 6namespace Bifrost.Specs.Events.for_EventSubscriptionManager.given
 7{
 8    public class an_event_subscription_manager
 9    {
10        protected static EventSubscriptionManager event_subscription_manager;
11        protected static Mock<IEventSubscriptionRepository> event_subscription_repository_mock;
12        protected static Mock<ITypeDiscoverer> type_discoverer_mock;
13        protected static Mock<IContainer> container_mock;
14
15        Establish context = () =>
16        {
17            event_subscription_repository_mock = new Mock<IEventSubscriptionRepository>();
18            type_discoverer_mock = new Mock<ITypeDiscoverer>();
19            container_mock = new Mock<IContainer>();
20            event_subscription_manager = new EventSubscriptionManager(event_subscription_repository_mock.Object, type_discoverer_mock.Object, container_mock.Object);
21        };
22    }
23}