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