Esempio n. 1
0
        public void CanUpdateTractor()
        {
            Tractor original       = _testRepo.GetTractorByName("Johnny Reb");
            Tractor currentTractor = new Tractor()
            {
                Name   = original.Name,
                Driver = original.Driver,
                Weight = original.Weight
            };

            currentTractor.Name = "Honest John";
            Tractor actual = _testRepo.UpdateTractor(original, currentTractor);

            Assert.AreEqual(currentTractor.Driver, actual.Driver);
        }
Esempio n. 2
0
 public Tractor UpdateTractor(int key, Tractor updatedTractor)
 {
     return(_myRepo.UpdateTractor(key, updatedTractor));
 }