Beispiel #1
0
        public void _006_TestProductDelete()
        {
            var dictionary = new Dictionary <string, string>();

            dictionary.Add("product_id", product_id);
            var result = TwocheckoutProduct.Delete(dictionary);

            Assert.IsInstanceOf <TwocheckoutResponse>(result);
        }
Beispiel #2
0
        public void _003_TestProductRetrieve()
        {
            var dictionary = new Dictionary <string, string>();

            dictionary.Add("product_id", product_id);
            var result = TwocheckoutProduct.Retrieve(dictionary);

            Assert.IsInstanceOf <Product>(result);
        }
Beispiel #3
0
        public void _005_TestProductUpdate()
        {
            var dictionary = new Dictionary <string, string>();

            dictionary.Add("product_id", product_id);
            dictionary.Add("vendor_product_id", "TestProduct123");
            dictionary.Add("price", "0.01");
            var result = TwocheckoutProduct.Update(dictionary);

            Assert.IsInstanceOf <TwocheckoutResponse>(result);
        }
Beispiel #4
0
        public void _002_TestProductCreate()
        {
            var dictionary = new Dictionary <string, string>();

            dictionary.Add("name", "TestProduct");
            dictionary.Add("vendor_product_id", "TestProduct123");
            dictionary.Add("price", "0.01");
            var result = TwocheckoutProduct.Create(dictionary);

            product_id = result.product_id;
            Assert.IsInstanceOf <TwocheckoutResponse>(result);
        }
Beispiel #5
0
        public void _004_TestProductList()
        {
            var result = TwocheckoutProduct.List();

            Assert.IsInstanceOf <ProductList>(result);
        }