Esempio n. 1
0
        public void GenerateXmlShopReport()
        {
            var         dbContext = new DealershipDbContext();
            ReportQuery query     = new ReportQuery();

            ICollection <IXmlShopReport> totalReport = new List <IXmlShopReport>();
            IReportWriter totalWriter = new XmlShopReportWriter(query.ShopReport(dbContext, totalReport));

            totalWriter.Write();
        }
        public void GenerateXmlShopReport()
        {
            textWriter.WriteLine("Generating Xml report...");

            var         dbContext = new DealershipDbContext();
            ReportQuery query     = new ReportQuery();

            ICollection <IXmlShopReport> totalReport = new List <IXmlShopReport>();
            IReportWriter totalWriter = new XmlShopReportWriter(query.ShopReport(dbContext, totalReport));

            totalWriter.Write();
            textWriter.WriteLine("Xml report created successfully!");
        }