public IRunner CreateTeamCityRunner(StatLightConfiguration statLightConfiguration) { if (statLightConfiguration == null) { throw new ArgumentNullException("statLightConfiguration"); } ILogger logger = new NullLogger(); IWebServer webServer; IEnumerable <IWebBrowser> webBrowsers; IDialogMonitorRunner dialogMonitorRunner; BuildAndReturnWebServiceAndBrowser( logger, out webServer, out webBrowsers, out dialogMonitorRunner); var teamCityTestResultHandler = new TeamCityTestResultHandler(new ConsoleCommandWriter(), statLightConfiguration.Server.XapToTestPath); IRunner runner = new TeamCityRunner(logger, _eventSubscriptionManager, _eventPublisher, webServer, webBrowsers.ToList(), teamCityTestResultHandler, statLightConfiguration.Server.XapToTestPath, dialogMonitorRunner); return(runner); }
public IRunner CreateTeamCityRunner(StatLightConfiguration statLightConfiguration) { if (statLightConfiguration == null) throw new ArgumentNullException("statLightConfiguration"); ILogger logger = new NullLogger(); IWebServer webServer; IEnumerable<IWebBrowser> webBrowsers; IDialogMonitorRunner dialogMonitorRunner; BuildAndReturnWebServiceAndBrowser( logger, out webServer, out webBrowsers, out dialogMonitorRunner); var teamCityTestResultHandler = new TeamCityTestResultHandler(new ConsoleCommandWriter(), statLightConfiguration.Server.XapToTestPath); IRunner runner = new TeamCityRunner(logger, _eventSubscriptionManager, _eventPublisher, webServer, webBrowsers.ToList(), teamCityTestResultHandler, statLightConfiguration.Server.XapToTestPath, dialogMonitorRunner); return runner; }