public MonitorsController(ILogger <MonitorsController> logger, IMonitorModelFactory modelFactory, IMonitorRepository <MonitorProcess> monitorRepository, ICheckInRepository <CheckIn> checkInRepository) { _logger = logger ?? throw new ArgumentNullException(nameof(MonitorsController)); _monitorModelFactory = modelFactory ?? throw new ArgumentNullException(nameof(MonitorsController)); _monitorRepository = monitorRepository ?? throw new ArgumentNullException(nameof(MonitorRepository)); _checkInRepository = checkInRepository ?? throw new ArgumentNullException(nameof(CheckInRepository)); }
public Builder WithModelFactory(IMonitorModelFactory modelFactory) { _factoryModel = modelFactory; return(this); }