Exemplo 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();
 }
Exemplo n.º 2
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();
 }
Exemplo n.º 3
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;
 }
Exemplo n.º 4
0
 /// <summary>
 /// cleanup for each tests
 /// </summary>
 public void TearDown()
 {
     _host.ShutdownComponent();
     _host        = null;
     _configCache = null;
     _requestEngine.CleanupForBuild();
     _requestEngine.ShutdownComponent();
     _requestEngine    = null;
     _testDataProvider = null;
 }