예제 #1
0
        public RemoteMonitorTelemetryTests()
        {
            this._loggerMock  = new Mock <ILogger>();
            this.testDeviceId = "testDeviceId";

            this.telemetry = new RemoteMonitorTelemetry(this._loggerMock.Object, this.testDeviceId);
        }
        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;
        }
예제 #3
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);
        }