You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
recyclarr/tests/Recyclarr.Tests/Cache/TestCachePersister.cs

18 lines
605 B

using Recyclarr.Cache;
using Recyclarr.Config.Models;
namespace Recyclarr.Tests.Cache;
// This class exists because AutoFixture does not use NSubstitute's ForPartsOf()
// See: https://github.com/AutoFixture/AutoFixture/issues/1355
public class TestCachePersister(ILogger log, ICacheStoragePath storagePath, IServiceConfiguration config)
: CachePersister<TestCacheObject, TestCache>(log, storagePath, config)
{
protected override string CacheName => "Test Cache";
protected override TestCache CreateCache(TestCacheObject cacheObject)
{
return new TestCache(cacheObject);
}
}