Skip to content

Commit

Permalink
Clarify the test
Browse files Browse the repository at this point in the history
  • Loading branch information
lschreck-mdsol committed Oct 3, 2018
1 parent cdd9f59 commit bd78b06
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/Medidata.MAuth.Tests/MAuthCoreExtensionsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit bd78b06

Please sign in to comment.