Пример #1
0
        static void Main(string[] args)
        {
            try
            {
                EndpointAddress ea = new EndpointAddress(string.Concat(
                                                             TestRunnerServiceConfig.Uri, "/", TestRunnerServiceConfig.PipeName));
                ITestRunnerService server = ChannelFactory <ITestRunnerService> .CreateChannel(new BasicHttpBinding(), ea);

                try
                {
                    string assembly = server.GetAssembly();
                    string nspace   = server.GetNamespace();
                    string type     = server.GetTypeName();
                    string method   = server.GetMethod();

                    ExternalTestRunner etr = new ExternalTestRunner();
                    etr.BeginRun(server, assembly, nspace, type, method);
                }
                catch (Exception ex)
                {
                    server.ReportError(ex);
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }
        }
        public FileWatcherService(IProjectWatcherRepository projectWatcherRepository, ITestRunnerService testRunnerService, IAppDataService appDataService)
        {
            _projectWatcherRepository = projectWatcherRepository;
            _appDataService           = appDataService;
            _testRunnerService        = testRunnerService;
            _fileWatcherLookUp        = new Dictionary <Guid, CustomFileWatcher>();

            _memoryCache = MemoryCache.Default;
        }
Пример #3
0
        public void BeginRun(ITestRunnerService service, string assembly, string nspace, string type, string method)
        {
            _service   = service;
            _assembly  = assembly;
            _namespace = nspace;
            _type      = type;
            _method    = method;

            Thread t = new Thread(new ThreadStart(Run));

            t.Start();
        }
Пример #4
0
 public TestOrchestrationService(ITestRepository testRepository, ITestRunnerService testRunnerService, ITestRunNotificationService testRunNotificationService)
 {
     this.testRepository             = testRepository.VerifyIsSet(nameof(testRepository));
     this.testRunnerService          = testRunnerService.VerifyIsSet(nameof(testRunnerService));
     this.testRunNotificationService = testRunNotificationService.VerifyIsSet(nameof(testRunNotificationService));
 }