public BaseController(IUnitOfWork unitOfWork, IDomainNotifications domainNotifications, IEventDispatcher eventDispatcher, IMediator mediator) { _unitOfWork = unitOfWork; _domainNotifications = domainNotifications; _eventDispatcher = eventDispatcher; _mediator = mediator; }
/// <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; }
public AuthorController(IUnitOfWork unitOfWork, IDomainNotifications domainNotifications, IEventDispatcher eventDispatcher, IMediator mediator) : base(unitOfWork, domainNotifications, eventDispatcher, mediator) { }
public Orchestrator(IMediator mediator, IDomainNotifications domainNotifications) { _mediator = mediator; _domainNotifications = domainNotifications; }