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)); }
public MachinesController(IMachineRepository machineRepository, IVendingMachineControlService vendingMachineControlService) { _machineRepository = machineRepository; _vendingMachineControlService = vendingMachineControlService; }