Beispiel #1
0
        public void CanGetAllTractors()
        {
            Dictionary <int, Tractor> actual = _testRepo.GetAllTractors();

            Assert.AreEqual(4, actual.LongCount());
        }
Beispiel #2
0
        public Dictionary <int, Tractor> GetAllTractors()
        {
            var sortedDictionary = _myRepo.GetAllTractors().OrderBy(kv => kv.Key);

            return(sortedDictionary.ToDictionary(kv => kv.Key, kv => kv.Value));
        }