예제 #1
0
        public void PlannerFunctionalTests()
        {
            // create planner object
            Planner testPlanner = new Planner();

            //call methods to test
            try
            {
                testPlanner.CompleteOrder(new Order());
            }
            catch (Exception ex)
            {
                throw new Exception("CompleteOrder() exception");
            }

            try
            {
                testPlanner.GenerateSummaryReport(true);
            }
            catch (Exception ex)
            {
                throw new Exception("GenerateSummaryReport() exception");
            }

            try
            {
                testPlanner.PlanTrip(new Order(), new Carrier());
            }
            catch (Exception ex)
            {
                throw new Exception("PlanTrip() exception");
            }
        }