public void TestGetProducts() { var auth = AccessToken.AccessToken.ProductMethods; var result = ProductMethods.GetProducts(token: auth, parameters: new RequestModel()); Assert.IsNotNull(result); Assert.IsTrue(result.Result == ResultType.Success); }
public void TestReturnProducts_Expected_All_Products() { List <Product> products = CreateSut(); ProductMethods pm = new ProductMethods(products); var results = pm.GetProducts(); Assert.AreEqual(2, results.Count); }
public List <Product> GetProducts() { return(ProductMethods.GetProducts(ConnectionString)); }