diff --git a/src/AzureIoTHub.Portal.Server.Tests.Unit/Controllers/v1.0/LoRaWAN/LoRaWANConcentratorsControllerTest.cs b/src/AzureIoTHub.Portal.Server.Tests.Unit/Controllers/v1.0/LoRaWAN/LoRaWANConcentratorsControllerTest.cs index 7cf1e7f60..103fb7f5c 100644 --- a/src/AzureIoTHub.Portal.Server.Tests.Unit/Controllers/v1.0/LoRaWAN/LoRaWANConcentratorsControllerTest.cs +++ b/src/AzureIoTHub.Portal.Server.Tests.Unit/Controllers/v1.0/LoRaWAN/LoRaWANConcentratorsControllerTest.cs @@ -391,11 +391,6 @@ public async Task WhenGetDeviceThrowAnErrorUpdateDeviceAsyncWithValidArgumentSho RouterConfig = new RouterConfig() }; - var twin = new Twin - { - DeviceId = concentrator.DeviceId, - }; - _ = this.mockDeviceService.Setup(x => x.GetDevice(It.Is(c => c == concentrator.DeviceId))) .ThrowsAsync(new InternalServerErrorException("")); @@ -421,11 +416,6 @@ public async Task WhenUpdateDeviceThrowAnErrorUpdateDeviceAsyncWithValidArgument RouterConfig = new RouterConfig() }; - var twin = new Twin - { - DeviceId = concentrator.DeviceId, - }; - var device = new Device(concentrator.DeviceId); _ = this.mockDeviceService.Setup(x => x.GetDevice(It.Is(c => c == concentrator.DeviceId)))