Пример #1
0
 public MockProductRepository GetAllProductAsync()
 {
     Setup(x => x.GetAllAsync()).Returns(() => Task.FromResult(ProductStub.GetAllProducts()));
     return(this);
 }
Пример #2
0
 public MockProductService GetAllProductAsync()
 {
     Setup(x => x.GetProductsAsync()).Returns(() => Task.FromResult(ProductStub.GetAllProducts()));
     return(this);
 }