コード例 #1
0
        public ListingReport CalculateAutoScoutListingReport()
        {
            List <Entities.ContactEntity> contacts = _csvHelper.CsvToContactList();
            List <Entities.ListingEntity> listings = _csvHelper.CsvToListingList();

            return(new ListingReport
            {
                AveragePriceReport = this.CalculateAveragePriceReport(30, contacts, listings),
                AvailableCarsPercentualDistributionReport = this.CalculateAvailableCarsPercentualDistributionReport(listings),
                AverageListingSellingPriceReport = this.CalculateAverageListingSellingPriceReport(listings),
                ContactedListingsPerMonthReport = this.CalculateContactedListingsPerMonthReport(contacts, listings),
            });
        }