public GitMdContentProvier(GitHelper gitHelper, IConfig config, string localRepoPath) { if (config == null) { throw new ArgumentNullException("config"); } if (string.IsNullOrEmpty(localRepoPath)) { throw new ArgumentNullException("localRepoPath"); } this.GitHelper = gitHelper; this.Config = config; this.LocalRepoPath = localRepoPath; }
public MarkdownBaseController(IConfig config, IMarkdownToHtml markdownToHtml, IContentRepository contentRepo, GitHelper gitHelper, IPathHelper pathHelper ) { if (config == null) { throw new ArgumentNullException("config"); } if (markdownToHtml == null) { throw new ArgumentNullException("markdownToHtml"); } if (contentRepo == null) { throw new ArgumentNullException("contentRepo"); } this.Config = config; this.MarkdownToHtml = markdownToHtml; this.ContentRepo = contentRepo; this.PathHelper = pathHelper; this.GitHelper = gitHelper; }
public MarkdownController(IConfig config, IMarkdownToHtml markdownToHtml, IContentRepository contentRepo, GitHelper gitHelper, IPathHelper pathHelper) : base(config, markdownToHtml, contentRepo, gitHelper, pathHelper) { }