public MiniDataHandler(QboxDataDumpContext context, IQboxMessagesLogger qboxMessagesLogger, IParserFactory parserFactory, IDateTimeService dateTimeService) { _context = context ?? throw new ArgumentNullException(nameof(context)); _qboxMessagesLogger = qboxMessagesLogger ?? new QboxMessagesNullLogger(); _parserFactory = parserFactory ?? throw new ArgumentNullException(nameof(parserFactory)); _dateTimeService = dateTimeService ?? throw new ArgumentNullException(nameof(dateTimeService)); }
public DeviceController(IQboxDataDumpContextFactory qboxDataDataDumpContextFactory, IParserFactory parserFactory, ILogger <DeviceController> logger) { _qboxDataDumpContextFactory = qboxDataDataDumpContextFactory ?? throw new ArgumentNullException(nameof(qboxDataDataDumpContextFactory)); _parserFactory = parserFactory ?? throw new ArgumentNullException(nameof(parserFactory)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _qboxMessagesLogger = new QboxMessagesNullLogger(); }