public void Find_AllColumns() { dynamic films = new Films(ProviderName); var singleInstance = films.Find(film_id: 43); Assert.AreEqual(43, singleInstance.film_id); }
public void Remove(int id) { Film f = Films.Find(m => m.Id == id); context.Films.Remove(f); SaveChanges(); }
public void Find_OneColumn() { dynamic films = new Films(ProviderName); var singleInstance = films.Find(film_id: 43, columns: "film_id"); Assert.AreEqual(43, singleInstance.film_id); Assert.AreEqual(DateTime.MinValue, singleInstance.last_update); }
public Film GetFilm(int id) { Film f = Films.Find(m => m.Id == id); return(f); }