Exemplo n.º 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();
 }
Exemplo n.º 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();
 }
Exemplo n.º 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;
 }
Exemplo 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;

        }