From 9693a3a0962dc31e4d784160480778f8cb3fbe7f Mon Sep 17 00:00:00 2001 From: ridomin Date: Mon, 12 Sep 2022 22:58:45 -0700 Subject: [PATCH] upd AI settings --- samples/memmon/appsettings.json | 2 +- .../HubClient/TwinWritablePropertyFixture.cs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/samples/memmon/appsettings.json b/samples/memmon/appsettings.json index f936f2a..9ad5ee6 100644 --- a/samples/memmon/appsettings.json +++ b/samples/memmon/appsettings.json @@ -3,7 +3,7 @@ "cs" : "HostName=test.mosquitto.org;TcpPort=8886" }, "ApplicationInsights": { - "ConnectionString": "InstrumentationKey=50cb7b11-9466-4348-a6eb-0ef66b3fb724;IngestionEndpoint=https://westus3-1.in.applicationinsights.azure.com/", + "ConnectionString": "InstrumentationKey=50cb7b11-9466-4348-a6eb-0ef66b3fb724;IngestionEndpoint=https://westus3-1.in.applicationinsights.azure.com/" }, "Logging": { "ApplicationInsights": { diff --git a/tests/MQTTnet.Extensions.MultiCloud.UnitTests/HubClient/TwinWritablePropertyFixture.cs b/tests/MQTTnet.Extensions.MultiCloud.UnitTests/HubClient/TwinWritablePropertyFixture.cs index 7ba2019..a4c1e50 100644 --- a/tests/MQTTnet.Extensions.MultiCloud.UnitTests/HubClient/TwinWritablePropertyFixture.cs +++ b/tests/MQTTnet.Extensions.MultiCloud.UnitTests/HubClient/TwinWritablePropertyFixture.cs @@ -191,10 +191,10 @@ public async Task InitTwinComplexWithDesiredTriggersUpdate() desired = new Dictionary() { { "$version", 2 }, { "myComplexObj", new AComplexObj { MyProperty = "twinValue" } } } }); await wp.InitPropertyAsync(twin, new AComplexObj()); - Assert.Equal("twinValue", wp.PropertyValue.Value.MyProperty); - Assert.Equal(200, wp.PropertyValue.Status); - Assert.Equal(2, wp.PropertyValue.Version); - Assert.Equal(2, wp.PropertyValue.DesiredVersion); + Assert.Equal("twinValue", wp?.PropertyValue?.Value?.MyProperty); + Assert.Equal(200, wp?.PropertyValue.Status); + Assert.Equal(2, wp?.PropertyValue.Version); + Assert.Equal(2, wp?.PropertyValue.DesiredVersion); }