Ejemplo n.º 1
0
        public void testStoreOrder()
        {
            try {
                //week 3
                //IOrderSvc ics = factory.getOrderSvc();

                //week 4
                IOrderSvc ics = (IOrderSvc)factory.getService("IOrderSvc");

                // First let's store the Order
                Assert.True(ics.storeOrder(o));

                // Then let's read it back in
                o = ics.getOrder(o.id);
                Assert.True(o.validate());

                // Update the Order
                o.isComplete  = true;
                o.isSubmitted = true;
                Assert.True(ics.storeOrder(o));

                // Finally, let's cleanup the file that was created
                Assert.True(ics.deleteOrder(o.id));
            }
            catch (Exception e) {
                Console.WriteLine("Exception in testStoreOrder: " + e.Message + "\n" + e.StackTrace);
                Assert.Fail(e.Message + "\n" + e.StackTrace);
            }
        }
Ejemplo n.º 2
0
 public OrdersController(IOrderSvc order, IXMLHelperSingle xml, IWeChatPaySingle pay,
                         ILogger <OrdersController> log, IMyShopSvc shop)
 {
     _order = order;
     _xml   = xml;
     _pay   = pay;
     _log   = log;
     _shop  = shop;
 }
Ejemplo n.º 3
0
 public FormTableStatus(MoveableTable tableObj, IOrderSvc orderSvc)
 {
     InitializeComponent();
     cBoxState.DataSource = Enum.GetValues(typeof(TableStateEnum));
     _currentOrder        = new OrderDto {
         Table = tableObj.BindedEntity
     };
     LoadStockMeals();
     LoadTableDetail();
     this.LoadImage(tableObj);
     _orderSvc = orderSvc;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="orderSvc"></param>
 public void setOrderSvc(IOrderSvc orderSvc)
 {
     this.orderSvc = orderSvc;
 }
Ejemplo n.º 5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="orderSvc"></param>
 public void setOrderSvc(IOrderSvc orderSvc)
 {
     this.orderSvc = orderSvc;
 }
 public PaymentResponseConsumer(IOrderSvc svc)
 {
     _svc = svc;
 }
Ejemplo n.º 7
0
 public FormMain(IOrderSvc orderSvc, ITableSvc tableSvc)
 {
     InitializeComponent();
     _orderSvc = orderSvc;
     _tableSvc = tableSvc;
 }
 public ShippingResponseConsumer(IOrderSvc svc)
 {
     _svc = svc;
 }
Ejemplo n.º 9
0
 public OrderController(IOrderSvc svc, IBusControl bus)
 {
     _svc = svc;
     _bus = bus;
 }