/// <summary> /// Initializes a new instance of the <see cref="ScanReportManager"/> class. /// </summary> /// <param name="clientUser">The client user.</param> public ScanReportManager(ClientUser clientUser) { this.currentUser = clientUser; this.repository = new ScanReportRepository(clientUser); this.config = new SysConfig(); this.keywordManager = new CompanyKeywordManager(this.config, this.currentUser); }
/// <summary> /// Initializes a new instance of the <see cref="DataGeneratorBase"/> class. /// </summary> /// <param name="config">The configuration.</param> /// <param name="clientUser">The client user.</param> public DataGeneratorBase(SysConfig config, ClientUser clientUser) : base(config, clientUser) { this.dateRange = -config.DateRange; this.keywordManager = new CompanyKeywordManager(this.config, clientUser); this.caDataManager = new CADataManager(this.config, clientUser); }
/// <summary> /// Gets the filter keys dic. /// </summary> /// <param name="profiles">The profiles.</param> /// <returns>Dictionary<System.String, List<System.String>>.</returns> private Dictionary <string, List <string> > GetFilterKeysDic(IList <ClientUserProfile> profiles) { var filterKeysDic = new Dictionary <string, List <string> >(); foreach (var p in profiles) { var keywordManager = new CompanyKeywordManager(null, new ClientUser(p)); filterKeysDic.Add(p.UserName, keywordManager.GetCompanyKeywords()); } return(filterKeysDic); }