public void Update(Monument dummyMonument) { NumberOfTimesUpdateCalled++; var index = MonumentList.FindIndex(monument => monument.Id == dummyMonument.Id); MonumentList[index] = dummyMonument; }
public void Remove(long id) { NumberOfTimesRemoveCalled++; MonumentList = MonumentList.Where(monument => monument.Id != id).ToList(); }
public Monument Find(long monumentId) { NumberOfTimesFindCalled++; return(MonumentList.Find(monument => monument.Id == monumentId)); }
public void Add(Monument monument) { NumberOfTimesAddCalled++; MonumentList.Add(monument); }