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); }
public NewsProcessor(IDataRetrieval dataRetrieval) { _dataRetrieval = dataRetrieval; _stories = new List <Story>(); LoadNewestStories(); }