public LinkBasedHierarchyProvider(
     IWikiSyntax syntax,
     IRepository<WikiPage> repository
     )
 {
     this.syntax = syntax;
     this.repository = repository;
 }
Пример #2
0
 public WikiHandler(
     IClientRepository clientRepository,
     IRepository<WikiPage> repository,
     WikiPageUpdater updater,
     IWikiSyntax syntax,
     HtmlWikiOutputFormat htmlWikiOutput
     )
 {
     this.clientRepository = clientRepository;
     this.repository = repository;
     this.updater = updater;
     this.syntax = syntax;
     this.htmlWikiOutput = htmlWikiOutput;
 }
Пример #3
0
        public WikiController(
            IRepository<WikiPage> repository,
            IWikiPageHierarchyProvider hierarchyProvider,
            IWikiSyntax syntax,
            HtmlWikiOutputFormat htmlWikiOutput
            )
        {
            Contract.Requires<ArgumentNullException>(repository != null);
            Contract.Requires<ArgumentNullException>(hierarchyProvider != null);
            Contract.Requires<ArgumentNullException>(syntax != null);
            Contract.Requires<ArgumentNullException>(htmlWikiOutput != null);

            this.repository = repository;
            this.hierarchyProvider = hierarchyProvider;
            this.syntax = syntax;
            this.htmlWikiOutput = htmlWikiOutput;
        }