private async void Update_Click(object sender, RoutedEventArgs e) { UpdateProduct product = new UpdateProduct(); selectedProduct = new Products() { Id = ProductId.Text, Name = ProductName.Text, Features = Features.Text.Split(','), Services = Services.Text.Split(','), DisplaySize = DisplaySize.Text, OtherInfo = null }; await product.UpdateAProduct(selectedProduct); }
public async void Test10() { UpdateProduct updateProduct = new UpdateProduct(); Products product = new Products() { Id = "P125", Name = "DemoProduct", Features = new[] { "Touch_Screen", "Alarm" }, Services = new[] { "ESN" }, DisplaySize = "upto 10" }; await updateProduct.UpdateAProduct(product); Assert.False(UpdateProduct.productUpdated); }