public MockProductRepository GetAllProductAsync() { Setup(x => x.GetAllAsync()).Returns(() => Task.FromResult(ProductStub.GetAllProducts())); return(this); }
public MockProductService GetAllProductAsync() { Setup(x => x.GetProductsAsync()).Returns(() => Task.FromResult(ProductStub.GetAllProducts())); return(this); }