public void GPUList_ReturnGPUListWhenQuanityMoreThanPageSize_RightReturn() { //Arrange ShowService service = new ShowService( uow.Object, CPUs.Object, GPUs.Object, Games.Object, Mapper); var gpuList = new List <GPU>(); for (var i = 0; i < 100; i++) { gpuList.Add( new GPU { ProductGuid = Guid.NewGuid(), Name = i.ToString() }); } GPUs.Setup(x => x.Get()).Returns(gpuList.AsQueryable()); //Act var result = service.ListGPU(2); //Assert Assert.AreEqual(10, result.GPUList.Count()); }