public OrderControllerService(IConfigurationService configurationService, IDatabaseRepository databaseRepository, IMapper mapper, IEventingService eventingService, IEmailService emailService, ICacheService cacheService) { if (databaseRepository == null) { throw new ArgumentNullException(nameof(databaseRepository)); } if (mapper == null) { throw new ArgumentNullException(nameof(mapper)); } if (eventingService == null) { throw new ArgumentNullException(nameof(eventingService)); } if (emailService == null) { throw new ArgumentNullException(nameof(emailService)); } if (cacheService == null) { throw new ArgumentNullException(nameof(cacheService)); } _configurationService = configurationService; _databaseRepository = databaseRepository; _mapper = mapper; _eventingService = eventingService; _emailService = emailService; _cacheService = cacheService; }
public OrderControllerService(IConfigurationService configurationService, IDatabaseRepository databaseRepository, IMapper mapper, IEventingService eventingService, IEmailService emailService, ICacheService cacheService) { if (databaseRepository == null) throw new ArgumentNullException(nameof(databaseRepository)); if (mapper == null) throw new ArgumentNullException(nameof(mapper)); if (eventingService == null) throw new ArgumentNullException(nameof(eventingService)); if (emailService == null) throw new ArgumentNullException(nameof(emailService)); if (cacheService == null) throw new ArgumentNullException(nameof(cacheService)); _configurationService = configurationService; _databaseRepository = databaseRepository; _mapper = mapper; _eventingService = eventingService; _emailService = emailService; _cacheService = cacheService; }