public async Task AllAsyncShouldReturnAllGames() { // Arrange var dbContext = Testing.CreateDatabaseContext(); var mapper = Testing.CreateMapper(); await dbContext .AddRangeAsync( new Game { Id = 1 }, new Game { Id = 2 }, new Game { Id = 3 }); await dbContext.SaveChangesAsync(); var gameService = new GameService(dbContext, mapper); // Act var result = await gameService.AllAsync(); // Assert result .Should() .Contain(g => g.Id == 1) .And .Contain(g => g.Id == 2) .And .Contain(g => g.Id == 3) .And .HaveCount(3); }