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

        }