public DomainService( IDomainState domainState, IMeterService meterService, IRepository <IMachineAdapter> machineRepository, IRepository <IMonitorAdapter> monitorRepository, IValidator <IMachineAdapter> machineValidator, IValidator <IMonitorAdapter> monitorValidator) { _domainState = domainState.Guard(nameof(domainState)); _meterService = meterService.Guard(nameof(meterService)); _machineRepository = machineRepository.Guard(nameof(machineRepository)); _monitorRepository = monitorRepository.Guard(nameof(monitorRepository)); _machineValidator = machineValidator.Guard(nameof(machineValidator)); _monitorValidator = monitorValidator.Guard(nameof(monitorValidator)); }