Пример #1
0
 public DowntimeRepository(
     IconicsContext context,
     FmsbOeeContext fmsbOeeContext,
     Fmsb2Context fmsb2Context
     )
 {
     _context        = context ?? throw new ArgumentNullException(nameof(context));
     _fmsbOeeContext =
         fmsbOeeContext ?? throw new ArgumentNullException(nameof(fmsbOeeContext));
     _fmsb2Context = fmsb2Context;
 }
Пример #2
0
 public OeeService(
     IProductionService productionService,
     IScrapService scrapService,
     IDowntimeRepository downtimeRepository,
     FmsbOeeContext fmsbOeeContext
     )
 {
     _productionService =
         productionService ?? throw new ArgumentNullException(nameof(productionService));
     _scrapService       = scrapService ?? throw new ArgumentNullException(nameof(scrapService));
     _downtimeRepository =
         downtimeRepository ?? throw new ArgumentNullException(nameof(downtimeRepository));
     _fmsbOeeContext =
         fmsbOeeContext ?? throw new ArgumentNullException(nameof(fmsbOeeContext));
 }
Пример #3
0
 public MachineController(FmsbOeeContext context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }
 public DowntimeReasonsController(FmsbOeeContext context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }
 public OeeController(FmsbOeeContext context, IOeeService oeeService)
 {
     _context    = context ?? throw new ArgumentNullException(nameof(context));
     _oeeService = oeeService ?? throw new ArgumentNullException(nameof(oeeService));
 }