Ejemplo n.º 1
0
 public BaseTest()
 {
     Container = UnityContainerFactory.GetContainer();
     Container.RegisterInstance(Container);
     _currentTestExecutionProvider = new TestExecutionProvider();
     InitializeTestExecutionBehaviorObservers(_currentTestExecutionProvider, Container);
 }
Ejemplo n.º 2
0
 public BaseTest()
 {
     this.container = UnityContainerFactory.GetContainer();
     this.container.RegisterInstance <IUnityContainer>(this.container);
     this.currentTestExecutionProvider = new TestExecutionProvider();
     this.InitializeTestExecutionBehaviorObservers(
         this.currentTestExecutionProvider, this.container);
 }
Ejemplo n.º 3
0
        public virtual void InitializeTestExecutionBehaviorObservers(
            TestExecutionProvider testExecutionProvider,
            IUnityContainer container)
        {
            var executionEngine = new ExecutionEngineBehaviorObserver(container);
            var videoRecording  = new VideoBehaviorObserver(new MsExpressionEncoderVideoRecorder());

            executionEngine.Subscribe(testExecutionProvider);
            videoRecording.Subscribe(testExecutionProvider);
        }
Ejemplo n.º 4
0
        public virtual void InitializeTestExecutionBehaviorObservers(
            TestExecutionProvider testExecutionProvider,
            IUnityContainer container)
        {
            var executionEngine = new ExecutionEngineBehaviorObserver(container);
            var videoRecording  =
                new VideoWorkflowPlugin(new FFmpegVideoRecorder(), new VideoRecorderOutputProvider());

            executionEngine.Subscribe(testExecutionProvider);
            videoRecording.Subscribe(testExecutionProvider);
        }