Web.PublishedCache - bugfix & fix tests

This commit is contained in:
Stephan
2013-03-19 17:54:41 -01:00
parent b2a1f67fb4
commit 73d77083ae
16 changed files with 57 additions and 108 deletions

View File

@@ -24,6 +24,12 @@ namespace Umbraco.Web.PublishedCache
_cache = cache;
}
/// <summary>
/// Gets the inner IPublishedContentCache.
/// </summary>
/// <remarks>For unit tests.</remarks>
internal IPublishedContentCache InnerCache { get { return _cache; } }
/// <summary>
/// Gets a content identified by its unique identifier.
/// </summary>
@@ -80,11 +86,10 @@ namespace Umbraco.Web.PublishedCache
/// <summary>
/// Gets a value indicating whether the underlying non-contextual cache contains published content.
/// </summary>
/// <param name="umbracoContext">The context.</param>
/// <returns>A value indicating whether the underlying non-contextual cache contains published content.</returns>
public bool HasContent(UmbracoContext umbracoContext)
public bool HasContent()
{
return _cache.HasContent(umbracoContext);
return _cache.HasContent();
}
}
}