public ConsoleBase()
        {
            var order = GetUserDetails();

            order.ShapeList = GenerateShapeListFromFactory();
            GetShapeDetailsFromUser(order.ShapeList);

            InvoiceReport invoice = new InvoiceReport(order);

            invoice.GenerateReport();
            CuttingReport cuttingReport = new CuttingReport(order);

            cuttingReport.GenerateReport();
            PaintingReport paintingReport = new PaintingReport(order);

            paintingReport.GenerateReport();
        }
Exemple #2
0
        static void Main(string[] args)
        {
            Program obj          = new Program();
            var     squareList   = obj.GenerateSquareList();
            var     circleList   = obj.GenerateCircleList();
            var     triangleList = obj.GenerateTriangleList();
            var     shapeList    = obj.GenerateShapeList(squareList, circleList, triangleList);

            var order = obj.GetUserDetails();

            order.ShapeList = shapeList;
            obj.GetShapeDetailsFromUser(shapeList);

            InvoiceReport invoice = new InvoiceReport();

            invoice.GenerateReport(order);
            CuttingReport cuttingReport = new CuttingReport();

            cuttingReport.GenerateReport(order);
            PaintingReport paintingReport = new PaintingReport();

            paintingReport.GenerateReport(order);
        }