示例#1
0
        public void AddProdectTest()
        {
            var addProductData = new AddProductData();
            var result         = ProductApi.AddProduct("[appid]", addProductData);

            Console.Write(result);
            Assert.IsNotNull(result);
        }
示例#2
0
        public void AddProduct(string name, string description, decimal price, int categoryId)
        {
            IProductApi api = new ProductApi();

            api.AddProduct(name, description, price, categoryId);
        }