Inheritance: ITestingReportEvents
Esempio n. 1
0
 internal TeamCityRunner(
     ILogger logger,
     IEventSubscriptionManager eventSubscriptionManager,
     IEventPublisher eventPublisher,
     IWebServer webServer,
     List<IWebBrowser> webBrowsers,
     TeamCityTestResultHandler teamCityTestResultHandler,
     string xapPath,
     IDialogMonitorRunner dialogMonitorRunner)
     : base(logger, eventSubscriptionManager, eventPublisher, webServer, webBrowsers, xapPath, dialogMonitorRunner)
 {
     _eventSubscriptionManager = eventSubscriptionManager;
     _teamCityTestResultHandler = teamCityTestResultHandler;
 }
        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;
        }