@@ -42,7 +42,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
42
42
var apiClient = new HeadersClient ( httpClient ) ;
43
43
44
44
// Act
45
- ApiResponse response = await ApiResponse . TranslateAsync ( async ( ) => await apiClient . HeadCountryCollectionAsync ( null , null ) ) ;
45
+ ApiResponse response = await ApiResponse . TranslateAsync ( async ( ) => await apiClient . HeadCountryCollectionAsync ( ) ) ;
46
46
47
47
// Assert
48
48
response . StatusCode . Should ( ) . Be ( ( int ) HttpStatusCode . OK ) ;
@@ -69,8 +69,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
69
69
var apiClient = new HeadersClient ( httpClient ) ;
70
70
71
71
// Act
72
- ApiResponse < CountryCollectionResponseDocument ? > response =
73
- await ApiResponse . TranslateAsync ( async ( ) => await apiClient . GetCountryCollectionAsync ( null , null ) ) ;
72
+ ApiResponse < CountryCollectionResponseDocument ? > response = await ApiResponse . TranslateAsync ( async ( ) => await apiClient . GetCountryCollectionAsync ( ) ) ;
74
73
75
74
// Assert
76
75
response . StatusCode . Should ( ) . Be ( ( int ) HttpStatusCode . OK ) ;
@@ -92,7 +91,7 @@ public async Task Returns_no_ETag_for_failed_GET_request()
92
91
var apiClient = new HeadersClient ( httpClient ) ;
93
92
94
93
// Act
95
- Func < Task > action = async ( ) => await ApiResponse . TranslateAsync ( async ( ) => await apiClient . GetCountryAsync ( unknownCountryId , null , null ) ) ;
94
+ Func < Task > action = async ( ) => await ApiResponse . TranslateAsync ( async ( ) => await apiClient . GetCountryAsync ( unknownCountryId ) ) ;
96
95
97
96
// Assert
98
97
ApiException < ErrorResponseDocument > exception = ( await action . Should ( ) . ThrowExactlyAsync < ApiException < ErrorResponseDocument > > ( ) ) . Which ;
@@ -129,8 +128,7 @@ public async Task Returns_no_ETag_for_POST_request()
129
128
} ;
130
129
131
130
// Act
132
- ApiResponse < CountryPrimaryResponseDocument ? > response =
133
- await ApiResponse . TranslateAsync ( async ( ) => await apiClient . PostCountryAsync ( null , requestBody ) ) ;
131
+ ApiResponse < CountryPrimaryResponseDocument ? > response = await ApiResponse . TranslateAsync ( async ( ) => await apiClient . PostCountryAsync ( requestBody ) ) ;
134
132
135
133
// Assert
136
134
response . StatusCode . Should ( ) . Be ( ( int ) HttpStatusCode . Created ) ;
@@ -156,8 +154,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
156
154
using HttpClient httpClient = _testContext . Factory . CreateDefaultClient ( _logHttpMessageHandler ) ;
157
155
var apiClient = new HeadersClient ( httpClient ) ;
158
156
159
- ApiResponse < CountryCollectionResponseDocument ? > response1 =
160
- await ApiResponse . TranslateAsync ( async ( ) => await apiClient . GetCountryCollectionAsync ( null , null ) ) ;
157
+ ApiResponse < CountryCollectionResponseDocument ? > response1 = await ApiResponse . TranslateAsync ( async ( ) => await apiClient . GetCountryCollectionAsync ( ) ) ;
161
158
162
159
string responseETag = response1 . Headers [ HeaderNames . ETag ] . Single ( ) ;
163
160
0 commit comments