public async Task GetMyCustomerPaginationTestAsync() { var mock = new Mock <IPaginationService>(); mock.Setup(a => a.GetMyCustomerPaginationAsync(2, 10, "petya")).Returns(Task.FromResult(new IndexOutput())); var component = new PaginationService(PostgreContext, UserService); var result = await component.GetMyCustomerPaginationAsync(2, 10, "petya"); Assert.IsNotNull(result); }