From bd78b06245d5c83a2ac2225fb732bde6fb36a649 Mon Sep 17 00:00:00 2001 From: Laszlo Schreck Date: Wed, 3 Oct 2018 17:36:31 +0900 Subject: [PATCH] Clarify the test --- tests/Medidata.MAuth.Tests/MAuthCoreExtensionsTests.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/Medidata.MAuth.Tests/MAuthCoreExtensionsTests.cs b/tests/Medidata.MAuth.Tests/MAuthCoreExtensionsTests.cs index 96f2f81..15f8fa5 100644 --- a/tests/Medidata.MAuth.Tests/MAuthCoreExtensionsTests.cs +++ b/tests/Medidata.MAuth.Tests/MAuthCoreExtensionsTests.cs @@ -66,9 +66,11 @@ public static async Task GetSignature_WithRequest_WillReturnTheCorrectSignature( var testData = await method.FromResource(); var expectedSignature = - ($"{method}\n/\n{testData.Base64Content.ToStringContent()}\n" + + ($"{testData.Method}\n" + + $"{testData.Url.AbsolutePath}\n" + + $"{testData.Base64Content.ToStringContent()}\n" + $"{testData.ApplicationUuidString}\n" + - $"{testData.SignedTime.ToUnixTimeSeconds()}") + $"{testData.SignedTimeUnixSeconds}") .AsSHA512Hash(); var authInfo = new PrivateKeyAuthenticationInfo()