Ejemplo n.º 1
0
        public void Display(Order order, DateTime dateTimeObject, bool editMode = true)
        {
            Console.Clear();
            this.DisplayHeader();

            EditMode   = editMode;
            MyOrder    = Manipulation.CloneOrder(order);
            myDateTime = dateTimeObject;

            if (!editMode)
            {
                MyOrder = Calculation.CalculateRemainingProperties(order);
            }

            Output.DisplayOrder(MyOrder, false);

            Output.Prompt("The new order is shown, would you like to save these changes to file?");

            Screen next = GetKeyPress();

            if (next != null)
            {
                Screen.JumpScreen(next);
            }
        }
Ejemplo n.º 2
0
        public void TestCloneOrder()
        {
            Order newOrder = new Order();

            newOrder.CustomerName = "Mr. Test";
            newOrder.Area         = 420;
            newOrder.ProductType  = "Test Material";

            var result = Manipulation.CloneOrder(newOrder);
        }