public MachineStartupActionHandler(
     IMachineRepository machineRepository,
     IVendingMachineControlService machineControlService,
     ILogger <MachineStartupActionHandler> logger)
 {
     _machineRepository     = machineRepository ?? throw new ArgumentNullException(nameof(machineRepository));
     _machineControlService = machineControlService ?? throw new ArgumentNullException(nameof(machineControlService));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Example #2
0
 public MachinesController(IMachineRepository machineRepository, IVendingMachineControlService vendingMachineControlService)
 {
     _machineRepository            = machineRepository;
     _vendingMachineControlService = vendingMachineControlService;
 }