Ejemplo n.º 1
0
        public async Task GetRegionsAsync_NoRestrictions_ShouldReturnTheRegions()
        {
            //Arrange
            expectedPaginatedRegions.Data = expectedRegions;
            moqRepository.Setup(x => x.GetSpotsAsync(It.IsAny <PagingModel>())).ReturnsAsync(expectedPaginatedRegions);

            //Act
            var actualPaginatedRegions = await service.GetRegionsAsync(paging);

            //Assert
            Assert.AreEqual(expectedRegions, actualPaginatedRegions.Data);
        }