Skip to content

Commit

Permalink
test fix for csharp version
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Tallentire committed Nov 20, 2023
1 parent f548169 commit ac6ada3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 19 deletions.
1 change: 0 additions & 1 deletion test/Cronofy.Test/Cronofy.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<LangVersion>11</LangVersion>
<IsPackable>false</IsPackable>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,24 @@ public void CanGetUserInfoForServiceAccount()
.RequestHeader("Authorization", "Bearer " + AccessToken)
.ResponseCode(200)
.ResponseBody(
"""
{
"sub": "ser_61a8b807a341fc00bee53042",
"cronofy.type": "service_account",
"cronofy.data": {
"service_account": {
"provider_name": "exchange",
"domain": "example.org"
},
"authorization": {
"scope": "service_account/accounts/manage service_account/resources/manage",
"status": "active",
"delegated_scope": "read_write"
}
},
"email": "[email protected]"
}
"""));
@"
{
""sub"": ""ser_61a8b807a341fc00bee53042"",
""cronofy.type"": ""service_account"",
""cronofy.data"": {
""service_account"": {
""provider_name"": ""exchange"",
""domain"": ""example.org""
},
""authorization"": {
""scope"": ""service_account/accounts/manage service_account/resources/manage"",
""status"": ""active"",
""delegated_scope"": ""read_write""
}
},
""email"": ""[email protected]""
}
"));

var actualUserInfo = this.Client.GetUserInfo();
var expectedUserInfo = new UserInfo
Expand Down

0 comments on commit ac6ada3

Please sign in to comment.