Simplifies the IContentSection so that there's no nesting of interface classes and updates some unit tests

This commit is contained in:
Shannon
2013-09-16 15:52:59 +10:00
parent 81b43545c1
commit 09b68a75be
65 changed files with 577 additions and 504 deletions

View File

@@ -13,14 +13,14 @@ namespace Umbraco.Core.IO
[FileSystemProvider("media")]
public class MediaFileSystem : FileSystemWrapper
{
private readonly IContent _contentConfig;
private readonly IContentSection _contentConfig;
public MediaFileSystem(IFileSystem wrapped)
: this(wrapped, UmbracoConfiguration.Current.UmbracoSettings.Content)
{
}
public MediaFileSystem(IFileSystem wrapped, IContent contentConfig) : base(wrapped)
public MediaFileSystem(IFileSystem wrapped, IContentSection contentConfig) : base(wrapped)
{
_contentConfig = contentConfig;
}