Skip to content

Commit

Permalink
Improve code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmed-Ghanam committed Oct 7, 2024
1 parent 2d755a4 commit 3aa73a6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void Dispose()
public async Task GetUserContactInfoAsync_ReturnsContactInfo_WhenFound()
{
// Act
var result = await _registerRepository.GetUserContactInfoAsync(new[] { "17111933790" });
var result = await _registerRepository.GetUserContactInfoAsync(["17111933790"]);

var actual = result.FirstOrDefault(e => e.FnumberAk == "17111933790");
var expected = _personContactAndReservationTestData.FirstOrDefault(e => e.FnumberAk == "17111933790");
Expand Down Expand Up @@ -89,7 +89,7 @@ public async Task GetUserContactInfoAsync_ReturnsMultipleContacts_WhenFound()
var expected = _personContactAndReservationTestData.Where(e => e.FnumberAk == "24064316776" || e.FnumberAk == "11044314101");

// Assert
Assert.Equal(2, result.Count());
Assert.Equal(2, result.Count);

foreach (var register in result)
{
Expand Down

0 comments on commit 3aa73a6

Please sign in to comment.