mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 05:23:31 -07:00
moved series/season/episodes to object db.
This commit is contained in:
parent
4504232956
commit
b5644bf660
93 changed files with 1025 additions and 1338 deletions
|
@ -111,7 +111,7 @@ namespace NzbDrone.Core.Test.ProviderTests
|
|||
|
||||
var fakeSeries = Builder<Series>.CreateListOfSize(5)
|
||||
.All()
|
||||
.With(s => s.IsDaily = false)
|
||||
.With(s => s.SeriesType = SeriesType.Standard)
|
||||
.Build();
|
||||
|
||||
Db.InsertMany(fakeSeries);
|
||||
|
@ -126,7 +126,7 @@ namespace NzbDrone.Core.Test.ProviderTests
|
|||
//Assert
|
||||
var result = Db.Fetch<Series>();
|
||||
|
||||
result.Where(s => s.IsDaily).Should().HaveCount(5);
|
||||
result.Where(s => s.SeriesType == SeriesType.Daily).Should().HaveCount(5);
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
@ -136,7 +136,7 @@ namespace NzbDrone.Core.Test.ProviderTests
|
|||
|
||||
var fakeSeries = Builder<Series>.CreateListOfSize(5)
|
||||
.All()
|
||||
.With(s => s.IsDaily = false)
|
||||
.With(s => s.SeriesType = SeriesType.Standard)
|
||||
.TheFirst(1)
|
||||
.With(s => s.SeriesId = 10)
|
||||
.TheNext(1)
|
||||
|
@ -157,8 +157,8 @@ namespace NzbDrone.Core.Test.ProviderTests
|
|||
//Assert
|
||||
var result = Db.Fetch<Series>();
|
||||
|
||||
result.Where(s => !s.IsDaily).Should().HaveCount(3);
|
||||
result.Where(s => s.IsDaily).Should().HaveCount(2);
|
||||
result.Where(s => s.SeriesType == SeriesType.Standard).Should().HaveCount(3);
|
||||
result.Where(s => s.SeriesType == SeriesType.Daily).Should().HaveCount(2);
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
@ -168,10 +168,10 @@ namespace NzbDrone.Core.Test.ProviderTests
|
|||
|
||||
var fakeSeries = Builder<Series>.CreateListOfSize(5)
|
||||
.All()
|
||||
.With(s => s.IsDaily = false)
|
||||
.With(s => s.SeriesType = SeriesType.Standard)
|
||||
.TheFirst(1)
|
||||
.With(s => s.SeriesId = 10)
|
||||
.With(s => s.IsDaily = true)
|
||||
.With(s => s.SeriesType = SeriesType.Daily)
|
||||
.TheNext(1)
|
||||
.With(s => s.SeriesId = 11)
|
||||
.TheNext(1)
|
||||
|
@ -190,8 +190,8 @@ namespace NzbDrone.Core.Test.ProviderTests
|
|||
//Assert
|
||||
var result = Db.Fetch<Series>();
|
||||
|
||||
result.Where(s => s.IsDaily).Should().HaveCount(3);
|
||||
result.Where(s => !s.IsDaily).Should().HaveCount(2);
|
||||
result.Where(s => s.SeriesType == SeriesType.Daily).Should().HaveCount(3);
|
||||
result.Where(s => s.SeriesType == SeriesType.Standard).Should().HaveCount(2);
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue