/// <summary> /// Initializes a new instance of the <see cref="PublishService"/> class. /// </summary> /// <param name="settings"><see cref="WebAppSettings"/> instance.</param> /// <param name="markdownHelper"><see cref="IMarkdownHelper"/> instance.</param> /// <param name="fileHelper"><see cref="IFileHelper"/> instance.</param> /// <param name="httpClientHelper"><see cref="IHttpClientHelper"/> instance.</param> public PublishService(WebAppSettings settings, IMarkdownHelper markdownHelper, IFileHelper fileHelper, IHttpClientHelper httpClientHelper) { if (settings == null) { throw new ArgumentNullException(nameof(settings)); } this._settings = settings; if (markdownHelper == null) { throw new ArgumentNullException(nameof(markdownHelper)); } this._markdownHelper = markdownHelper; if (fileHelper == null) { throw new ArgumentNullException(nameof(fileHelper)); } this._fileHelper = fileHelper; if (httpClientHelper == null) { throw new ArgumentNullException(nameof(httpClientHelper)); } this._httpClientHelper = httpClientHelper; }
/// <summary> /// Initializes a new instance of the <see cref="PostController"/> class. /// </summary> /// <param name="settings"><see cref="WebAppSettings"/> instance.</param> /// <param name="markdownHelper"><see cref="IMarkdownHelper"/> instance.</param> /// <param name="themeService"><see cref="IThemeService"/> instance.</param> /// <param name="publishService"><see cref="IPublishService"/> instance.</param> public PostController(WebAppSettings settings, IMarkdownHelper markdownHelper, IThemeService themeService, IPublishService publishService) { if (settings == null) { throw new ArgumentNullException(nameof(settings)); } this._settings = settings; if (markdownHelper == null) { throw new ArgumentNullException(nameof(markdownHelper)); } this._markdownHelper = markdownHelper; if (themeService == null) { throw new ArgumentNullException(nameof(themeService)); } this._themeService = themeService; if (publishService == null) { throw new ArgumentNullException(nameof(publishService)); } this._publishService = publishService; }
/// <summary> /// Initializes a new instance of the <see cref="MarkdownService"/> class. /// </summary> /// <param name="markdownHelper"><see cref="IMarkdownHelper"/> instance.</param> /// <param name="fileHelper"><see cref="IFileHelper"/> instance.</param> public MarkdownService(IMarkdownHelper markdownHelper, IFileHelper fileHelper) { if (markdownHelper == null) { throw new ArgumentNullException(nameof(markdownHelper)); } this._markdownHelper = markdownHelper; if (fileHelper == null) { throw new ArgumentNullException(nameof(fileHelper)); } this._fileHelper = fileHelper; }
/// <summary> /// Initializes a new instance of the <see cref="MarkdownHelperTest"/> class. /// </summary> /// <param name="fixture"><see cref="MarkdownHelperFixture"/> instance.</param> public MarkdownHelperTest(MarkdownHelperFixture fixture) { this._helper = fixture.MarkdownHelper; }