Ejemplo n.º 1
0
        public async void TestUpdate()
        {
            MockFromFile("products.update.success");

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

            var update = new UpdateProduct
            {
                Name = "Produkt 1000 (NEU!)",
                Price = 2.50,
                OrderUnit = "PCE"
            };

            var response = await service.Update().Pin("AD8CCDD5F9").Area("work").Spn("MBA").Product(update).Do();
            Assert.NotNull(response);
            Assert.IsNotNullOrEmpty(response.Link);
            Assert.AreEqual("store#productsUpdateResponse", response.Kind);
        }
Ejemplo n.º 2
0
		/// <summary>
		///     Products properties of the updated product.
		/// </summary>
		public UpdateService Product(UpdateProduct product)
		{
			_product = product;
			return this;
		}