mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
Added Auth, startup options to UI
Added caching to ConfigFileProvider,
This commit is contained in:
parent
8a5bd31da7
commit
4da6654440
34 changed files with 579 additions and 365 deletions
|
@ -2,16 +2,17 @@ using System;
|
|||
using FluentAssertions;
|
||||
using NUnit.Framework;
|
||||
using NzbDrone.Common.Cache;
|
||||
using NzbDrone.Test.Common;
|
||||
|
||||
namespace NzbDrone.Common.Test.CacheTests
|
||||
{
|
||||
[TestFixture]
|
||||
public class CachedManagerFixture
|
||||
public class CachedManagerFixture:TestBase<ICacheManger>
|
||||
{
|
||||
[Test]
|
||||
public void should_return_proper_type_of_cache()
|
||||
{
|
||||
var result = CacheManger.GetCache<DateTime>(typeof(string));
|
||||
var result = Subject.GetCache<DateTime>(typeof(string));
|
||||
|
||||
result.Should().BeOfType<Cached<DateTime>>();
|
||||
}
|
||||
|
@ -20,8 +21,8 @@ namespace NzbDrone.Common.Test.CacheTests
|
|||
[Test]
|
||||
public void multiple_calls_should_get_the_same_cache()
|
||||
{
|
||||
var result1 = CacheManger.GetCache<DateTime>(typeof(string));
|
||||
var result2 = CacheManger.GetCache<DateTime>(typeof(string));
|
||||
var result1 = Subject.GetCache<DateTime>(typeof(string));
|
||||
var result2 = Subject.GetCache<DateTime>(typeof(string));
|
||||
|
||||
result1.Should().BeSameAs(result2);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue