Exemple #1
0
        public API(string studyId, string dataSource, Method connectionType)
        {
            this.connectionType = connectionType;
            this.dataSource     = dataSource;
            this.studyId        = studyId;
            Creator creator = new Creator();

            this.dataRetrieval = creator.Create(studyId, dataSource, connectionType);
        }
Exemple #2
0
 public NewsProcessor(IDataRetrieval dataRetrieval)
 {
     _dataRetrieval = dataRetrieval;
     _stories       = new List <Story>();
     LoadNewestStories();
 }