private DeviceModelApiModelOverride GetEmptyDeviceModelApiModelOverride() { var deviceModelApiModelOverride = new DeviceModelApiModelOverride() { Simulation = new DeviceModelSimulationOverride(), Telemetry = new List <DeviceModelTelemetryOverride>() }; return(deviceModelApiModelOverride); }
public void ItReturnsDeviceModelApiModelOverrideFromServiceModel() { // Arrange var deviceModelOverride = this.GetDeviceModelOverride(); // Act var result = DeviceModelApiModelOverride.FromServiceModel(deviceModelOverride); // Assert Assert.IsType <DeviceModelApiModelOverride>(result); }
private DeviceModelApiModelOverride GetDeviceModelApiModelOverride() { var deviceModelApiModelOverride = new DeviceModelApiModelOverride() { Simulation = new DeviceModelSimulationOverride() { Interval = "00:10:00" }, Telemetry = new List <DeviceModelTelemetryOverride>() { new DeviceModelTelemetryOverride() } }; return(deviceModelApiModelOverride); }