Skip to content

Commit 42e0068

Browse files
Fix warnings.
1 parent b183b51 commit 42e0068

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

tests/.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ dotnet_diagnostic.BL0005.severity = none
1010
# CA1806: Do not ignore method results
1111
dotnet_diagnostic.CA1806.severity = none
1212

13+
# CA2016: Forward the 'CancellationToken' parameter to methods
14+
dotnet_diagnostic.CA2016.severity = none
15+
1316
#### Sonar Analyzers ####
1417

1518
# S1144: Unused private types or members should be removed

tests/Emailing.Graph.Tests/GraphEmailProviderTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public async Task SendAsync(EmailImportance importance, Importance expectedImpor
5151
requestInfo.HttpMethod.Should().Be(Method.POST);
5252
requestInfo.URI.Should().Be("http://base/url/users/sender%40domain.com/sendMail");
5353

54-
var jsonMessage = KiotaJsonSerializer.Deserialize<SendMailPostRequestBody>(requestInfo.Content);
54+
var jsonMessage = KiotaJsonSerializer.DeserializeAsync<SendMailPostRequestBody>(requestInfo.Content).GetAwaiter().GetResult();
5555

5656
jsonMessage.Message.Attachments.Should().BeNull();
5757
jsonMessage.Message.Body.Content.Should().Be("The HTML content");

0 commit comments

Comments
 (0)