@@ -19,7 +19,7 @@ public ModelStateValidationTests(ExampleIntegrationTestContext<ModelStateValidat
19
19
}
20
20
21
21
[ Fact ]
22
- public async Task When_posting_resource_with_omitted_required_attribute_value_it_must_fail ( )
22
+ public async Task Cannot_create_resource_with_omitted_required_attribute ( )
23
23
{
24
24
// Arrange
25
25
var requestBody = new
@@ -50,7 +50,7 @@ public async Task When_posting_resource_with_omitted_required_attribute_value_it
50
50
}
51
51
52
52
[ Fact ]
53
- public async Task When_posting_resource_with_null_for_required_attribute_value_it_must_fail ( )
53
+ public async Task Cannot_create_resource_with_null_for_required_attribute_value ( )
54
54
{
55
55
// Arrange
56
56
var requestBody = new
@@ -82,7 +82,7 @@ public async Task When_posting_resource_with_null_for_required_attribute_value_i
82
82
}
83
83
84
84
[ Fact ]
85
- public async Task When_posting_resource_with_invalid_attribute_value_it_must_fail ( )
85
+ public async Task Cannot_create_resource_with_invalid_attribute_value ( )
86
86
{
87
87
// Arrange
88
88
var requestBody = new
@@ -114,7 +114,7 @@ public async Task When_posting_resource_with_invalid_attribute_value_it_must_fai
114
114
}
115
115
116
116
[ Fact ]
117
- public async Task When_posting_resource_with_valid_attribute_value_it_must_succeed ( )
117
+ public async Task Can_create_resource_with_valid_attribute_value ( )
118
118
{
119
119
// Arrange
120
120
var requestBody = new
@@ -144,7 +144,7 @@ public async Task When_posting_resource_with_valid_attribute_value_it_must_succe
144
144
}
145
145
146
146
[ Fact ]
147
- public async Task When_posting_resource_with_multiple_violations_it_must_fail ( )
147
+ public async Task Cannot_create_resource_with_multiple_violations ( )
148
148
{
149
149
// Arrange
150
150
var requestBody = new
@@ -186,7 +186,7 @@ public async Task When_posting_resource_with_multiple_violations_it_must_fail()
186
186
}
187
187
188
188
[ Fact ]
189
- public async Task When_posting_resource_with_annotated_relationships_it_must_succeed ( )
189
+ public async Task Can_create_resource_with_annotated_relationships ( )
190
190
{
191
191
// Arrange
192
192
var parentDirectory = new SystemDirectory
@@ -275,7 +275,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
275
275
}
276
276
277
277
[ Fact ]
278
- public async Task When_posting_annotated_to_many_relationship_it_must_succeed ( )
278
+ public async Task Can_add_to_annotated_ToMany_relationship ( )
279
279
{
280
280
// Arrange
281
281
var directory = new SystemDirectory
@@ -320,7 +320,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
320
320
}
321
321
322
322
[ Fact ]
323
- public async Task When_patching_resource_with_omitted_required_attribute_value_it_must_succeed ( )
323
+ public async Task Can_update_resource_with_omitted_required_attribute_value ( )
324
324
{
325
325
// Arrange
326
326
var directory = new SystemDirectory
@@ -360,7 +360,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
360
360
}
361
361
362
362
[ Fact ]
363
- public async Task When_patching_resource_with_null_for_required_attribute_value_it_must_fail ( )
363
+ public async Task Cannot_update_resource_with_null_for_required_attribute_value ( )
364
364
{
365
365
// Arrange
366
366
var directory = new SystemDirectory
@@ -404,7 +404,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
404
404
}
405
405
406
406
[ Fact ]
407
- public async Task When_patching_resource_with_invalid_attribute_value_it_must_fail ( )
407
+ public async Task Cannot_update_resource_with_invalid_attribute_value ( )
408
408
{
409
409
// Arrange
410
410
var directory = new SystemDirectory
@@ -448,7 +448,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
448
448
}
449
449
450
450
[ Fact ]
451
- public async Task When_patching_resource_with_invalid_ID_it_must_fail ( )
451
+ public async Task Cannot_update_resource_with_invalid_ID ( )
452
452
{
453
453
// Arrange
454
454
var directory = new SystemDirectory
@@ -512,7 +512,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
512
512
}
513
513
514
514
[ Fact ]
515
- public async Task When_patching_resource_with_valid_attribute_value_it_must_succeed ( )
515
+ public async Task Can_update_resource_with_valid_attribute_value ( )
516
516
{
517
517
// Arrange
518
518
var directory = new SystemDirectory
@@ -552,7 +552,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
552
552
}
553
553
554
554
[ Fact ]
555
- public async Task When_patching_resource_with_annotated_relationships_it_must_succeed ( )
555
+ public async Task Can_update_resource_with_annotated_relationships ( )
556
556
{
557
557
// Arrange
558
558
var directory = new SystemDirectory
@@ -664,7 +664,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
664
664
}
665
665
666
666
[ Fact ]
667
- public async Task When_patching_resource_with_multiple_self_references_it_must_succeed ( )
667
+ public async Task Can_update_resource_with_multiple_self_references ( )
668
668
{
669
669
// Arrange
670
670
var directory = new SystemDirectory
@@ -723,7 +723,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
723
723
}
724
724
725
725
[ Fact ]
726
- public async Task When_patching_resource_with_collection_of_self_references_it_must_succeed ( )
726
+ public async Task Can_update_resource_with_collection_of_self_references ( )
727
727
{
728
728
// Arrange
729
729
var directory = new SystemDirectory
@@ -777,7 +777,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
777
777
}
778
778
779
779
[ Fact ]
780
- public async Task When_patching_annotated_ToOne_relationship_it_must_succeed ( )
780
+ public async Task Can_replace_annotated_ToOne_relationship ( )
781
781
{
782
782
// Arrange
783
783
var directory = new SystemDirectory
@@ -824,7 +824,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
824
824
}
825
825
826
826
[ Fact ]
827
- public async Task When_patching_annotated_ToMany_relationship_it_must_succeed ( )
827
+ public async Task Can_replace_annotated_ToMany_relationship ( )
828
828
{
829
829
// Arrange
830
830
var directory = new SystemDirectory
@@ -881,7 +881,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
881
881
}
882
882
883
883
[ Fact ]
884
- public async Task When_deleting_annotated_to_many_relationship_it_must_succeed ( )
884
+ public async Task Can_remove_from_annotated_ToMany_relationship ( )
885
885
{
886
886
// Arrange
887
887
var directory = new SystemDirectory
0 commit comments