@@ -72,7 +72,7 @@ public async Task Can_filter_resources_by_ID()
72
72
await _testContext . RunOnDatabaseAsync ( async dbContext =>
73
73
{
74
74
await dbContext . ClearTableAsync < PostOffice > ( ) ;
75
- dbContext . PostOffice . AddRange ( postOffices ) ;
75
+ dbContext . PostOffices . AddRange ( postOffices ) ;
76
76
await dbContext . SaveChangesAsync ( ) ;
77
77
} ) ;
78
78
@@ -133,7 +133,7 @@ public async Task Can_create_resource_with_ToOne_relationship_and_include()
133
133
134
134
await _testContext . RunOnDatabaseAsync ( async dbContext =>
135
135
{
136
- dbContext . PostOffice . Add ( existingOffice ) ;
136
+ dbContext . PostOffices . Add ( existingOffice ) ;
137
137
await dbContext . SaveChangesAsync ( ) ;
138
138
} ) ;
139
139
@@ -216,7 +216,7 @@ public async Task Can_update_resource_with_ToMany_relationship()
216
216
217
217
await _testContext . RunOnDatabaseAsync ( async dbContext =>
218
218
{
219
- dbContext . PostOffice . Add ( existingOffice ) ;
219
+ dbContext . PostOffices . Add ( existingOffice ) ;
220
220
await dbContext . SaveChangesAsync ( ) ;
221
221
} ) ;
222
222
@@ -259,7 +259,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
259
259
260
260
await _testContext . RunOnDatabaseAsync ( async dbContext =>
261
261
{
262
- PostOffice officeInDatabase = await dbContext . PostOffice . Include ( postOffice => postOffice . GiftCertificates ) . FirstWithIdAsync ( existingOffice . Id ) ;
262
+ PostOffice officeInDatabase = await dbContext . PostOffices . Include ( postOffice => postOffice . GiftCertificates ) . FirstWithIdAsync ( existingOffice . Id ) ;
263
263
264
264
officeInDatabase . Address . Should ( ) . Be ( newAddress ) ;
265
265
@@ -276,7 +276,7 @@ public async Task Can_delete_resource()
276
276
277
277
await _testContext . RunOnDatabaseAsync ( async dbContext =>
278
278
{
279
- dbContext . PostOffice . Add ( existingOffice ) ;
279
+ dbContext . PostOffices . Add ( existingOffice ) ;
280
280
await dbContext . SaveChangesAsync ( ) ;
281
281
} ) ;
282
282
@@ -292,7 +292,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
292
292
293
293
await _testContext . RunOnDatabaseAsync ( async dbContext =>
294
294
{
295
- PostOffice ? officeInDatabase = await dbContext . PostOffice . FirstWithIdOrDefaultAsync ( existingOffice . Id ) ;
295
+ PostOffice ? officeInDatabase = await dbContext . PostOffices . FirstWithIdOrDefaultAsync ( existingOffice . Id ) ;
296
296
297
297
officeInDatabase . Should ( ) . BeNull ( ) ;
298
298
} ) ;
@@ -359,7 +359,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
359
359
360
360
await _testContext . RunOnDatabaseAsync ( async dbContext =>
361
361
{
362
- PostOffice officeInDatabase = await dbContext . PostOffice . Include ( postOffice => postOffice . GiftCertificates ) . FirstWithIdAsync ( existingOffice . Id ) ;
362
+ PostOffice officeInDatabase = await dbContext . PostOffices . Include ( postOffice => postOffice . GiftCertificates ) . FirstWithIdAsync ( existingOffice . Id ) ;
363
363
364
364
officeInDatabase . GiftCertificates . ShouldHaveCount ( 2 ) ;
365
365
} ) ;
0 commit comments