From 6f8df99afaabf839d35401f2d9fbc7712a75a134 Mon Sep 17 00:00:00 2001 From: "minaco77@gmail.com" Date: Thu, 7 May 2026 15:59:09 -0700 Subject: [PATCH] updating dependencies for CVEs --- ...s.Encryption.MessageProperty.AcceptanceTests.csproj | 6 +++--- src/AcceptanceTests/When_using_Aes_with_custom.cs | 4 ++-- src/AcceptanceTests/When_using_Aes_with_multikey.cs | 4 ++-- .../When_using_Aes_with_unobtrusive_mode.cs | 4 ++-- .../When_using_Aes_without_incoming_key_identifier.cs | 4 ++-- .../When_using_encryption_with_custom_service.cs | 10 +++++----- .../NServiceBus.Encryption.MessageProperty.csproj | 2 +- 7 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/AcceptanceTests/NServiceBus.Encryption.MessageProperty.AcceptanceTests.csproj b/src/AcceptanceTests/NServiceBus.Encryption.MessageProperty.AcceptanceTests.csproj index 28c32e3..88c4129 100644 --- a/src/AcceptanceTests/NServiceBus.Encryption.MessageProperty.AcceptanceTests.csproj +++ b/src/AcceptanceTests/NServiceBus.Encryption.MessageProperty.AcceptanceTests.csproj @@ -11,9 +11,9 @@ - - - + + + diff --git a/src/AcceptanceTests/When_using_Aes_with_custom.cs b/src/AcceptanceTests/When_using_Aes_with_custom.cs index 5a0b191..4549cfa 100644 --- a/src/AcceptanceTests/When_using_Aes_with_custom.cs +++ b/src/AcceptanceTests/When_using_Aes_with_custom.cs @@ -39,7 +39,7 @@ public async Task Should_receive_decrypted_message() { Assert.That(context.Secret, Is.EqualTo(messageToSend.Secret.Value)); Assert.That(context.SubPropertySecret, Is.EqualTo(messageToSend.SubProperty.Secret.Value)); - Assert.That(context.CreditCards, Is.EquivalentTo(new List() + Assert.That(context.CreditCards, Is.EquivalentTo(new[] { "312312312312312", "543645546546456" @@ -105,4 +105,4 @@ public class MySecretSubProperty { public EncryptedString Secret { get; set; } } -} \ No newline at end of file +} diff --git a/src/AcceptanceTests/When_using_Aes_with_multikey.cs b/src/AcceptanceTests/When_using_Aes_with_multikey.cs index 8e38125..97002e2 100644 --- a/src/AcceptanceTests/When_using_Aes_with_multikey.cs +++ b/src/AcceptanceTests/When_using_Aes_with_multikey.cs @@ -21,7 +21,7 @@ public async Task Should_receive_decrypted_message() .Done(c => c.Done) .Run(); - Assert.AreEqual("betcha can't guess my secret", context.Secret); + Assert.That(context.Secret, Is.EqualTo("betcha can't guess my secret")); } public class Context : ScenarioContext @@ -85,4 +85,4 @@ public class MessageWithSecretData : IMessage public EncryptedString Secret { get; set; } } } -} \ No newline at end of file +} diff --git a/src/AcceptanceTests/When_using_Aes_with_unobtrusive_mode.cs b/src/AcceptanceTests/When_using_Aes_with_unobtrusive_mode.cs index 7df7c3b..1209596 100644 --- a/src/AcceptanceTests/When_using_Aes_with_unobtrusive_mode.cs +++ b/src/AcceptanceTests/When_using_Aes_with_unobtrusive_mode.cs @@ -41,7 +41,7 @@ public async Task Should_receive_decrypted_message() { Assert.That(context.Secret, Is.EqualTo(messageToSend.EncryptedSecret)); Assert.That(context.SubPropertySecret, Is.EqualTo(messageToSend.SubProperty.EncryptedSecret)); - Assert.That(context.CreditCards, Is.EquivalentTo(new List + Assert.That(context.CreditCards, Is.EquivalentTo(new[] { "312312312312312", "543645546546456" @@ -124,4 +124,4 @@ public class MySecretSubProperty { public string EncryptedSecret { get; set; } } -} \ No newline at end of file +} diff --git a/src/AcceptanceTests/When_using_Aes_without_incoming_key_identifier.cs b/src/AcceptanceTests/When_using_Aes_without_incoming_key_identifier.cs index 16133f9..cd4f937 100644 --- a/src/AcceptanceTests/When_using_Aes_without_incoming_key_identifier.cs +++ b/src/AcceptanceTests/When_using_Aes_without_incoming_key_identifier.cs @@ -22,7 +22,7 @@ public async Task Should_process_decrypted_message_without_key_identifier() .Done(c => c.Done) .Run(); - Assert.AreEqual("betcha can't guess my secret", context.Secret); + Assert.That(context.Secret, Is.EqualTo("betcha can't guess my secret")); } public class Context : ScenarioContext @@ -96,4 +96,4 @@ public Task MutateIncoming(MutateIncomingTransportMessageContext context) } } } -} \ No newline at end of file +} diff --git a/src/AcceptanceTests/When_using_encryption_with_custom_service.cs b/src/AcceptanceTests/When_using_encryption_with_custom_service.cs index 20ef651..1bd0e15 100644 --- a/src/AcceptanceTests/When_using_encryption_with_custom_service.cs +++ b/src/AcceptanceTests/When_using_encryption_with_custom_service.cs @@ -38,13 +38,13 @@ public async Task Should_receive_decrypted_message() .Done(c => c.GotTheMessage) .Run(); - Assert.AreEqual("betcha can't guess my secret", context.Secret); - Assert.AreEqual("My sub secret", context.SubPropertySecret); - CollectionAssert.AreEquivalent(new List + Assert.That(context.Secret, Is.EqualTo("betcha can't guess my secret")); + Assert.That(context.SubPropertySecret, Is.EqualTo("My sub secret")); + Assert.That(context.CreditCards, Is.EquivalentTo(new[] { "312312312312312", "543645546546456" - }, context.CreditCards); + })); } public class Context : ScenarioContext @@ -127,4 +127,4 @@ public string Decrypt(EncryptedValue encryptedValue, IIncomingLogicalMessageCont } } } -} \ No newline at end of file +} diff --git a/src/MessageProperty/NServiceBus.Encryption.MessageProperty.csproj b/src/MessageProperty/NServiceBus.Encryption.MessageProperty.csproj index a011d96..1c40a37 100644 --- a/src/MessageProperty/NServiceBus.Encryption.MessageProperty.csproj +++ b/src/MessageProperty/NServiceBus.Encryption.MessageProperty.csproj @@ -8,7 +8,7 @@ - +