public async Task WhenGetAsyncIsCalled_ThenPaginatedListIsReturnedWithData()
        {
            // Arrange
            var fixture = new PartnerServiceTestsFixture()
                          .SetupGetActions();

            // Act
            var partners = await fixture.PartnerService.GetAsync(new PartnerListRequestDto { CurrentPage = 1, PageSize = 10 });

            // Assert
            Assert.Equal(fixture.Partners, partners);
        }
예제 #2
0
        public async Task WhenGetAsyncIsCalled_ThenPaginatedListIsReturnedWithData()
        {
            // Arrange
            var fixture = new PartnerServiceTestsFixture()
                          .SetupGetActions();

            // Act
            var partners = await fixture.PartnerService.GetAsync(1, 10, string.Empty, null);

            // Assert
            Assert.Equal(fixture.Partners, partners);
        }