PageRenderTime 43ms CodeModel.GetById 19ms RepoModel.GetById 0ms 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
Possible License(s): CC-BY-SA-3.0
  1. using Bifrost.Events;
  2. using Bifrost.Execution;
  3. using Machine.Specifications;
  4. using Moq;
  5. namespace Bifrost.Specs.Events.for_EventSubscriptionManager.given
  6. {
  7. public class an_event_subscription_manager
  8. {
  9. protected static EventSubscriptionManager event_subscription_manager;
  10. protected static Mock<IEventSubscriptionRepository> event_subscription_repository_mock;
  11. protected static Mock<ITypeDiscoverer> type_discoverer_mock;
  12. protected static Mock<IContainer> container_mock;
  13. Establish context = () =>
  14. {
  15. event_subscription_repository_mock = new Mock<IEventSubscriptionRepository>();
  16. type_discoverer_mock = new Mock<ITypeDiscoverer>();
  17. container_mock = new Mock<IContainer>();
  18. event_subscription_manager = new EventSubscriptionManager(event_subscription_repository_mock.Object, type_discoverer_mock.Object, container_mock.Object);
  19. };
  20. }
  21. }