public BusinessObject <EntityBase> FetchMetadataByID(int id) { ValidationUtility.ThrowIfLessThan(id, 1, "id"); var entity = new TheTVDBDAO().GetShowByID(id); entity.Data.Updated = DateTime.Now; return(entity); }
public BusinessObject <List <EntityBase> > FetchMetadataByName(string name) { ValidationUtility.ThrowIfNullOrEmpty(name, "name"); name = this.ParseName(name); var entities = new TheTVDBDAO().GetShowsByName(name); entities.Data.ForEach((e) => e.Updated = DateTime.Now); return(entities); }
public void TheTVDBDAOConstructorTest() { TheTVDBDAO target = new TheTVDBDAO(); Assert.IsNotNull(target); }
public void Setup() { _dao = new TheTVDBDAO(); _showID = 79349; _showName = "Dexter"; }