public ApiResourceCommandHandlerTests() { _faker = new Faker(); _tokenSource = new CancellationTokenSource(); _uow = new Mock <IUnitOfWork>(); _mediator = new Mock <IMediatorHandler>(); _notifications = new Mock <DomainNotificationHandler>(); _apiResourceRepository = new Mock <IApiResourceRepository>(); _commandHandler = new ApiResourceCommandHandler(_uow.Object, _mediator.Object, _notifications.Object, _apiResourceRepository.Object); }
public ApiResourcesController( INotificationHandler <DomainNotification> notifications, IMediatorHandler mediator, IApiResourceAppService apiResourceAppService, IUnitOfWork uow, IMediatorHandler bus, IApiResourceRepository apiRepository) : base(notifications, mediator) { _apiResourceAppService = apiResourceAppService; _command = new ApiResourceCommandHandler(uow, bus, notifications, apiRepository); }