Esempio n. 1
0
 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));
 }
Esempio n. 2
0
 public Builder WithModelFactory(IMonitorModelFactory modelFactory)
 {
     _factoryModel = modelFactory;
     return(this);
 }