public void Setup()
		{
			ccu = new CodeCompileUnit();
			mocks = new MockRepository();
			engine = Engine.GlobalEngine;
			engine.BinPath = @"C:\Program Files (x86)\MSBuild";
			project = new Project();
			buildEngine = mocks.DynamicMock<MockBuildEngine>(project);

			logger = new NullLogger();
			parserService = mocks.DynamicMock<ISiteTreeGeneratorService>();
			naming = mocks.DynamicMock<INamingService>();
			sourceStorage = mocks.DynamicMock<IParsedSourceStorageService>();
			source = mocks.DynamicMock<ISourceGenerator>();
			typeResolver = mocks.DynamicMock<ITypeResolver>();
			treeService = mocks.DynamicMock<ITreeCreationService>();
			viewSourceMapper = mocks.DynamicMock<IViewSourceMapper>();
			generator = mocks.DynamicMock<IGenerator>();

			task = new GenerateMonoRailSiteTreeTask(logger, parserService, naming, source, sourceStorage, typeResolver,
			                                         treeService, viewSourceMapper, generator);

			item = mocks.DynamicMock<ITaskItem>();
			parsedSource = mocks.DynamicMock<IParser>();
		}
Esempio n. 2
0
        public void Setup()
        {
            ccu            = new CodeCompileUnit();
            mocks          = new MockRepository();
            engine         = Engine.GlobalEngine;
            engine.BinPath = @"C:\Program Files (x86)\MSBuild";
            project        = new Project();
            buildEngine    = mocks.DynamicMock <MockBuildEngine>(project);

            logger           = new NullLogger();
            parserService    = mocks.DynamicMock <ISiteTreeGeneratorService>();
            naming           = mocks.DynamicMock <INamingService>();
            sourceStorage    = mocks.DynamicMock <IParsedSourceStorageService>();
            source           = mocks.DynamicMock <ISourceGenerator>();
            typeResolver     = mocks.DynamicMock <ITypeResolver>();
            treeService      = mocks.DynamicMock <ITreeCreationService>();
            viewSourceMapper = mocks.DynamicMock <IViewSourceMapper>();
            generator        = mocks.DynamicMock <IGenerator>();

            task = new GenerateMonoRailSiteTreeTask(logger, parserService, naming, source, sourceStorage, typeResolver,
                                                    treeService, viewSourceMapper, generator);

            item         = mocks.DynamicMock <ITaskItem>();
            parsedSource = mocks.DynamicMock <IParser>();
        }
		public void Setup()
		{
			engine = Engine.GlobalEngine;
			engine.BinPath = Directory.Exists(@"C:\Program Files (x86)\MSBuild") ? @"C:\Program Files (x86)\MSBuild" : @"C:\Program Files\MSBuild";
			project = new Project();
			buildEngine = MockRepository.GenerateMock<MockBuildEngine>(project);
			task = new GenerateMonoRailSiteTreeTask();
		}
Esempio n. 4
0
 public void Setup()
 {
     engine         = Engine.GlobalEngine;
     engine.BinPath = Directory.Exists(@"C:\Program Files (x86)\MSBuild") ? @"C:\Program Files (x86)\MSBuild" : @"C:\Program Files\MSBuild";
     project        = new Project();
     buildEngine    = MockRepository.GenerateMock <MockBuildEngine>(project);
     task           = new GenerateMonoRailSiteTreeTask();
 }
Esempio n. 5
0
 public void Setup()
 {
     _mocks  = new MockRepository();
     _engine = Engine.GlobalEngine;
     if (Directory.Exists(@"C:\Program Files (x86)\MSBuild"))
     {
         _engine.BinPath = @"C:\Program Files (x86)\MSBuild";
     }
     else
     {
         _engine.BinPath = @"C:\Program Files\MSBuild";
     }
     _project     = new Project();
     _buildEngine = _mocks.DynamicMock <MockBuildEngine>(_project);
     _task        = new GenerateMonoRailSiteTreeTask();
 }
 public void Setup()
 {
   _mocks = new MockRepository();
   _engine = Engine.GlobalEngine;
   if (Directory.Exists(@"C:\Program Files (x86)\MSBuild"))
   {
     _engine.BinPath = @"C:\Program Files (x86)\MSBuild";
   }
   else
   {
     _engine.BinPath = @"C:\Program Files\MSBuild";
   }
   _project = new Project();
   _buildEngine = _mocks.DynamicMock<MockBuildEngine>(_project);
   _task = new GenerateMonoRailSiteTreeTask();
 }
Esempio n. 7
0
        public void Setup()
        {
            _ccu            = new CodeCompileUnit();
            _mocks          = new MockRepository();
            _engine         = Engine.GlobalEngine;
            _engine.BinPath = @"C:\Program Files (x86)\MSBuild";
            _project        = new Project();
            _buildEngine    = _mocks.DynamicMock <MockBuildEngine>(_project);

            _logger           = new NullLogger();
            _parserService    = _mocks.DynamicMock <ISiteTreeGeneratorService>();
            _naming           = _mocks.DynamicMock <INamingService>();
            _sourceStorage    = _mocks.DynamicMock <IParsedSourceStorageService>();
            _source           = _mocks.DynamicMock <ISourceGenerator>();
            _typeResolver     = _mocks.DynamicMock <ITypeResolver>();
            _treeService      = _mocks.DynamicMock <ITreeCreationService>();
            _viewSourceMapper = _mocks.DynamicMock <IViewSourceMapper>();
            _generator        = _mocks.DynamicMock <IGenerator>();

            _task = new GenerateMonoRailSiteTreeTask(_logger, _parserService, _naming, _source, _sourceStorage, _typeResolver, _treeService, _viewSourceMapper, _generator);

            _item         = _mocks.DynamicMock <ITaskItem>();
            _parsedSource = _mocks.DynamicMock <IParser>();
        }
    public void Setup()
    {
      _ccu = new CodeCompileUnit();
      _mocks = new MockRepository();
      _engine = Engine.GlobalEngine;
      _engine.BinPath = @"C:\Program Files (x86)\MSBuild";
      _project = new Project();
      _buildEngine = _mocks.DynamicMock<MockBuildEngine>(_project);

      _logger = new NullLogger();
      _parserService = _mocks.DynamicMock<ISiteTreeGeneratorService>();
      _naming = _mocks.DynamicMock<INamingService>();
      _sourceStorage = _mocks.DynamicMock<IParsedSourceStorageService>();
      _source = _mocks.DynamicMock<ISourceGenerator>();
      _typeResolver = _mocks.DynamicMock<ITypeResolver>();
      _treeService = _mocks.DynamicMock<ITreeCreationService>();
      _viewSourceMapper = _mocks.DynamicMock<IViewSourceMapper>();
      _generator = _mocks.DynamicMock<IGenerator>();

      _task = new GenerateMonoRailSiteTreeTask(_logger, _parserService, _naming, _source, _sourceStorage, _typeResolver, _treeService, _viewSourceMapper, _generator);

      _item = _mocks.DynamicMock<ITaskItem>();
      _parsedSource = _mocks.DynamicMock<IParser>();
    }