public void CanGetAllTractors() { Dictionary <int, Tractor> actual = _testRepo.GetAllTractors(); Assert.AreEqual(4, actual.LongCount()); }
public Dictionary <int, Tractor> GetAllTractors() { var sortedDictionary = _myRepo.GetAllTractors().OrderBy(kv => kv.Key); return(sortedDictionary.ToDictionary(kv => kv.Key, kv => kv.Value)); }