public MockProductRepository GetNotProductAsync() { Setup(x => x.GetAllAsync()).Returns(() => Task.FromResult <IEnumerable <Product> >(ProductStub.GetNotProductAsync())); return(this); }
public MockProductService GetNotProductAsync() { Setup(x => x.GetProductsAsync()).Returns(() => Task.FromResult <IEnumerable <Product> >(ProductStub.GetNotProductAsync())); return(this); }