Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task 988/Refactor EdgeDevicesController #1113

Merged
merged 11 commits into from
Aug 23, 2022
Original file line number Diff line number Diff line change
@@ -247,7 +247,7 @@ public async Task UpdateDeviceAsyncStateUnderTestExpectedBehavior()
.ReturnsAsync(twin);
_ = this.mockDeviceService.Setup(c => c.UpdateDevice(It.Is<Device>(x => x.Id == item.Id)))
.ReturnsAsync(item);
_ = this.mockDeviceService.Setup(c => c.UpdateDeviceTwin(It.Is<string>(x => x == device.DeviceID), It.Is<Twin>(x => x.DeviceId == device.DeviceID)))
_ = this.mockDeviceService.Setup(c => c.UpdateDeviceTwin(It.Is<Twin>(x => x.DeviceId == device.DeviceID)))
.ReturnsAsync(twin);

_ = this.mockDeviceTwinMapper.Setup(x => x.UpdateTwin(It.Is<Twin>(x => x == twin), It.Is<DeviceDetails>(x => x == device)));
@@ -580,7 +580,6 @@ public async Task SetPropertiesShouldUpdateDesiredProperties()
.ReturnsAsync(twin);

_ = this.mockDeviceService.Setup(c => c.UpdateDeviceTwin(
It.Is<string>(c => c == "aaa"),
It.Is<Twin>(c => c == twin)))
.ReturnsAsync(twin);

@@ -680,7 +679,6 @@ public async Task WhenPropertyNotWrittableSetPropertiesShouldNotUpdateDesiredPro
.ReturnsAsync(twin);

_ = this.mockDeviceService.Setup(c => c.UpdateDeviceTwin(
It.Is<string>(c => c == "aaa"),
It.Is<Twin>(c => c == twin)))
.ReturnsAsync(twin);

@@ -741,7 +739,6 @@ public async Task WhenPropertyNotInModelSetPropertiesShouldNotUpdateDesiredPrope
.ReturnsAsync(twin);

_ = this.mockDeviceService.Setup(c => c.UpdateDeviceTwin(
It.Is<string>(c => c == "aaa"),
It.Is<Twin>(c => c == twin)))
.ReturnsAsync(twin);

Loading