public BaseController(IUnitOfWork unitOfWork, IDomainNotifications domainNotifications, IEventDispatcher eventDispatcher, IMediator mediator)
 {
     _unitOfWork          = unitOfWork;
     _domainNotifications = domainNotifications;
     _eventDispatcher     = eventDispatcher;
     _mediator            = mediator;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// This method should be used only for testing purpose
 /// Under normal use the container is obtained via DI
 /// </summary>
 /// <param name="mockContainer"></param>
 public static void SetNotificationsContainer(IDomainNotifications mockContainer)
 {
     if (_fromTesting == false)
     {
         throw new Exception(@"For SetNotificationsContainer to work properly SetTestingEnvironment() should be called first. 
                               This method should be used only for testing purpose");
     }
     _mockContainer = mockContainer;
 }
Ejemplo n.º 3
0
 public AuthorController(IUnitOfWork unitOfWork,
                         IDomainNotifications domainNotifications,
                         IEventDispatcher eventDispatcher,
                         IMediator mediator) : base(unitOfWork, domainNotifications, eventDispatcher, mediator)
 {
 }
Ejemplo n.º 4
0
 public Orchestrator(IMediator mediator, IDomainNotifications domainNotifications)
 {
     _mediator            = mediator;
     _domainNotifications = domainNotifications;
 }