public SomeDataCommandHandler(IEventBus eventBus, SomeDataContext dbContext, ISomeDataWriteRepository someDataWriteRepository, IBusinessUserRepository businessUserRepositoy) { _eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus)); _dbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext)); _someDataWriteRepository = someDataWriteRepository ?? throw new ArgumentNullException(nameof(someDataWriteRepository)); _businessUserRepositoy = businessUserRepositoy ?? throw new ArgumentNullException(nameof(businessUserRepositoy)); }
public SomeDataController(ISomeDataReadService someDataReadService, ICommandBus commandBus, IUserService userService, IBusinessUserRepository businessUserRepositoy) { _someDataReadService = someDataReadService ?? throw new ArgumentNullException(nameof(someDataReadService)); _commandBus = commandBus ?? throw new ArgumentNullException(nameof(commandBus)); _userService = userService ?? throw new ArgumentNullException(nameof(userService)); _businessUserRepositoy = businessUserRepositoy ?? throw new ArgumentNullException(nameof(businessUserRepositoy)); }
public BusinessUserCommandHandler(IBusinessUserRepository businessUserRepositoy, IEventBus eventBus) { _businessUserRepositoy = businessUserRepositoy ?? throw new ArgumentNullException(nameof(businessUserRepositoy)); _eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus)); }