Renamed config interfaces properly with Section suffix, re-implemented the For<T> UmbracoConfiguration method to retreive specific settings... might use this entirely instead of the nested access as it might make it easier to mock.

This commit is contained in:
Shannon
2013-09-16 17:39:45 +10:00
parent bd644bc707
commit b043ee577f
85 changed files with 540 additions and 520 deletions
@@ -4,19 +4,12 @@ using System.Configuration;
namespace Umbraco.Core.Configuration.BaseRest
{
[ConfigurationKey("BaseRestExtensions")]
internal class BaseRestSection : UmbracoConfigurationSection, IBaseRest
internal class BaseRestSection : UmbracoConfigurationSection, IBaseRestSection
{
private const string KeyEnabled = "enabled";
private bool? _enabled;
//internal protected override void ResetSection()
//{
// base.ResetSection();
// _enabled = null;
//}
[ConfigurationProperty("", IsKey = false, IsRequired = false, IsDefaultCollection = true)]
public ExtensionElementCollection Items
{
@@ -36,7 +29,7 @@ namespace Umbraco.Core.Configuration.BaseRest
internal set { _enabled = value; }
}
IExtensionsCollection IBaseRest.Items
IExtensionsCollection IBaseRestSection.Items
{
get { return Items; }
}