Ejemplo n.º 1
0
        public void TestInit()
        {
            this.mockProxyExecutionManager         = new Mock <IProxyExecutionManager>();
            this.mockTestRunEventsHandler          = new Mock <ITestRunEventsHandler>();
            this.mockParallelProxyExecutionManager = new Mock <IParallelProxyExecutionManager>();
            this.mockDataSerializer = new Mock <IDataSerializer>();

            this.parallelRunEventsHandler = new ParallelRunEventsHandler(this.mockProxyExecutionManager.Object,
                                                                         this.mockTestRunEventsHandler.Object, this.mockParallelProxyExecutionManager.Object,
                                                                         new ParallelRunDataAggregator(), this.mockDataSerializer.Object);
        }
Ejemplo n.º 2
0
        public void TestInit()
        {
            this.mockProxyExecutionManager         = new Mock <IProxyExecutionManager>();
            this.mockTestRunEventsHandler          = new Mock <ITestRunEventsHandler>();
            this.mockParallelProxyExecutionManager = new Mock <IParallelProxyExecutionManager>();
            this.mockDataSerializer = new Mock <IDataSerializer>();
            this.mockRequestData    = new Mock <IRequestData>();
            this.mockRequestData.Setup(rd => rd.MetricsCollection).Returns(new NoOpMetricsCollection());

            this.parallelRunEventsHandler = new ParallelRunEventsHandler(this.mockRequestData.Object, this.mockProxyExecutionManager.Object,
                                                                         this.mockTestRunEventsHandler.Object, this.mockParallelProxyExecutionManager.Object,
                                                                         new ParallelRunDataAggregator(), this.mockDataSerializer.Object);
        }