示例#1
0
        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);
        }
示例#2
0
        public void TestReturnProducts_Expected_All_Products()
        {
            List <Product> products = CreateSut();
            ProductMethods pm       = new ProductMethods(products);

            var results = pm.GetProducts();

            Assert.AreEqual(2, results.Count);
        }
示例#3
0
 public List <Product> GetProducts()
 {
     return(ProductMethods.GetProducts(ConnectionString));
 }