Exemplo n.º 1
0
 public void SendOrder(Order o)
 {
     using (var client = new OrdersServiceClient())
     {
         client.Open();
         client.PrepareOrder(o);
         client.Close();
     }
 }
Exemplo n.º 2
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     var order = new Order()
                 {
                     ProductName = textBox1.Text,
                     Quantity = Convert.ToInt16(slider1.Value)
                 };
     OrdersFacade ordersFacade = new OrdersFacade();
     ordersFacade.SendOrder(order);
 }
Exemplo n.º 3
0
 public void PrepareOrder(Order order)
 {
     Console.WriteLine("Prepare order : {0}, Qty:{1}", order.ProductName,order.Quantity);
 }