@@ -114,12 +114,12 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
114
114
string route = $ "/customers/{ existingOrder . Customer . Id } ";
115
115
116
116
// Act
117
- ( HttpResponseMessage httpResponse , Document responseDocument ) = await _testContext . ExecuteDeleteAsync < Document > ( route ) ;
117
+ ( HttpResponseMessage httpResponse , string responseDocument ) = await _testContext . ExecuteDeleteAsync < string > ( route ) ;
118
118
119
119
// Assert
120
120
httpResponse . Should ( ) . HaveStatusCode ( HttpStatusCode . NoContent ) ;
121
121
122
- responseDocument . Should ( ) . BeNull ( ) ;
122
+ responseDocument . Should ( ) . BeEmpty ( ) ;
123
123
124
124
await _testContext . RunOnDatabaseAsync ( async dbContext =>
125
125
{
@@ -148,12 +148,12 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
148
148
string route = $ "/orders/{ existingOrder . Id } ";
149
149
150
150
// Act
151
- ( HttpResponseMessage httpResponse , Document responseDocument ) = await _testContext . ExecuteDeleteAsync < Document > ( route ) ;
151
+ ( HttpResponseMessage httpResponse , string responseDocument ) = await _testContext . ExecuteDeleteAsync < string > ( route ) ;
152
152
153
153
// Assert
154
154
httpResponse . Should ( ) . HaveStatusCode ( HttpStatusCode . NoContent ) ;
155
155
156
- responseDocument . Should ( ) . BeNull ( ) ;
156
+ responseDocument . Should ( ) . BeEmpty ( ) ;
157
157
158
158
await _testContext . RunOnDatabaseAsync ( async dbContext =>
159
159
{
@@ -422,11 +422,13 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
422
422
string route = $ "/orders/{ orderWithoutShipment . Id } ";
423
423
424
424
// Act
425
- ( HttpResponseMessage httpResponse , ErrorDocument responseDocument ) = await _testContext . ExecutePatchAsync < ErrorDocument > ( route , requestBody ) ;
425
+ ( HttpResponseMessage httpResponse , string responseDocument ) = await _testContext . ExecutePatchAsync < string > ( route , requestBody ) ;
426
426
427
427
// Assert
428
428
httpResponse . Should ( ) . HaveStatusCode ( HttpStatusCode . NoContent ) ;
429
429
430
+ responseDocument . Should ( ) . BeEmpty ( ) ;
431
+
430
432
await _testContext . RunOnDatabaseAsync ( async dbContext =>
431
433
{
432
434
Shipment existingShipmentInDatabase =
@@ -465,11 +467,13 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
465
467
string route = $ "/orders/{ orderWithoutShipment . Id } /relationships/shipment";
466
468
467
469
// Act
468
- ( HttpResponseMessage httpResponse , ErrorDocument responseDocument ) = await _testContext . ExecutePatchAsync < ErrorDocument > ( route , requestBody ) ;
470
+ ( HttpResponseMessage httpResponse , string responseDocument ) = await _testContext . ExecutePatchAsync < string > ( route , requestBody ) ;
469
471
470
472
// Assert
471
473
httpResponse . Should ( ) . HaveStatusCode ( HttpStatusCode . NoContent ) ;
472
474
475
+ responseDocument . Should ( ) . BeEmpty ( ) ;
476
+
473
477
await _testContext . RunOnDatabaseAsync ( async dbContext =>
474
478
{
475
479
Shipment existingShipmentInDatabase =
0 commit comments