New: Readarr 0.1

This commit is contained in:
ta264
2020-05-06 21:14:11 +01:00
parent 476f2d6047
commit 08496c82af
911 changed files with 14837 additions and 24442 deletions
@@ -14,12 +14,12 @@ namespace NzbDrone.Core.Test.IndexerSearchTests
[TestFixture]
public class ArtistSearchServiceFixture : CoreTest<ArtistSearchService>
{
private Artist _artist;
private Author _artist;
[SetUp]
public void Setup()
{
_artist = new Artist();
_artist = new Author();
Mocker.GetMock<IArtistService>()
.Setup(s => s.GetArtist(It.IsAny<int>()))
@@ -37,17 +37,17 @@ namespace NzbDrone.Core.Test.IndexerSearchTests
[Test]
public void should_only_include_monitored_albums()
{
_artist.Albums = new List<Album>
_artist.Books = new List<Book>
{
new Album { Monitored = false },
new Album { Monitored = true }
new Book { Monitored = false },
new Book { Monitored = true }
};
Subject.Execute(new ArtistSearchCommand { ArtistId = _artist.Id, Trigger = CommandTrigger.Manual });
Subject.Execute(new ArtistSearchCommand { AuthorId = _artist.Id, Trigger = CommandTrigger.Manual });
Mocker.GetMock<ISearchForNzb>()
.Verify(v => v.ArtistSearch(_artist.Id, false, true, false),
Times.Exactly(_artist.Albums.Value.Count(s => s.Monitored)));
Times.Exactly(_artist.Books.Value.Count(s => s.Monitored)));
}
}
}
@@ -12,7 +12,7 @@ namespace NzbDrone.Core.Test.IndexerSearchTests
[TestCase("방탄소년단", "방탄소년단")]
public void should_replace_some_special_characters_artist(string artist, string expected)
{
Subject.Artist = new Artist { Name = artist };
Subject.Artist = new Author { Name = artist };
Subject.ArtistQuery.Should().Be(expected);
}
@@ -21,7 +21,7 @@ namespace NzbDrone.Core.Test.IndexerSearchTests
[TestCase("Sad Clowns & Hillbillies", "Sad+Clowns+Hillbillies")]
[TestCase("¿Quién sabe?", "Quien+sabe")]
[TestCase("Seal the Deal & Lets Boogie", "Seal+the+Deal+Lets+Boogie")]
[TestCase("Section.80", "Section80")]
[TestCase("Section.80", "Section+80")]
public void should_replace_some_special_characters(string album, string expected)
{
Subject.AlbumTitle = album;