public async Task GetAsync_WhenCalled_ClubsFromDb() { var clubQuery = new ClubQuery { PageNumber = 1, PageSize = 10, SortBy = "name", IsSortAscending = true }; var expectedClubs = new PaginatedList <Club> { Pagination = new Pagination { PageNumber = 1, PageSize = 10 }, Items = new List <Club>() { new Club { Id = 1 }, new Club { Id = 2 }, new Club { Id = 3 }, } }; _clubRepository.Setup(c => c.GetAsync(clubQuery)).ReturnsAsync(expectedClubs); var result = await _clubService.GetAsync(clubQuery); Assert.That(result, Is.Not.Null); Assert.That(result, Is.EqualTo(expectedClubs)); }