Skip to content

Commit

Permalink
finished
Browse files Browse the repository at this point in the history
  • Loading branch information
AngeloSans committed Jul 8, 2024
1 parent 44e99a4 commit 80d707c
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions XPhone/XPhone.Tests/QueriesTests/ClientQueryServiceTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ public class ClientQueryServiceTests
[Fact]
public async Task GetAllClientsAsync_ReturnsAllClients()
{

var mockClientRepository = new Mock<IClientRepository>();
var clients = new List<Client>
{
Expand All @@ -28,10 +27,21 @@ public async Task GetAllClientsAsync_ReturnsAllClients()

var result = await queryService.GetAllClientsAsync();


Assert.Equal(clients.Count, result.Count);

Check failure on line 31 in XPhone/XPhone.Tests/QueriesTests/ClientQueryServiceTest.cs

View workflow job for this annotation

GitHub Actions / build

Argument 2: cannot convert from 'method group' to 'int'

Check failure on line 31 in XPhone/XPhone.Tests/QueriesTests/ClientQueryServiceTest.cs

View workflow job for this annotation

GitHub Actions / build

Argument 2: cannot convert from 'method group' to 'int'

Assert.Equal(clients, result);
for (int i = 0; i < clients.Count; i++)
{
Assert.Equal(clients[i].Id, result[i].Id);

Check failure on line 35 in XPhone/XPhone.Tests/QueriesTests/ClientQueryServiceTest.cs

View workflow job for this annotation

GitHub Actions / build

Cannot apply indexing with

Check failure on line 35 in XPhone/XPhone.Tests/QueriesTests/ClientQueryServiceTest.cs

View workflow job for this annotation

GitHub Actions / build

Cannot apply indexing with
Assert.Equal(clients[i].Name, result[i].Name);

Check failure on line 36 in XPhone/XPhone.Tests/QueriesTests/ClientQueryServiceTest.cs

View workflow job for this annotation

GitHub Actions / build

Cannot apply indexing with

Check failure on line 36 in XPhone/XPhone.Tests/QueriesTests/ClientQueryServiceTest.cs

View workflow job for this annotation

GitHub Actions / build

Cannot apply indexing with
Assert.Equal(clients[i].Phone, result[i].Phone);

Check failure on line 37 in XPhone/XPhone.Tests/QueriesTests/ClientQueryServiceTest.cs

View workflow job for this annotation

GitHub Actions / build

Cannot apply indexing with

Check failure on line 37 in XPhone/XPhone.Tests/QueriesTests/ClientQueryServiceTest.cs

View workflow job for this annotation

GitHub Actions / build

Cannot apply indexing with
Assert.Equal(clients[i].Fine, result[i].Fine);

Check failure on line 38 in XPhone/XPhone.Tests/QueriesTests/ClientQueryServiceTest.cs

View workflow job for this annotation

GitHub Actions / build

Cannot apply indexing with
Assert.Equal(clients[i].FineAmount, result[i].FineAmount);

Check failure on line 39 in XPhone/XPhone.Tests/QueriesTests/ClientQueryServiceTest.cs

View workflow job for this annotation

GitHub Actions / build

Cannot apply indexing with

}
}


[Fact]
public async Task GetClientByIdAsync_ExistingClient_ReturnsClientDTO()
{
Expand Down

0 comments on commit 80d707c

Please sign in to comment.