/// <summary> /// Initializes a new instance of the <see cref="SettingsApiController"/> class. /// This is a helper contructor for unit testing /// </summary> /// <param name="gleanerContext"> /// The gleaner Context. /// </param> /// <param name="umbracoContext"> /// The umbraco Context. /// </param> internal SettingsApiController(IGleanerContext gleanerContext, UmbracoContext umbracoContext) : base(gleanerContext, umbracoContext) { _settingService = GleanerContext.Services.SettingService as SettingService; }
/// <summary> /// Initializes a new instance of the <see cref="SettingsApiController"/> class. /// Constructor /// </summary> /// <param name="gleanerContext"> /// The gleaner context /// </param> public SettingsApiController(IGleanerContext gleanerContext) : base(gleanerContext) { _settingService = GleanerContext.Services.SettingService as SettingService; }