public async Task DepartmentRepository_GetDepartmentsPaging_NotNull_Success() { var mockList = new List <Department>() { new Department() { Name = "DepartmentRepository_GetDepartmentsPaging_NotNull_Success1", Uuid = Guid.NewGuid(), }, new Department() { Name = "DepartmentRepository_GetDepartmentsPaging_NotNull_Success2", Uuid = Guid.NewGuid(), }, new Department() { Name = "DepartmentRepository_GetDepartmentsPaging_NotNull_Success3", Uuid = Guid.NewGuid(), }, new Department() { Name = "DepartmentRepository_GetDepartmentsPaging_NotNull_Success4", Uuid = Guid.NewGuid() } }; await _repository.CreateAsync(mockList); var result = _repository.GetDepartmentsPagingAsync("", 1, 2); Assert.Equal(2, result.Result.Count()); }