Files
Umbraco-CMS/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/ObjectAppCacheTests.cs

34 lines
749 B
C#
Raw Normal View History

using System.Linq;
2018-06-29 19:52:40 +02:00
using NUnit.Framework;
using Umbraco.Core.Cache;
namespace Umbraco.Tests.UnitTests.Umbraco.Core.Cache
2018-06-29 19:52:40 +02:00
{
[TestFixture]
2019-01-18 08:14:08 +01:00
public class ObjectAppCacheTests : RuntimeAppCacheTests
2018-06-29 19:52:40 +02:00
{
2019-01-17 11:01:23 +01:00
private ObjectCacheAppCache _provider;
2018-06-29 19:52:40 +02:00
protected override int GetTotalItemCount
{
get { return _provider.MemoryCache.Count(); }
}
public override void Setup()
{
base.Setup();
_provider = new ObjectCacheAppCache();
2018-06-29 19:52:40 +02:00
}
2019-01-18 08:14:08 +01:00
internal override IAppCache AppCache
2018-06-29 19:52:40 +02:00
{
get { return _provider; }
}
2019-01-18 08:14:08 +01:00
internal override IAppPolicyCache AppPolicyCache
2018-06-29 19:52:40 +02:00
{
get { return _provider; }
}
}
}