NO ConfigureAwait(false) + cleanup

This commit is contained in:
Stef Heyenrath
2025-08-31 12:39:51 +02:00
parent 0960d7cebd
commit 5b43a4f341
56 changed files with 351 additions and 616 deletions

View File

@@ -75,8 +75,8 @@ public class WireMockServerWebhookTests
};
// Assert
var response = await new HttpClient().SendAsync(request).ConfigureAwait(false);
var content = await response.Content.ReadAsStringAsync().ConfigureAwait(false);
var response = await new HttpClient().SendAsync(request);
var content = await response.Content.ReadAsStringAsync();
response.StatusCode.Should().Be(HttpStatusCode.OK);
content.Should().Be("a-response");
@@ -124,8 +124,8 @@ public class WireMockServerWebhookTests
};
// Assert
var response = await new HttpClient().SendAsync(request).ConfigureAwait(false);
var content = await response.Content.ReadAsStringAsync().ConfigureAwait(false);
var response = await new HttpClient().SendAsync(request);
var content = await response.Content.ReadAsStringAsync();
response.StatusCode.Should().Be(HttpStatusCode.OK);
content.Should().Be("a-response");
@@ -180,8 +180,8 @@ public class WireMockServerWebhookTests
};
// Assert
var response = await new HttpClient().SendAsync(request).ConfigureAwait(false);
var content = await response.Content.ReadAsStringAsync().ConfigureAwait(false);
var response = await new HttpClient().SendAsync(request);
var content = await response.Content.ReadAsStringAsync();
response.StatusCode.Should().Be(HttpStatusCode.OK);
content.Should().Be("a-response");
@@ -235,8 +235,8 @@ public class WireMockServerWebhookTests
};
// Assert
var response = await new HttpClient().SendAsync(request).ConfigureAwait(false);
var content = await response.Content.ReadAsStringAsync().ConfigureAwait(false);
var response = await new HttpClient().SendAsync(request);
var content = await response.Content.ReadAsStringAsync();
response.StatusCode.Should().Be(HttpStatusCode.OK);
content.Should().Be("a-response");
@@ -267,8 +267,8 @@ public class WireMockServerWebhookTests
};
// Assert
var response = await new HttpClient().SendAsync(request).ConfigureAwait(false);
var content = await response.Content.ReadAsStringAsync().ConfigureAwait(false);
var response = await new HttpClient().SendAsync(request);
var content = await response.Content.ReadAsStringAsync();
response.StatusCode.Should().Be(HttpStatusCode.OK);
content.Should().Be("a-response");
@@ -301,8 +301,8 @@ public class WireMockServerWebhookTests
};
// Assert
var response = await new HttpClient().SendAsync(request).ConfigureAwait(false);
var content = await response.Content.ReadAsStringAsync().ConfigureAwait(false);
var response = await new HttpClient().SendAsync(request);
var content = await response.Content.ReadAsStringAsync();
response.StatusCode.Should().Be(HttpStatusCode.OK);
content.Should().Be("a-response");