public async void TestReplace() { MockFromFile("products.replace.success"); var service = GetProductsService(); Assert.NotNull(service); var replace = new ReplaceProduct { Name = "MacBook Air 11in (NEU!)", Price = 1225.50, OrderUnit = "PCE" }; var response = await service.Replace().Pin("AD8CCDD5F9").Area("work").Spn("1000").Product(replace).Do(); Assert.NotNull(response); Assert.IsNotNullOrEmpty(response.Link); Assert.AreEqual("store#productsReplaceResponse", response.Kind); }
/// <summary> /// New properties of the product. /// </summary> public ReplaceService Product(ReplaceProduct product) { _product = product; return this; }