mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-27 20:44:00 +02:00
BacklogSetting refactoring.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user