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

37 lines
799 B
C#
Raw Normal View History

2018-06-29 19:52:40 +02:00
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]
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();
2019-01-17 11:01:23 +01:00
_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; }
}
}
}