Esempio n. 1
0
 public void Setup()
 {
     mocks         = new MockRepository();
     logger        = new NullLogger();
     typeResolver  = mocks.DynamicMock <ITypeResolver>();
     visitor       = mocks.DynamicMock <IAstVisitor>();
     sources       = mocks.DynamicMock <IParsedSourceStorageService>();
     parserFactory = mocks.DynamicMock <IParserFactory>();
     parser        = mocks.DynamicMock <IParser>();
     service       = new SiteTreeGeneratorService(logger, typeResolver, sources, parserFactory);
     path          = "~~TemporarySource.cs";
     WriteSampleSource(path);
 }
Esempio n. 2
0
 public void Setup()
 {
     _mocks         = new MockRepository();
     _logger        = new NullLogger();
     _typeResolver  = _mocks.DynamicMock <ITypeResolver>();
     _visitor       = _mocks.DynamicMock <IAstVisitor>();
     _sources       = _mocks.DynamicMock <IParsedSourceStorageService>();
     _parserFactory = _mocks.DynamicMock <IParserFactory>();
     _parser        = _mocks.DynamicMock <IParser>();
     _service       = new SiteTreeGeneratorService(_logger, _typeResolver, _sources, _parserFactory);
     _path          = "~~TemporarySource.cs";
     WriteSampleSource(_path);
 }
 public void Setup()
 {
   _mocks = new MockRepository();
   _logger = new NullLogger();
   _typeResolver = _mocks.DynamicMock<ITypeResolver>();
   _visitor = _mocks.DynamicMock<IAstVisitor>();
   _sources = _mocks.DynamicMock<IParsedSourceStorageService>();
   _parserFactory = _mocks.DynamicMock<IParserFactory>();
   _parser = _mocks.DynamicMock<IParser>();
   _service = new SiteTreeGeneratorService(_logger, _typeResolver, _sources, _parserFactory);
   _path = "~~TemporarySource.cs";
   WriteSampleSource(_path);
 }
		public void Setup()
		{
			mocks = new MockRepository();
			logger = new NullLogger();
			typeResolver = mocks.DynamicMock<ITypeResolver>();
			visitor = mocks.DynamicMock<IAstVisitor>();
			sources = mocks.DynamicMock<IParsedSourceStorageService>();
			parserFactory = mocks.DynamicMock<IParserFactory>();
			parser = mocks.DynamicMock<IParser>();
			service = new SiteTreeGeneratorService(logger, typeResolver, sources, parserFactory);
			path = "~~TemporarySource.cs";
			WriteSampleSource(path);
		}