diff --git a/src/IoTHub.Portal.Tests.Unit/Client/Services/DeviceModelsClientServiceTests.cs b/src/IoTHub.Portal.Tests.Unit/Client/Services/DeviceModelsClientServiceTests.cs index d2df6043c..dee66aed8 100644 --- a/src/IoTHub.Portal.Tests.Unit/Client/Services/DeviceModelsClientServiceTests.cs +++ b/src/IoTHub.Portal.Tests.Unit/Client/Services/DeviceModelsClientServiceTests.cs @@ -181,7 +181,7 @@ public async Task SetDeviceModelModelPropertiesShouldSetDeviceModelModelProperti var deviceModel = Fixture.Create(); var expectedDeviceModelProperties = Fixture.Build().CreateMany(3).ToList(); - _ = MockHttpClient.When(HttpMethod.Get, $"/api/models/{deviceModel.ModelId}/properties") + _ = MockHttpClient.When(HttpMethod.Post, $"/api/models/{deviceModel.ModelId}/properties") .With(m => { _ = m.Content.Should().BeAssignableTo>>(); diff --git a/src/IoTHub.Portal.Tests.Unit/Client/Services/EdgeModelClientServiceTest.cs b/src/IoTHub.Portal.Tests.Unit/Client/Services/EdgeModelClientServiceTest.cs index 8f44c2a75..275ff3d79 100644 --- a/src/IoTHub.Portal.Tests.Unit/Client/Services/EdgeModelClientServiceTest.cs +++ b/src/IoTHub.Portal.Tests.Unit/Client/Services/EdgeModelClientServiceTest.cs @@ -77,7 +77,7 @@ public async Task CreateIoTEdgeModelShouldCreateEdgeModel() // Arrange var expectedEdgeModel = Fixture.Create(); - _ = MockHttpClient.When(HttpMethod.Post, "api/edge/models") + _ = MockHttpClient.When(HttpMethod.Post, "/api/edge/models") .With(m => { _ = m.Content.Should().BeAssignableTo>(); @@ -105,7 +105,7 @@ public async Task UpdateIoTEdgeModelShouldUpdateEdgeModel() // Arrange var expectedEdgeModel = Fixture.Create(); - _ = MockHttpClient.When(HttpMethod.Put, $"api/edge/models/{expectedEdgeModel.ModelId}") + _ = MockHttpClient.When(HttpMethod.Put, $"/api/edge/models") .With(m => { _ = m.Content.Should().BeAssignableTo>(); @@ -132,7 +132,7 @@ public async Task DeleteIoTEdgeModelShouldDeleteEdgeModel() // Arrange var expectedEdgeModel = Fixture.Create(); - _ = MockHttpClient.When(HttpMethod.Delete, $"api/edge/models/{expectedEdgeModel.ModelId}") + _ = MockHttpClient.When(HttpMethod.Delete, $"/api/edge/models/{expectedEdgeModel.ModelId}") .Respond(HttpStatusCode.NoContent); // Act @@ -190,7 +190,7 @@ public async Task DeleteAvatarPropertiesShouldChangeAvatar() // Arrange var deviceModel = Fixture.Create(); - _ = MockHttpClient.When(HttpMethod.Post, $"/api/edge/models/{deviceModel.ModelId}/avatar") + _ = MockHttpClient.When(HttpMethod.Delete, $"/api/edge/models/{deviceModel.ModelId}/avatar") .Respond(HttpStatusCode.NoContent); // Act diff --git a/src/IoTHub.Portal.Tests.Unit/Client/Services/LoRaWanDeviceModelsClientServiceTests.cs b/src/IoTHub.Portal.Tests.Unit/Client/Services/LoRaWanDeviceModelsClientServiceTests.cs index c97ea3109..714f8d6e0 100644 --- a/src/IoTHub.Portal.Tests.Unit/Client/Services/LoRaWanDeviceModelsClientServiceTests.cs +++ b/src/IoTHub.Portal.Tests.Unit/Client/Services/LoRaWanDeviceModelsClientServiceTests.cs @@ -121,7 +121,7 @@ public async Task SetDeviceModelCommandsShouldSetDeviceModelCommands() var expectedCommands = Fixture.Build().CreateMany(3).ToList(); - _ = MockHttpClient.When(HttpMethod.Get, $"/api/lorawan/models/{deviceModelId.ModelId}/properties") + _ = MockHttpClient.When(HttpMethod.Post, $"/api/lorawan/models/{deviceModelId.ModelId}/commands") .With(m => { _ = m.Content.Should().BeAssignableTo>>();