public ProductService() { var str = ConfigurationManager.AppSettings["Interval"]; productIndex = new SearchIndex(); hours = int.Parse(str); InitializeComponent(); }
public ProductController(IProductIndex productIndex) { ProductIndex = productIndex; }