Ejemplo n.º 1
0
        public BusinessObject <EntityBase> FetchMetadataByID(int id)
        {
            ValidationUtility.ThrowIfLessThan(id, 1, "id");

            var entity = new TheTVDBDAO().GetShowByID(id);

            entity.Data.Updated = DateTime.Now;
            return(entity);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        public void TheTVDBDAOConstructorTest()
        {
            TheTVDBDAO target = new TheTVDBDAO();

            Assert.IsNotNull(target);
        }
Ejemplo n.º 4
0
 public void Setup()
 {
     _dao      = new TheTVDBDAO();
     _showID   = 79349;
     _showName = "Dexter";
 }