public ActionResult ResultsSeason2016_2017(string id) { var fixtureData = new FixtureData(); if (id == "getRecentResults") { var scrapedFixtures = fixtureData.GetFixturesAndResults; ViewData["ResultsWithoutSpreadSuccessRate"] = new FixtureData().GetResultsWithoutSpreadsPredictionSuccessRate; return(View(scrapedFixtures.ToList().OrderByDescending(x => x.FixtureDate))); } var results = new ResultsSeason2016_2017(); var orderedResults = results.GetSeasonResults(_db).ToList().OrderByDescending(x => x.FixtureDate); ViewData["ResultsWithoutSpreadSuccessRate"] = new FixtureData().GetResultsWithoutSpreadsPredictionSuccessRate; return(View(orderedResults)); }
public void TearDown() { _fixture2016To2017 = null; }
public void SetUp() { _fixture2016To2017 = new ResultsSeason2016_2017(); }