diff --git a/.idea/.idea.FitConnect/.idea/.name b/.idea/.idea.FitConnect/.idea/.name new file mode 100644 index 0000000000000000000000000000000000000000..04b5af4f764eb04374cbc16e0e0def5774fddae9 --- /dev/null +++ b/.idea/.idea.FitConnect/.idea/.name @@ -0,0 +1 @@ +FitConnect \ No newline at end of file diff --git a/IntegrationTests/CallbackTest.cs b/IntegrationTests/CallbackTest.cs index 3ef3072ca50bd38ca161dc04f62f398dc2b90515..782259d56f263d0ab5c84091dbc198c439bbb057 100644 --- a/IntegrationTests/CallbackTest.cs +++ b/IntegrationTests/CallbackTest.cs @@ -30,9 +30,9 @@ public class CallbackTest { // }; var headers = new HeaderDictionary(new Dictionary<string, StringValues> { - { "callback-timestamp", "1672527599" }, { + { "callback-timestamp", "4102354800" }, { "callback-authentication", - "798cd0edb70c08e5b32aa8a18cbbc8ff6b3078c51af6d011ff4e32e470c746234fc4314821fe5185264b029e962bd37de33f3b9fc5f1a93c40ce6672845e90df" + "56740c29a40e6031d9db0cbd1a1b620e2c561a12307eb61ee8ceab22c7c44a65e753cd92f4cbe4386acbfd03064d64f64915fc03f342c818a4f43eb97192b5c0" } }); @@ -58,14 +58,14 @@ public class CallbackTest { // Arrange //Act - var authentication = FitConnect.Subscriber.VerifyCallback(_callbackSecret, 1672527599, + var authentication = FitConnect.Subscriber.VerifyCallback(_callbackSecret, 4102354800, "{\"type\":\"https://schema.fitko.de/fit-connect/submission-api/callbacks/new-submissions\",\"submissionIds\":[\"f39ab143-d91a-474a-b69f-b00f1a1873c2\"]}" ); // Assert authentication.Should() .Be( - "798cd0edb70c08e5b32aa8a18cbbc8ff6b3078c51af6d011ff4e32e470c746234fc4314821fe5185264b029e962bd37de33f3b9fc5f1a93c40ce6672845e90df"); + "56740c29a40e6031d9db0cbd1a1b620e2c561a12307eb61ee8ceab22c7c44a65e753cd92f4cbe4386acbfd03064d64f64915fc03f342c818a4f43eb97192b5c0"); } [Test]