Skip to content

Commit

Permalink
Testing usernames in case-insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDave1999 committed Apr 25, 2024
1 parent 13b0345 commit 51cd910
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/IntegrationTests/UseCases/Security/Users/Create.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,16 @@ public async Task Post_WhenFieldsAreEmpty_ShouldReturnsBadRequest()
httpResponse.StatusCode.Should().Be(HttpStatusCode.BadRequest);
}

[Test]
public async Task Post_WhenUserNameExists_ShouldReturnsConflict()
[TestCase("[email protected]")]
[TestCase("[email protected]")]
public async Task Post_WhenUserNameExists_ShouldReturnsConflict(string userName)
{
// Arrange
var client = ApplicationFactory.CreateClient();
var requestUri = $"{TestSettings.BaseUri}user";
var request = new CreateBasicUserRequest
{
UserName = "[email protected]",
UserName = userName,
Password = "Dsr2877565716",
Document = "0923611701",
Names = "David Sebastian",
Expand Down

0 comments on commit 51cd910

Please sign in to comment.