@@ -59,10 +59,10 @@ public async Task Cannot_exceed_length_constraint(string firstName)
5959 Func < Task > action = ( ) => apiClient . SocialMediaAccounts . PostAsync ( requestBody ) ;
6060
6161 // Assert
62- ErrorResponseDocument document = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
63- document . Errors . Should ( ) . HaveCount ( 1 ) ;
62+ ErrorResponseDocument response = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
63+ response . Errors . Should ( ) . HaveCount ( 1 ) ;
6464
65- ErrorObject errorObject = document . Errors . First ( ) ;
65+ ErrorObject errorObject = response . Errors . First ( ) ;
6666 errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
6767 errorObject . Detail . Should ( ) . Be ( "The field FirstName must be a string or collection type with a minimum length of '2' and maximum length of '20'." ) ;
6868 errorObject . Source . Should ( ) . NotBeNull ( ) ;
@@ -97,10 +97,10 @@ public async Task Cannot_exceed_string_length_constraint(string userName)
9797 Func < Task > action = ( ) => apiClient . SocialMediaAccounts . PostAsync ( requestBody ) ;
9898
9999 // Assert
100- ErrorResponseDocument document = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
101- document . Errors . Should ( ) . HaveCount ( 1 ) ;
100+ ErrorResponseDocument response = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
101+ response . Errors . Should ( ) . HaveCount ( 1 ) ;
102102
103- ErrorObject errorObject = document . Errors . First ( ) ;
103+ ErrorObject errorObject = response . Errors . First ( ) ;
104104 errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
105105 errorObject . Detail . Should ( ) . Be ( "The field UserName must be a string with a minimum length of 3 and a maximum length of 18." ) ;
106106 errorObject . Source . Should ( ) . NotBeNull ( ) ;
@@ -133,10 +133,10 @@ public async Task Cannot_violate_regular_expression_constraint()
133133 Func < Task > action = ( ) => apiClient . SocialMediaAccounts . PostAsync ( requestBody ) ;
134134
135135 // Assert
136- ErrorResponseDocument document = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
137- document . Errors . Should ( ) . HaveCount ( 1 ) ;
136+ ErrorResponseDocument response = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
137+ response . Errors . Should ( ) . HaveCount ( 1 ) ;
138138
139- ErrorObject errorObject = document . Errors . First ( ) ;
139+ ErrorObject errorObject = response . Errors . First ( ) ;
140140 errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
141141 errorObject . Detail . Should ( ) . Be ( "Only letters are allowed." ) ;
142142 errorObject . Source . Should ( ) . NotBeNull ( ) ;
@@ -169,10 +169,10 @@ public async Task Cannot_use_invalid_credit_card_number()
169169 Func < Task > action = ( ) => apiClient . SocialMediaAccounts . PostAsync ( requestBody ) ;
170170
171171 // Assert
172- ErrorResponseDocument document = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
173- document . Errors . Should ( ) . HaveCount ( 1 ) ;
172+ ErrorResponseDocument response = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
173+ response . Errors . Should ( ) . HaveCount ( 1 ) ;
174174
175- ErrorObject errorObject = document . Errors . First ( ) ;
175+ ErrorObject errorObject = response . Errors . First ( ) ;
176176 errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
177177 errorObject . Detail . Should ( ) . Be ( "The CreditCard field is not a valid credit card number." ) ;
178178 errorObject . Source . Should ( ) . NotBeNull ( ) ;
@@ -205,10 +205,10 @@ public async Task Cannot_use_invalid_email_address()
205205 Func < Task > action = ( ) => apiClient . SocialMediaAccounts . PostAsync ( requestBody ) ;
206206
207207 // Assert
208- ErrorResponseDocument document = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
209- document . Errors . Should ( ) . HaveCount ( 1 ) ;
208+ ErrorResponseDocument response = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
209+ response . Errors . Should ( ) . HaveCount ( 1 ) ;
210210
211- ErrorObject errorObject = document . Errors . First ( ) ;
211+ ErrorObject errorObject = response . Errors . First ( ) ;
212212 errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
213213 errorObject . Detail . Should ( ) . Be ( "The Email field is not a valid e-mail address." ) ;
214214 errorObject . Source . Should ( ) . NotBeNull ( ) ;
@@ -242,12 +242,12 @@ public async Task Cannot_exceed_min_length_constraint()
242242 Func < Task > action = ( ) => apiClient . SocialMediaAccounts . PostAsync ( requestBody ) ;
243243
244244 // Assert
245- ErrorResponseDocument document = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
246- document . Errors . Should ( ) . HaveCount ( 1 ) ;
245+ ErrorResponseDocument response = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
246+ response . Errors . Should ( ) . HaveCount ( 1 ) ;
247247
248248 const int minCharsInBase64 = SocialMediaAccount . MinPasswordCharsInBase64 ;
249249
250- ErrorObject errorObject = document . Errors . First ( ) ;
250+ ErrorObject errorObject = response . Errors . First ( ) ;
251251 errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
252252 errorObject . Detail . Should ( ) . Be ( $ "The field Password must be a string or array type with a minimum length of '{ minCharsInBase64 } '.") ;
253253 errorObject . Source . Should ( ) . NotBeNull ( ) ;
@@ -280,12 +280,12 @@ public async Task Cannot_exceed_max_length_constraint()
280280 Func < Task > action = ( ) => apiClient . SocialMediaAccounts . PostAsync ( requestBody ) ;
281281
282282 // Assert
283- ErrorResponseDocument document = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
284- document . Errors . Should ( ) . HaveCount ( 1 ) ;
283+ ErrorResponseDocument response = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
284+ response . Errors . Should ( ) . HaveCount ( 1 ) ;
285285
286286 const int maxCharsInBase64 = SocialMediaAccount . MaxPasswordCharsInBase64 ;
287287
288- ErrorObject errorObject = document . Errors . First ( ) ;
288+ ErrorObject errorObject = response . Errors . First ( ) ;
289289 errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
290290 errorObject . Detail . Should ( ) . Be ( $ "The field Password must be a string or array type with a maximum length of '{ maxCharsInBase64 } '.") ;
291291 errorObject . Source . Should ( ) . NotBeNull ( ) ;
@@ -322,10 +322,10 @@ public async Task Cannot_use_double_outside_of_valid_range(double age)
322322 Func < Task > action = ( ) => apiClient . SocialMediaAccounts . PostAsync ( requestBody ) ;
323323
324324 // Assert
325- ErrorResponseDocument document = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
326- document . Errors . Should ( ) . HaveCount ( 1 ) ;
325+ ErrorResponseDocument response = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
326+ response . Errors . Should ( ) . HaveCount ( 1 ) ;
327327
328- ErrorObject errorObject = document . Errors . First ( ) ;
328+ ErrorObject errorObject = response . Errors . First ( ) ;
329329 errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
330330 errorObject . Detail . Should ( ) . Be ( $ "The field Age must be between { 0.1 } exclusive and { 122.9 } exclusive.") ;
331331 errorObject . Source . Should ( ) . NotBeNull ( ) ;
@@ -358,10 +358,10 @@ public async Task Cannot_use_relative_url()
358358 Func < Task > action = ( ) => apiClient . SocialMediaAccounts . PostAsync ( requestBody ) ;
359359
360360 // Assert
361- ErrorResponseDocument document = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
362- document . Errors . Should ( ) . HaveCount ( 1 ) ;
361+ ErrorResponseDocument response = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
362+ response . Errors . Should ( ) . HaveCount ( 1 ) ;
363363
364- ErrorObject errorObject = document . Errors . First ( ) ;
364+ ErrorObject errorObject = response . Errors . First ( ) ;
365365 errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
366366 errorObject . Detail . Should ( ) . Be ( "The BackgroundPicture field is not a valid fully-qualified http, https, or ftp URL." ) ;
367367 errorObject . Source . Should ( ) . NotBeNull ( ) ;
@@ -396,10 +396,10 @@ public async Task Cannot_exceed_collection_length_constraint(int length)
396396 Func < Task > action = ( ) => apiClient . SocialMediaAccounts . PostAsync ( requestBody ) ;
397397
398398 // Assert
399- ErrorResponseDocument document = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
400- document . Errors . Should ( ) . HaveCount ( 1 ) ;
399+ ErrorResponseDocument response = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
400+ response . Errors . Should ( ) . HaveCount ( 1 ) ;
401401
402- ErrorObject errorObject = document . Errors . First ( ) ;
402+ ErrorObject errorObject = response . Errors . First ( ) ;
403403 errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
404404 errorObject . Detail . Should ( ) . Be ( "The field Tags must be a string or collection type with a minimum length of '1' and maximum length of '10'." ) ;
405405 errorObject . Source . Should ( ) . NotBeNull ( ) ;
@@ -432,10 +432,10 @@ public async Task Cannot_use_non_allowed_value()
432432 Func < Task > action = ( ) => apiClient . SocialMediaAccounts . PostAsync ( requestBody ) ;
433433
434434 // Assert
435- ErrorResponseDocument document = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
436- document . Errors . Should ( ) . HaveCount ( 1 ) ;
435+ ErrorResponseDocument response = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
436+ response . Errors . Should ( ) . HaveCount ( 1 ) ;
437437
438- ErrorObject errorObject = document . Errors . First ( ) ;
438+ ErrorObject errorObject = response . Errors . First ( ) ;
439439 errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
440440 errorObject . Detail . Should ( ) . Be ( "The CountryCode field does not equal any of the values specified in AllowedValuesAttribute." ) ;
441441 errorObject . Source . Should ( ) . NotBeNull ( ) ;
@@ -468,10 +468,10 @@ public async Task Cannot_use_denied_value()
468468 Func < Task > action = ( ) => apiClient . SocialMediaAccounts . PostAsync ( requestBody ) ;
469469
470470 // Assert
471- ErrorResponseDocument document = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
472- document . Errors . Should ( ) . HaveCount ( 1 ) ;
471+ ErrorResponseDocument response = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
472+ response . Errors . Should ( ) . HaveCount ( 1 ) ;
473473
474- ErrorObject errorObject = document . Errors . First ( ) ;
474+ ErrorObject errorObject = response . Errors . First ( ) ;
475475 errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
476476 errorObject . Detail . Should ( ) . Be ( "The Planet field equals one of the values specified in DeniedValuesAttribute." ) ;
477477 errorObject . Source . Should ( ) . NotBeNull ( ) ;
@@ -504,10 +504,10 @@ public async Task Cannot_use_TimeSpan_outside_of_valid_range()
504504 Func < Task > action = ( ) => apiClient . SocialMediaAccounts . PostAsync ( requestBody ) ;
505505
506506 // Assert
507- ErrorResponseDocument document = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
508- document . Errors . Should ( ) . HaveCount ( 1 ) ;
507+ ErrorResponseDocument response = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
508+ response . Errors . Should ( ) . HaveCount ( 1 ) ;
509509
510- ErrorObject errorObject = document . Errors . First ( ) ;
510+ ErrorObject errorObject = response . Errors . First ( ) ;
511511 errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
512512 errorObject . Detail . Should ( ) . Be ( "The field NextRevalidation must be between 01:00:00 and 05:00:00." ) ;
513513 errorObject . Source . Should ( ) . NotBeNull ( ) ;
0 commit comments