public void FootballStandingFileRepositoryHasCorrectMinimumTemperatureDifferential() { var repo = new FootballStandingFileRepository(); var result = ((IRepository <IFootballStanding>)repo).GetMinimumDifferential(); Approvals.VerifyAll(result, "Football Standing"); }
private static void RunFootballStandingFileRepository() { FootballStandingFileRepository repo2 = new FootballStandingFileRepository(); Console.WriteLine("Searching Weather Data Point File Repository"); IEnumerable <IFootballStanding> result = ((IRepository <IFootballStanding>)repo2).GetMinimumDifferential(); Console.WriteLine("Found Team {0} has the smallest goal differential of {1}", result.FirstOrDefault().Team, result.FirstOrDefault().GoalDifferential); }
public void FootballStandingFileRepositoryTest() { var repo = new FootballStandingFileRepository(); Approvals.VerifyAll(repo, "Football Standing"); }