示例#1
0
 public DocumentationGenerator(IAssemblyLoader assemblyLoader, IXmlLoader xmlLoader, IAssemblyXmlParser parser,
                               IBulkPageWriter writer, IUntransformableResourceManager resourceManager)
 {
     this.assemblyLoader = assemblyLoader;
     this.xmlLoader = xmlLoader;
     this.parser = parser;
     this.writer = writer;
     this.resourceManager = resourceManager;
 }
示例#2
0
 public DocumentationGenerator(IAssemblyLoader assemblyLoader, IXmlLoader xmlLoader, IAssemblyXmlParser parser, IBulkPageWriter writer, IUntransformableResourceManager resourceManager, IEventAggregator eventAggregator)
 {
     this.assemblyLoader  = assemblyLoader;
     this.xmlLoader       = xmlLoader;
     this.parser          = parser;
     this.writer          = writer;
     this.resourceManager = resourceManager;
     this.eventAggregator = eventAggregator;
 }
        public void CreateStubs()
        {
            StubWriter = MockRepository.GenerateStub<IBulkPageWriter>();
            StubParser = MockRepository.GenerateStub<IAssemblyXmlParser>();
            StubResourceManager = MockRepository.GenerateStub<IUntransformableResourceManager>();
            StubAssemblyLoader = MockRepository.GenerateStub<IAssemblyLoader>();
            StubXmlLoader = MockRepository.GenerateStub<IXmlLoader>();

            StubAssemblyLoader.Stub(x => x.LoadFrom(null))
                .IgnoreArguments()
                .Return(typeof(DocumentationGenerator).Assembly);
        }
示例#4
0
        public void CreateStubs()
        {
            StubWriter          = MockRepository.GenerateStub <IBulkPageWriter>();
            StubParser          = MockRepository.GenerateStub <IAssemblyXmlParser>();
            StubResourceManager = MockRepository.GenerateStub <IUntransformableResourceManager>();
            StubAssemblyLoader  = MockRepository.GenerateStub <IAssemblyLoader>();
            StubXmlLoader       = MockRepository.GenerateStub <IXmlLoader>();
            StubEventAggregator = MockRepository.GenerateStub <IEventAggregator>();

            StubAssemblyLoader.Stub(x => x.LoadFrom(null))
            .IgnoreArguments()
            .Return(typeof(DocumentationGenerator).Assembly);
        }