コード例 #1
0
        public async void TestUpsert()
        {
            MockFromFile("products.upsert.success");

            var service = GetProductsService();
            Assert.NotNull(service);

            var data = new UpsertProduct
            {
                Spn = "1000",
                Name = "Produkt 1000",
                Price = 4.99,
                OrderUnit = "PCE"
            };

            var response = await service.Upsert().Pin("AD8CCDD5F9").Area("work").Product(data).Do();
            Assert.NotNull(response);
            Assert.IsNotNullOrEmpty(response.Link);
            Assert.AreEqual("store#productsUpsertResponse", response.Kind);
        }
コード例 #2
0
		/// <summary>
		///     Product properties of the new product.
		/// </summary>
		public UpsertService Product(UpsertProduct product)
		{
			_product = product;
			return this;
		}