mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 21:13:28 -07:00
BacklogSetting refactoring.
This commit is contained in:
parent
3a5d99921e
commit
02cb12bdb8
15 changed files with 75 additions and 76 deletions
|
@ -55,7 +55,7 @@ namespace NzbDrone.Core.Test.JobTests
|
|||
|
||||
var series = Builder<Series>.CreateNew()
|
||||
.With(s => s.Monitored = true)
|
||||
.With(s => s.BacklogStatus = BacklogStatusType.Enable)
|
||||
.With(s => s.BacklogSetting = BacklogSettingType.Enable)
|
||||
.Build();
|
||||
|
||||
//Setup
|
||||
|
@ -104,10 +104,10 @@ namespace NzbDrone.Core.Test.JobTests
|
|||
var series = Builder<Series>.CreateListOfSize(2)
|
||||
.TheFirst(1)
|
||||
.With(s => s.Monitored = false)
|
||||
.With(s => s.BacklogStatus = BacklogStatusType.Enable)
|
||||
.With(s => s.BacklogSetting = BacklogSettingType.Enable)
|
||||
.TheNext(1)
|
||||
.With(s => s.Monitored = true)
|
||||
.With(s => s.BacklogStatus = BacklogStatusType.Enable)
|
||||
.With(s => s.BacklogSetting = BacklogSettingType.Enable)
|
||||
.Build();
|
||||
|
||||
var episodes = Builder<Episode>.CreateListOfSize(11)
|
||||
|
@ -139,13 +139,13 @@ namespace NzbDrone.Core.Test.JobTests
|
|||
var series = Builder<Series>.CreateListOfSize(3)
|
||||
.TheFirst(1)
|
||||
.With(s => s.Monitored = true)
|
||||
.With(s => s.BacklogStatus = BacklogStatusType.Disable)
|
||||
.With(s => s.BacklogSetting = BacklogSettingType.Disable)
|
||||
.TheNext(1)
|
||||
.With(s => s.Monitored = true)
|
||||
.With(s => s.BacklogStatus = BacklogStatusType.Enable)
|
||||
.With(s => s.BacklogSetting = BacklogSettingType.Enable)
|
||||
.TheNext(1)
|
||||
.With(s => s.Monitored = true)
|
||||
.With(s => s.BacklogStatus = BacklogStatusType.Inherit)
|
||||
.With(s => s.BacklogSetting = BacklogSettingType.Inherit)
|
||||
.Build();
|
||||
|
||||
var episodes = Builder<Episode>.CreateListOfSize(12)
|
||||
|
@ -167,9 +167,9 @@ namespace NzbDrone.Core.Test.JobTests
|
|||
|
||||
//Assert
|
||||
result.Should().NotBeEmpty();
|
||||
result.Should().Contain(s => s.Series.BacklogStatus == BacklogStatusType.Enable);
|
||||
result.Should().NotContain(s => s.Series.BacklogStatus == BacklogStatusType.Disable);
|
||||
result.Should().NotContain(s => s.Series.BacklogStatus == BacklogStatusType.Inherit);
|
||||
result.Should().Contain(s => s.Series.BacklogSetting == BacklogSettingType.Enable);
|
||||
result.Should().NotContain(s => s.Series.BacklogSetting == BacklogSettingType.Disable);
|
||||
result.Should().NotContain(s => s.Series.BacklogSetting == BacklogSettingType.Inherit);
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
@ -179,13 +179,13 @@ namespace NzbDrone.Core.Test.JobTests
|
|||
var series = Builder<Series>.CreateListOfSize(3)
|
||||
.TheFirst(1)
|
||||
.With(s => s.Monitored = true)
|
||||
.With(s => s.BacklogStatus = BacklogStatusType.Disable)
|
||||
.With(s => s.BacklogSetting = BacklogSettingType.Disable)
|
||||
.TheNext(1)
|
||||
.With(s => s.Monitored = true)
|
||||
.With(s => s.BacklogStatus = BacklogStatusType.Enable)
|
||||
.With(s => s.BacklogSetting = BacklogSettingType.Enable)
|
||||
.TheNext(1)
|
||||
.With(s => s.Monitored = true)
|
||||
.With(s => s.BacklogStatus = BacklogStatusType.Inherit)
|
||||
.With(s => s.BacklogSetting = BacklogSettingType.Inherit)
|
||||
.Build();
|
||||
|
||||
var episodes = Builder<Episode>.CreateListOfSize(12)
|
||||
|
@ -207,9 +207,9 @@ namespace NzbDrone.Core.Test.JobTests
|
|||
|
||||
//Assert
|
||||
result.Should().NotBeEmpty();
|
||||
result.Should().Contain(s => s.Series.BacklogStatus == BacklogStatusType.Enable);
|
||||
result.Should().NotContain(s => s.Series.BacklogStatus == BacklogStatusType.Disable);
|
||||
result.Should().Contain(s => s.Series.BacklogStatus == BacklogStatusType.Inherit);
|
||||
result.Should().Contain(s => s.Series.BacklogSetting == BacklogSettingType.Enable);
|
||||
result.Should().NotContain(s => s.Series.BacklogSetting == BacklogSettingType.Disable);
|
||||
result.Should().Contain(s => s.Series.BacklogSetting == BacklogSettingType.Inherit);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue