Example #1
0
 public static OrderSpacing Get()
 {
     if (instance == null)
     {
         instance = new OrderSpacing();
     }
     return(instance);
 }
Example #2
0
        public void PostOrder(dynamic Order)
        {
            if (OrderSpacing.Get().IsOrderSpacingRequired())
            {
                DateTime orderTime    = Order.SetOrderTime();
                var      newOrderTime = OrderSpacing.Get().OffsetOrderTime(orderTime);

                Order.SetOrderTime(newOrderTime);

                //TODO: Add to Queue
            }

            else
            {
                //TODO: Send to POS API
            }
        }