mirror of
https://github.com/Readarr/Readarr
synced 2026-05-08 12:42:51 +02:00
Fixed: Missed list monitor type rename
This commit is contained in:
parent
2cb54cdc83
commit
22679d6187
3 changed files with 8 additions and 8 deletions
|
|
@ -49,7 +49,7 @@ public void SetUp()
|
||||||
|
|
||||||
Mocker.GetMock<IImportListFactory>()
|
Mocker.GetMock<IImportListFactory>()
|
||||||
.Setup(v => v.Get(It.IsAny<int>()))
|
.Setup(v => v.Get(It.IsAny<int>()))
|
||||||
.Returns(new ImportListDefinition { ShouldMonitor = ImportListMonitorType.SpecificAlbum });
|
.Returns(new ImportListDefinition { ShouldMonitor = ImportListMonitorType.SpecificBook });
|
||||||
|
|
||||||
Mocker.GetMock<IFetchAndParseImportList>()
|
Mocker.GetMock<IFetchAndParseImportList>()
|
||||||
.Setup(v => v.Fetch())
|
.Setup(v => v.Fetch())
|
||||||
|
|
@ -222,8 +222,8 @@ public void should_add_if_existing_artist_but_new_album()
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestCase(ImportListMonitorType.None, false)]
|
[TestCase(ImportListMonitorType.None, false)]
|
||||||
[TestCase(ImportListMonitorType.SpecificAlbum, true)]
|
[TestCase(ImportListMonitorType.SpecificBook, true)]
|
||||||
[TestCase(ImportListMonitorType.EntireArtist, true)]
|
[TestCase(ImportListMonitorType.EntireAuthor, true)]
|
||||||
public void should_add_if_not_existing_artist(ImportListMonitorType monitor, bool expectedArtistMonitored)
|
public void should_add_if_not_existing_artist(ImportListMonitorType monitor, bool expectedArtistMonitored)
|
||||||
{
|
{
|
||||||
WithAuthorId();
|
WithAuthorId();
|
||||||
|
|
@ -236,8 +236,8 @@ public void should_add_if_not_existing_artist(ImportListMonitorType monitor, boo
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestCase(ImportListMonitorType.None, false)]
|
[TestCase(ImportListMonitorType.None, false)]
|
||||||
[TestCase(ImportListMonitorType.SpecificAlbum, true)]
|
[TestCase(ImportListMonitorType.SpecificBook, true)]
|
||||||
[TestCase(ImportListMonitorType.EntireArtist, true)]
|
[TestCase(ImportListMonitorType.EntireAuthor, true)]
|
||||||
public void should_add_if_not_existing_album(ImportListMonitorType monitor, bool expectedAlbumMonitored)
|
public void should_add_if_not_existing_album(ImportListMonitorType monitor, bool expectedAlbumMonitored)
|
||||||
{
|
{
|
||||||
WithBookId();
|
WithBookId();
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ public class ImportListDefinition : ProviderDefinition
|
||||||
public enum ImportListMonitorType
|
public enum ImportListMonitorType
|
||||||
{
|
{
|
||||||
None,
|
None,
|
||||||
SpecificAlbum,
|
SpecificBook,
|
||||||
EntireArtist
|
EntireAuthor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -221,7 +221,7 @@ private void ProcessAlbumReport(ImportListDefinition importList, ImportListItemI
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
if (importList.ShouldMonitor == ImportListMonitorType.SpecificAlbum)
|
if (importList.ShouldMonitor == ImportListMonitorType.SpecificBook)
|
||||||
{
|
{
|
||||||
toAdd.Author.Value.AddOptions.BooksToMonitor.Add(toAdd.ForeignBookId);
|
toAdd.Author.Value.AddOptions.BooksToMonitor.Add(toAdd.ForeignBookId);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue