File tree Expand file tree Collapse file tree
tests/UnitTests/ExceptionHandlingTests/CreateExceptionTests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ public async Task Run_EmptyRequest_ReturnBadRequest()
6868 }
6969
7070 [ TestMethod ]
71- public async Task Run_ExceptionRecordCreated_ReturnsCreated ( )
71+ public async Task Run_ExceptionRecordCreated_ReturnsOk ( )
7272 {
7373 // Arrange
7474 _validationExceptionData . Setup ( s => s . Create ( It . IsAny < ValidationException > ( ) ) ) . ReturnsAsync ( true ) ;
@@ -79,7 +79,7 @@ public async Task Run_ExceptionRecordCreated_ReturnsCreated()
7979 // Assert
8080 Assert . IsNotNull ( result ) ;
8181 _validationExceptionData . Verify ( v => v . Create ( It . IsAny < ValidationException > ( ) ) , Times . Once ) ;
82- Assert . AreEqual ( HttpStatusCode . Created , result . StatusCode ) ;
82+ Assert . AreEqual ( HttpStatusCode . OK , result . StatusCode ) ;
8383 }
8484
8585 [ TestMethod ]
You can’t perform that action at this time.
0 commit comments