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

37 lines
811 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]
public class ObjectCacheProviderTests : RuntimeCacheProviderTests
{
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-17 11:01:23 +01:00
internal override IAppCache Provider
2018-06-29 19:52:40 +02:00
{
get { return _provider; }
}
2019-01-17 11:01:23 +01:00
internal override IAppPolicedCache RuntimeProvider
2018-06-29 19:52:40 +02:00
{
get { return _provider; }
}
}
}