Пример #1
0
        public async Task GetPageAsync_should_return_1_user_when_page_is_3_and_pageSize_is_2()
        {
            // arrange
            TestDataInitializer.Init6UsersWhereLastOneIsDeleted(_context);

            //act
            var result = await _userRepository.GetPageAsync(3, 2);

            //assert
            Assert.Equal(1, result.Data.Count);
        }