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