/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
- using Bifrost.Events;
- using Bifrost.Execution;
- using Machine.Specifications;
- using Moq;
-
- namespace Bifrost.Specs.Events.for_EventSubscriptionManager.given
- {
- public class an_event_subscription_manager
- {
- protected static EventSubscriptionManager event_subscription_manager;
- protected static Mock<IEventSubscriptionRepository> event_subscription_repository_mock;
- protected static Mock<ITypeDiscoverer> type_discoverer_mock;
- protected static Mock<IContainer> container_mock;
-
- Establish context = () =>
- {
- event_subscription_repository_mock = new Mock<IEventSubscriptionRepository>();
- type_discoverer_mock = new Mock<ITypeDiscoverer>();
- container_mock = new Mock<IContainer>();
- event_subscription_manager = new EventSubscriptionManager(event_subscription_repository_mock.Object, type_discoverer_mock.Object, container_mock.Object);
- };
- }
- }