internal static List <T> CDC <T>(ServiceContext context, T entity, DateTime changedSince) where T : IEntity { //Initializing the Dataservice object with ServiceContext DataService.DataService service = new DataService.DataService(context); List <IEntity> entityList = new List <IEntity>(); entityList.Add(entity); IntuitCDCResponse response = service.CDC(entityList, changedSince); if (response.entities.Count == 0) { return(null); } //Retrieving the entity List List <T> found = response.getEntity(entity.GetType().Name).Cast <T>().ToList(); Assert.IsNotNull(found); return(found); }