public async Task GetSpotsByRegionAsync_RegionExists_ShouldReturnThePaginatedSpots() { // Arrange moqRepository.Setup(x => x.GetRegionByIdAsync(It.IsAny <int>())).ReturnsAsync(expectedRegion); moqSpotsService.Setup(x => x.GetSpotsByRegionIdAsync(It.IsAny <int>(), It.IsAny <PagingModel>())).ReturnsAsync(expectedPaginatedSpots); // Act var actualPaginatedSpots = await service.GetSpotsByRegionAsync(regionId, paging); // Assert moqRepository.VerifyAll(); Assert.AreEqual(expectedPaginatedSpots, actualPaginatedSpots); }