Files
Umbraco-CMS/src/Umbraco.Tests/Cache/ObjectAppCacheTests.cs
T
2019-01-18 08:14:08 +01:00

37 lines
799 B
C#

using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using Umbraco.Core;
using Umbraco.Core.Cache;
namespace Umbraco.Tests.Cache
{
[TestFixture]
public class ObjectAppCacheTests : RuntimeAppCacheTests
{
private ObjectCacheAppCache _provider;
protected override int GetTotalItemCount
{
get { return _provider.MemoryCache.Count(); }
}
public override void Setup()
{
base.Setup();
_provider = new ObjectCacheAppCache();
}
internal override IAppCache AppCache
{
get { return _provider; }
}
internal override IAppPolicyCache AppPolicyCache
{
get { return _provider; }
}
}
}