From c09d89c84073422feef1b3d248daaa3b94a6054b Mon Sep 17 00:00:00 2001 From: Kevin J Lambert Date: Mon, 22 Aug 2022 07:00:24 -0400 Subject: [PATCH] Updated packages --- .../ExtensionTests/DocumentModelExtensionTests.cs | 5 +++-- .../YuckQi.Data.MemDb.UnitTests.csproj | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/test/YuckQi.Data.DocumentDb.MongoDb.UnitTests/ExtensionTests/DocumentModelExtensionTests.cs b/test/YuckQi.Data.DocumentDb.MongoDb.UnitTests/ExtensionTests/DocumentModelExtensionTests.cs index e2fe751..012e09c 100644 --- a/test/YuckQi.Data.DocumentDb.MongoDb.UnitTests/ExtensionTests/DocumentModelExtensionTests.cs +++ b/test/YuckQi.Data.DocumentDb.MongoDb.UnitTests/ExtensionTests/DocumentModelExtensionTests.cs @@ -68,9 +68,10 @@ public async Task GetIdentifierFieldDefinition_WithMultipleRequests_IsValid() var _ = await Task.WhenAll(tasks); var registry = BsonSerializer.SerializerRegistry; var serializer = registry.GetSerializer(); - var first = tasks.First().Result.Render(serializer, registry).FieldName; + var first = tasks.First().Result; + var field = first?.Render(serializer, registry).FieldName; - Assert.That(tasks.All(t => Equals(t.Result.Render(serializer, registry).FieldName, first)), Is.True); + Assert.That(tasks.All(t => Equals(t.Result?.Render(serializer, registry).FieldName, field)), Is.True); } [Test] diff --git a/test/YuckQi.Data.MemDb.UnitTests/YuckQi.Data.MemDb.UnitTests.csproj b/test/YuckQi.Data.MemDb.UnitTests/YuckQi.Data.MemDb.UnitTests.csproj index 0c53e2a..908f23d 100644 --- a/test/YuckQi.Data.MemDb.UnitTests/YuckQi.Data.MemDb.UnitTests.csproj +++ b/test/YuckQi.Data.MemDb.UnitTests/YuckQi.Data.MemDb.UnitTests.csproj @@ -8,7 +8,7 @@ - +