From ce5ef4e1a3e00169230a8c241d0c8bce155b4272 Mon Sep 17 00:00:00 2001 From: Markus Hartung Date: Tue, 21 Jun 2022 01:12:35 +0200 Subject: [PATCH] Buildfix --- tests/JWT.Tests.Common/Algorithms/RSAlgorithmFactoryTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/JWT.Tests.Common/Algorithms/RSAlgorithmFactoryTests.cs b/tests/JWT.Tests.Common/Algorithms/RSAlgorithmFactoryTests.cs index 6f00987b9..9dbdeec7e 100644 --- a/tests/JWT.Tests.Common/Algorithms/RSAlgorithmFactoryTests.cs +++ b/tests/JWT.Tests.Common/Algorithms/RSAlgorithmFactoryTests.cs @@ -30,7 +30,7 @@ public void Create_Should_Return_Instance_Of_RS256Algorithm_When_Algorithm_Speci [TestMethod] public void Create_Should_Return_Instance_Of_RS384Algorithm_When_Algorithm_Specified_In_Jwt_Header_Is_RS384() { - var publicKey = RSACryptoServiceProvider; + var publicKey = new RSACryptoServiceProvider(); var factory = new RSAlgorithmFactory(publicKey); var context = new JwtDecoderContext { @@ -66,7 +66,7 @@ public void Create_Should_Return_Instance_Of_RS512Algorithm_When_Algorithm_Speci [TestMethod] public void Create_Should_Return_Instance_Of_RS1024Algorithm_When_Algorithm_Specified_In_Jwt_Header_Is_RS1024() { - var publicKey = RSACryptoServiceProvider; + var publicKey = new RSACryptoServiceProvider(); var factory = new RSAlgorithmFactory(publicKey); var context = new JwtDecoderContext