private void UpdateTracks() { _allTracks = new List <BeheerTrack>(); foreach (var track in _repo.GetTracksAndSectors()) { _allTracks.Add(track == null ? null : BeheerTrack.ToBeheerTrack(track)); } }
public void EditTrack() { var track = _logisticRepository.GetTrack(1000); var newTrack = BeheerTrack.ToBeheerTrack(track); newTrack.LockTrack(); _logisticRepository.EditTrack(newTrack); var fetchTrack = _logisticRepository.GetTrack(1000); Assert.AreEqual(JsonConvert.SerializeObject(track), JsonConvert.SerializeObject(fetchTrack)); }