public ActionResult Index() { BudgetGenerator generator = new BudgetGenerator(); AnnualReport annualReport = generator.Generate(ConfigurationHelper.FinancialBudgetUrl); return View(annualReport); }
public void Generate() { BudgetGenerator generator = new BudgetGenerator(); AnnualReport annualReport = generator.Generate("https://dl.dropboxusercontent.com/u/128970065/WebResources/BudgetReport/2014.csv"); Assert.AreEqual(3, annualReport.MonthlyLineItems.Count); }