Ejemplo n.º 1
0
 /// <summary>
 /// Setup for each tests
 /// </summary>
 public void Setup()
 {
     this.host             = new QAMockHost(this.GetComponent);
     this.testDataProvider = new TestDataProvider();
     this.requestEngine    = new BuildRequestEngine();
     this.requestEngine.InitializeComponent(this.host);
     this.requestEngine.InitializeForBuild(new NodeLoggingContext(host.LoggingService, 0, false));
     this.configCache = new ConfigCache();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Setup the delegate for GetComponent request which is delegated from the MockHost
 /// </summary>
 public Common_Tests(GetComponentFromTestDelegate getComponent, bool createMSBuildProject)
 {
     _getComponent = getComponent;
     _configCache = null;
     _host = null;
     _requestEngine = null;
     _testDataProvider = null;
     _createMSBuildProject = createMSBuildProject;
     _tempPath = System.IO.Path.GetTempPath();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Setup the delegate for GetComponent request which is delegated from the MockHost
 /// </summary>
 public Common_Tests(GetComponentFromTestDelegate getComponent, bool createMSBuildProject)
 {
     this.getComponent         = getComponent;
     this.configCache          = null;
     this.host                 = null;
     this.requestEngine        = null;
     this.testDataProvider     = null;
     this.createMSBuildProject = createMSBuildProject;
     this.tempPath             = System.IO.Path.GetTempPath();
 }
Ejemplo n.º 4
0
 /// <summary>
 /// cleanup for each tests
 /// </summary>
 public void TearDown()
 {
     this.host.ShutdownComponent();
     this.host        = null;
     this.configCache = null;
     this.requestEngine.CleanupForBuild();
     this.requestEngine.ShutdownComponent();
     this.requestEngine    = null;
     this.testDataProvider = null;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// cleanup for each tests
 /// </summary>
 public void TearDown()
 {
     _host.ShutdownComponent();
     _host        = null;
     _configCache = null;
     _requestEngine.CleanupForBuild();
     _requestEngine.ShutdownComponent();
     _requestEngine    = null;
     _testDataProvider = null;
 }
Ejemplo n.º 6
0
 /// <summary>
 /// cleanup for each tests
 /// </summary>
 public void TearDown()
 {
     _host.ShutdownComponent();
     _host = null;
     _configCache = null;
     _requestEngine.CleanupForBuild();
     _requestEngine.ShutdownComponent();
     _requestEngine = null;
     _testDataProvider = null;
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Setup for each tests
 /// </summary>
 public void Setup()
 {
     _host = new QAMockHost(this.GetComponent);
     _testDataProvider = new TestDataProvider();
     _requestEngine = new BuildRequestEngine();
     _requestEngine.InitializeComponent(_host);
     _requestEngine.InitializeForBuild(new NodeLoggingContext(_host.LoggingService, 0, false));
     _configCache = new ConfigCache();
 }
Ejemplo n.º 8
0
        /// <summary>
        /// cleanup for each tests
        /// </summary>
        public void TearDown()
        {
            this.host.ShutdownComponent();
            this.host = null;
            this.configCache = null;
            this.requestEngine.CleanupForBuild();
            this.requestEngine.ShutdownComponent();
            this.requestEngine = null;
            this.testDataProvider = null;

        }