示例#1
0
 public RootRunner(IRunListener listener, IAppDomainFactory appDomainFactory, IResourceManager resourceManager, IResultFactory resultFactory)
 {
     _listener         = listener;
     _appDomainFactory = appDomainFactory;
     _resourceManager  = resourceManager;
     _resultFactory    = resultFactory;
 }
示例#2
0
 public RootRunner(IRunListener listener, IAppDomainFactory appDomainFactory, IResourceManager resourceManager, IResultFactory resultFactory)
 {
     _listener = listener;
       _appDomainFactory = appDomainFactory;
       _resourceManager = resourceManager;
       _resultFactory = resultFactory;
 }
示例#3
0
 public IAssemblyRunner Create(IRunListener listener, IResourceManager resourceManager, ICancellationTokenSource cancellationTokenSource)
 {
     var builder = new ContainerBuilder();
       builder.RegisterModule(new EvaluationModule(listener, useSeparateAppDomains: false /* don't care */));
       // Re-registering
       builder.RegisterInstance(resourceManager).As<IResourceManager>();
       builder.RegisterInstance(cancellationTokenSource).As<ICancellationTokenSource>();
       // Only SetupCommon's and CleanupCommon's should be added for assembly suite
       builder.RegisterInstance(new OperationSorter(new[] { typeof (SetupCommon), typeof (CleanupCommon) })).As<IOperationSorter>();
       var container = builder.Build();
       return new AssemblyRunner(container.Resolve<IAssemblyLoader>(), container.Resolve<ISuiteRunner>());
 }
        public IAssemblyRunner Create(IRunListener listener, IResourceManager resourceManager, ICancellationTokenSource cancellationTokenSource)
        {
            var builder = new ContainerBuilder();

            builder.RegisterModule(new EvaluationModule(listener, useSeparateAppDomains: false /* don't care */));
            // Re-registering
            builder.RegisterInstance(resourceManager).As <IResourceManager>();
            builder.RegisterInstance(cancellationTokenSource).As <ICancellationTokenSource>();
            // Only SetupCommon's and CleanupCommon's should be added for assembly suite
            builder.RegisterInstance(new OperationSorter(new[] { typeof(SetupCommon), typeof(CleanupCommon) })).As <IOperationSorter>();
            var container = builder.Build();

            return(new AssemblyRunner(container.Resolve <IAssemblyLoader>(), container.Resolve <ISuiteRunner>()));
        }
示例#5
0
 public SuiteRunner(
     IResourceManager resourceManager,
     IResultFactory resultFactory,
     IContextRunner contextRunner,
     ITestRunner testRunner,
     IRunListener listener,
     ICancellationTokenSource cancellationTokenSource)
 {
     _resourceManager         = resourceManager;
     _resultFactory           = resultFactory;
     _contextRunner           = contextRunner;
     _testRunner              = testRunner;
     _listener                = listener;
     _cancellationTokenSource = cancellationTokenSource;
 }
示例#6
0
 public void RemoveRunListener(IRunListener runListener)
 {
     m_Listeners.Remove(runListener);
 }
示例#7
0
 public EvaluationModule(IRunListener listener, bool useSeparateAppDomains)
 {
     _listener = listener;
       _useSeparateAppDomains = useSeparateAppDomains;
 }
示例#8
0
 public TestRunner(IResultFactory resultFactory, IOperationRunner operationRunner, IRunListener listener)
 {
     _resultFactory   = resultFactory;
     _operationRunner = operationRunner;
     _listener        = listener;
 }
 public AdapterListener(IRunListener listener, string assemblyPath)
 {
     this.listener     = listener;
     this.assemblyPath = assemblyPath;
 }
示例#10
0
 public TestRunner(IResultFactory resultFactory, IOperationRunner operationRunner, IRunListener listener)
 {
     _resultFactory = resultFactory;
       _operationRunner = operationRunner;
       _listener = listener;
 }
 public CrossAppDomainRunListener(IRunListener listener)
 {
     _listener = listener;
 }
 public LoggingRunListener(IRunListener listener)
 {
     this.listener = listener;
 }
示例#13
0
 public CrossAppDomainRunListener(IRunListener listener)
 {
     _listener = listener;
 }
示例#14
0
 public void AddRunListener(IRunListener runListener)
 {
     m_Listeners.Add(runListener);
 }
示例#15
0
 public IConcordionExtender WithRunListener(IRunListener listener)
 {
     RunCommand.AddRunListener(listener);
     return(this);
 }
示例#16
0
 public void RemoveRunListener(IRunListener runListener)
 {
     m_Listeners.Remove(runListener);
 }
示例#17
0
 public void AddRunListener(IRunListener runListener)
 {
     m_Listeners.Add(runListener);
 }
 public IConcordionExtender WithRunListener(IRunListener listener)
 {
     RunCommand.AddRunListener(listener);
     return this;
 }
示例#19
0
 public EvaluationModule(IRunListener listener, bool useSeparateAppDomains)
 {
     _listener = listener;
     _useSeparateAppDomains = useSeparateAppDomains;
 }