Fixed: Parse search results using edition titles also

Fixes #1154
This commit is contained in:
ta264
2021-07-29 21:28:04 +01:00
parent 9150f6889f
commit 4541d3d3b0
6 changed files with 151 additions and 4 deletions
@@ -187,7 +187,17 @@ namespace NzbDrone.Core.Test.DecisionEngineTests
_reports[0].Title = "1937 - Snow White and the Seven Dwarves";
var author = new Author { Name = "Some Author" };
var books = new List<Book> { new Book { Title = "Some Book" } };
var books = new List<Book>
{
new Book
{
Title = "Some Book",
Editions = new List<Edition>
{
new Edition { Title = "Some Edition Title" }
}
}
};
Subject.GetSearchDecision(_reports, new BookSearchCriteria { Author = author, Books = books }).ToList();