File Dimension API (#1690)
* Implemented an api for getting file dimensions for a given chapter. This is for CDisplayEx integration. This might be usable in Double Renderer. * Added the cached filename for new API
This commit is contained in:
parent
0961cac65a
commit
e6b18457f2
12 changed files with 122 additions and 49 deletions
|
|
@ -2357,7 +2357,7 @@ public class ReaderServiceTests
|
|||
public void FormatChapterName_Manga_Chapter()
|
||||
{
|
||||
var readerService = new ReaderService(_unitOfWork, Substitute.For<ILogger<ReaderService>>(), Substitute.For<IEventHub>());
|
||||
var actual = readerService.FormatChapterName(LibraryType.Manga, false, false);
|
||||
var actual = ReaderService.FormatChapterName(LibraryType.Manga, false, false);
|
||||
Assert.Equal("Chapter", actual);
|
||||
}
|
||||
|
||||
|
|
@ -2365,7 +2365,7 @@ public class ReaderServiceTests
|
|||
public void FormatChapterName_Book_Chapter_WithTitle()
|
||||
{
|
||||
var readerService = new ReaderService(_unitOfWork, Substitute.For<ILogger<ReaderService>>(), Substitute.For<IEventHub>());
|
||||
var actual = readerService.FormatChapterName(LibraryType.Book, false, false);
|
||||
var actual = ReaderService.FormatChapterName(LibraryType.Book, false, false);
|
||||
Assert.Equal("Book", actual);
|
||||
}
|
||||
|
||||
|
|
@ -2373,7 +2373,7 @@ public class ReaderServiceTests
|
|||
public void FormatChapterName_Comic()
|
||||
{
|
||||
var readerService = new ReaderService(_unitOfWork, Substitute.For<ILogger<ReaderService>>(), Substitute.For<IEventHub>());
|
||||
var actual = readerService.FormatChapterName(LibraryType.Comic, false, false);
|
||||
var actual = ReaderService.FormatChapterName(LibraryType.Comic, false, false);
|
||||
Assert.Equal("Issue", actual);
|
||||
}
|
||||
|
||||
|
|
@ -2381,7 +2381,7 @@ public class ReaderServiceTests
|
|||
public void FormatChapterName_Comic_WithHash()
|
||||
{
|
||||
var readerService = new ReaderService(_unitOfWork, Substitute.For<ILogger<ReaderService>>(), Substitute.For<IEventHub>());
|
||||
var actual = readerService.FormatChapterName(LibraryType.Comic, true, true);
|
||||
var actual = ReaderService.FormatChapterName(LibraryType.Comic, true, true);
|
||||
Assert.Equal("Issue #", actual);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue