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

View File

@@ -95,7 +95,7 @@ namespace Umbraco.Web.PropertyEditors
}
}
private static void ResetProperties(IContentImagingAutoFillUploadField uploadFieldConfigNode, IContentBase content)
private static void ResetProperties(IImagingAutoFillUploadField uploadFieldConfigNode, IContentBase content)
{
if (content.Properties[uploadFieldConfigNode.WidthFieldAlias] != null)
content.Properties[uploadFieldConfigNode.WidthFieldAlias].Value = string.Empty;
@@ -110,7 +110,7 @@ namespace Umbraco.Web.PropertyEditors
content.Properties[uploadFieldConfigNode.ExtensionFieldAlias].Value = string.Empty;
}
private static void FillProperties(IContentImagingAutoFillUploadField uploadFieldConfigNode, IContentBase content, UmbracoMediaFile um)
private static void FillProperties(IImagingAutoFillUploadField uploadFieldConfigNode, IContentBase content, UmbracoMediaFile um)
{
var size = um.SupportsResizing ? (Size?)um.GetDimensions() : null;

View File

@@ -27,7 +27,7 @@ namespace umbraco.presentation
void IHttpModule.Init(HttpApplication context)
{
if (UmbracoConfiguration.Current.UmbracoSettings.ViewstateMoverModule.Enable)
if (UmbracoConfiguration.Current.UmbracoSettings.ViewStateMoverModule.Enable)
{
context.BeginRequest += new EventHandler(context_BeginRequest);
}