public JekyllMarkdownDocument(
     string path, string markdownContent, JekyllSiteContext siteContext,  IEnumerable<FileReference> associatedFiles,
     IDocumentFactory documentFactory, IEventAggregator eventAggregator, IDialogService dialogService, IFileSystem fileSystem)
     : base(path, markdownContent, siteContext, associatedFiles, documentFactory, eventAggregator, dialogService, fileSystem)
 {
     this.siteContext = siteContext;
 }
Пример #2
0
        public JekyllSiteContextTests()
        {
            filename                 = @"C:\Site\Index.md";
            basePath                 = @"C:\Site\";
            eventAggregator          = Substitute.For <IEventAggregator>();
            dialogService            = Substitute.For <IDialogService>();
            fileSystem               = Substitute.For <IFileSystem>();
            fileSystemWatcherFactory = Substitute.For <IFileSystemWatcherFactory>();
            fileSystemWatcher        = Substitute.For <IFileSystemWatcher>();
            fileSystemWatcherFactory.Create(Arg.Any <string>()).Returns(fileSystemWatcher);

            jekyllContext = new JekyllSiteContext(
                eventAggregator,
                dialogService,
                fileSystem,
                fileSystemWatcherFactory,
                basePath);
        }
        public JekyllSiteContextTests()
        {
            filename = @"C:\Site\Index.md";
            basePath = @"C:\Site\";
            eventAggregator = Substitute.For<IEventAggregator>();
            dialogService = Substitute.For<IDialogService>();
            fileSystem = Substitute.For<IFileSystem>();
            fileSystemWatcherFactory = Substitute.For<IFileSystemWatcherFactory>();
            fileSystemWatcher = Substitute.For<IFileSystemWatcher>();
            fileSystemWatcherFactory.Create(Arg.Any<string>()).Returns(fileSystemWatcher);

            jekyllContext = new JekyllSiteContext(
                eventAggregator,
                dialogService,
                fileSystem,
                fileSystemWatcherFactory,
                basePath);
        }