public async Task AddSpotToRegionAsync_RegionExists_ShouldReturnTheSpot() { // Arrange moqRepository.Setup(x => x.GetRegionByIdAsync(It.IsAny <int>())).ReturnsAsync(expectedRegion); moqSpotsService.Setup(x => x.AddSpotAsync(It.IsAny <Spot>(), It.IsAny <Region>())).ReturnsAsync(expectedSpot); // Act var actualSpot = await service.AddSpotToRegionAsync(spot); // Assert moqRepository.VerifyAll(); Assert.AreEqual(expectedSpot, actualSpot); }