예제 #1
0
        public void CanGetTractor()
        {
            Tractor actual = _testRepo.GetTractor(1);

            Assert.AreEqual("Johnny Reb", actual.Name);
            Assert.AreEqual("Kenny Webb", actual.Driver);
            Assert.AreEqual(9990, actual.Weight);
        }
예제 #2
0
 public Tractor GetATractorByKey(int key)
 {
     return(_myRepo.GetTractor(key));
 }