Exemplo n.º 1
0
        public async Task  Test01()
        {
            var pageSize = GetRandomNumber();
            var page     = GetRandomNumber();

            var result = await _showService.GetAllPaginatedAsync(page, pageSize, CancellationToken.None);

            Assert.Single(result);
            Assert.Equal(result.Single(), _show);
            _showRepositoryMock.Verify(srm => srm.GetPaginatedAsync(page, pageSize, CancellationToken.None), Times.Once);
            _showRepositoryMock.VerifyNoOtherCalls();
        }