public NewsListViewModel(IRouter router, IViewModelsFactory viewModelsFactory, IActionsFactory actionsFactory) { instanceCounter++; this.Title = $"NY Times #{instanceCounter}"; if (router == null) { throw Error.ArgumentNull(nameof(router)); } if (viewModelsFactory == null) { throw Error.ArgumentNull(nameof(viewModelsFactory)); } if (actionsFactory == null) { throw Error.ArgumentNull(nameof(actionsFactory)); } this.Router = router; this.ViewModelsFactory = viewModelsFactory; this.ActionsFactory = actionsFactory; LoadMoreCommand = new Command(_ => OnLoadMore()); }
/// <summary> /// Initializes a new instance of the <see cref="FormHelper"/> class. /// </summary> /// <param name="webDriver">The Selenium Webdriver.</param> /// <param name="webDriverWaitHelper">The Selenium Webdriver wait helper.</param> public FormHelper(IWebDriver webDriver, IWebDriverWaitHelper webDriverWaitHelper, IActionsFactory actionsFactory) { this.WebDriver = webDriver; this.WebDriverWaitHelper = webDriverWaitHelper; this.ActionsFactory = actionsFactory; }