public object PopulateDeviceWithTelemetryEvents(IDevice device)
        {
            var startupTelemetry = new StartupTelemetry(_logger, device);
            device.TelemetryEvents.Add(startupTelemetry);

            var monitorTelemetry = new RemoteMonitorTelemetry(_logger, device.DeviceID);
            device.TelemetryEvents.Add(monitorTelemetry);

            return monitorTelemetry;
        }
        public object PopulateDeviceWithTelemetryEvents(IDevice device)
        {
            var startupTelemetry = new StartupTelemetry(_logger, device);
            device.TelemetryEvents.Add(startupTelemetry);

            var monitorTelemetry = new PredictiveMaintenanceTelemetry(_config, _logger, device.DeviceID, _dataset);
            device.TelemetryEvents.Add(monitorTelemetry);

            return monitorTelemetry;
        }
        public StartupTelemetryTests()
        {
            this._fixture = new Fixture();

            this._loggerMock = new Mock <ILogger>();
            this._device     = this._fixture.Create <DeviceBase>();

            this.telemetry = new StartupTelemetry(this._loggerMock.Object, this._device);

            this._loggerMock.Setup(mock => mock.LogInfo(It.IsAny <string>(), this._device.DeviceID));
        }
Пример #4
0
        public object PopulateDeviceWithTelemetryEvents(IDevice device)
        {
            var startupTelemetry = new StartupTelemetry(_logger, device);

            device.TelemetryEvents.Add(startupTelemetry);

            var monitorTelemetry = new RemoteMonitorTelemetry(_logger, device.DeviceID);

            device.TelemetryEvents.Add(monitorTelemetry);

            return(monitorTelemetry);
        }
Пример #5
0
        public object PopulateDeviceWithTelemetryEvents(IDevice device)
        {
            var startupTelemetry = new StartupTelemetry(_logger, device);

            device.TelemetryEvents.Add(startupTelemetry);

            var monitorTelemetry = new PredictiveMaintenanceTelemetry(_config, _logger, device.DeviceID, _dataset);

            device.TelemetryEvents.Add(monitorTelemetry);

            return(monitorTelemetry);
        }