Skip to content

Commit 63a0b51

Browse files
Update CreateExceptionTests.cs
1 parent 1fe3470 commit 63a0b51

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/UnitTests/ExceptionHandlingTests/CreateExceptionTests/CreateExceptionTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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]

0 commit comments

Comments
 (0)