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); } }
public OrdersController(IOrderSvc order, IXMLHelperSingle xml, IWeChatPaySingle pay, ILogger <OrdersController> log, IMyShopSvc shop) { _order = order; _xml = xml; _pay = pay; _log = log; _shop = shop; }
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; }
/// <summary> /// /// </summary> /// <param name="orderSvc"></param> public void setOrderSvc(IOrderSvc orderSvc) { this.orderSvc = orderSvc; }
public PaymentResponseConsumer(IOrderSvc svc) { _svc = svc; }
public FormMain(IOrderSvc orderSvc, ITableSvc tableSvc) { InitializeComponent(); _orderSvc = orderSvc; _tableSvc = tableSvc; }
public ShippingResponseConsumer(IOrderSvc svc) { _svc = svc; }
public OrderController(IOrderSvc svc, IBusControl bus) { _svc = svc; _bus = bus; }