diff --git a/BasicUnitTest/SecurityEventTokenTests.cs b/BasicUnitTest/SecurityEventTokenTests.cs index 54bec9717b7d03ced31f7283256cec1ebb6a2d95..2918b8210950f46b974639d337089dea87092b96 100644 --- a/BasicUnitTest/SecurityEventTokenTests.cs +++ b/BasicUnitTest/SecurityEventTokenTests.cs @@ -40,7 +40,7 @@ public class SecurityEventTokenTests { Console.WriteLine(token); var decoded = new SecurityEventToken(token); decoded.Event?.Type.Should() - .Be("https://schema.fitko.de/fit-connect/events/accept-submission"); + .Be(acceptSubmission); decoded.EventType.Should().Be(EventType.Accept); } @@ -54,7 +54,7 @@ public class SecurityEventTokenTests { Console.WriteLine(token); var decoded = new SecurityEventToken(token); decoded.Event?.Type.Should() - .Be("https://schema.fitko.de/fit-connect/events/reject-submission"); + .Be(rejectSubmission); decoded.EventType.Should().Be(EventType.Reject); } @@ -68,7 +68,7 @@ public class SecurityEventTokenTests { Console.WriteLine(token); var decoded = new SecurityEventToken(token); decoded.Event?.Type.Should() - .Be("https://schema.fitko.de/fit-connect/events/reject-submission"); + .Be(rejectSubmission); decoded.EventType.Should().Be(EventType.Reject); } @@ -83,7 +83,7 @@ public class SecurityEventTokenTests { Console.WriteLine(token); var decoded = new SecurityEventToken(token); decoded.Event?.Type.Should() - .Be("https://schema.fitko.de/fit-connect/events/reject-submission"); + .Be(rejectSubmission); decoded.EventType.Should().Be(EventType.Reject); } @@ -98,7 +98,7 @@ public class SecurityEventTokenTests { var decoded = new SecurityEventToken(token); decoded.Event?.Type.Should() - .Be("https://schema.fitko.de/fit-connect/events/reject-submission"); + .Be(rejectSubmission); decoded.EventType.Should().Be(EventType.Reject); } @@ -112,7 +112,7 @@ public class SecurityEventTokenTests { Console.WriteLine(token); var decoded = new SecurityEventToken(token); decoded.Event?.Type.Should() - .Be("https://schema.fitko.de/fit-connect/events/reject-submission"); + .Be(rejectSubmission); decoded.EventType.Should().Be(EventType.Reject); } @@ -126,22 +126,7 @@ public class SecurityEventTokenTests { Console.WriteLine(token); var decoded = new SecurityEventToken(token); decoded.Event?.Type.Should() - .Be("https://schema.fitko.de/fit-connect/events/reject-submission"); + .Be(rejectSubmission); decoded.EventType.Should().Be(EventType.Reject); } - - // [Test] - // public void CreateJwt_Reject_WithCustomProblem() { - // var token = _encryption.CreateSecurityEventToken(Guid.NewGuid().ToString(), - // Guid.NewGuid().ToString(), - // Guid.NewGuid().ToString(), - // "https://schema.fitko.de/fit-connect/events/reject-submission", - // new[] { new Problems { Description = "A real big issue" } } - // ); - // Console.WriteLine(token); - // var decoded = new SecurityEventToken(token); - // decoded.Event?.Type.Should() - // .Be("https://schema.fitko.de/fit-connect/events/reject-submission"); - // decoded.EventType.Should().Be(EventType.Reject); - // } }