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); }
public Tractor UpdateTractor(int key, Tractor updatedTractor) { return(_myRepo.UpdateTractor(key, updatedTractor)); }