Refactored DB to be Series->Volumes->Chapters instead. All functionality that previously worked still works. Cleanup still needed.
This commit is contained in:
parent
a42e54a078
commit
53e85317f9
33 changed files with 2084 additions and 142 deletions
|
@ -62,37 +62,37 @@ namespace API.Tests.Services
|
|||
[Fact]
|
||||
public void GetOrderedChaptersTest()
|
||||
{
|
||||
var files = new List<MangaFile>()
|
||||
{
|
||||
new()
|
||||
{
|
||||
Chapter = 1
|
||||
},
|
||||
new()
|
||||
{
|
||||
Chapter = 2
|
||||
},
|
||||
new()
|
||||
{
|
||||
Chapter = 0
|
||||
},
|
||||
};
|
||||
var expected = new List<MangaFile>()
|
||||
{
|
||||
new()
|
||||
{
|
||||
Chapter = 1
|
||||
},
|
||||
new()
|
||||
{
|
||||
Chapter = 2
|
||||
},
|
||||
new()
|
||||
{
|
||||
Chapter = 0
|
||||
},
|
||||
};
|
||||
Assert.NotStrictEqual(expected, _cacheService.GetOrderedChapters(files));
|
||||
// var files = new List<Chapter>()
|
||||
// {
|
||||
// new()
|
||||
// {
|
||||
// Number = "1"
|
||||
// },
|
||||
// new()
|
||||
// {
|
||||
// Chapter = 2
|
||||
// },
|
||||
// new()
|
||||
// {
|
||||
// Chapter = 0
|
||||
// },
|
||||
// };
|
||||
// var expected = new List<MangaFile>()
|
||||
// {
|
||||
// new()
|
||||
// {
|
||||
// Chapter = 1
|
||||
// },
|
||||
// new()
|
||||
// {
|
||||
// Chapter = 2
|
||||
// },
|
||||
// new()
|
||||
// {
|
||||
// Chapter = 0
|
||||
// },
|
||||
// };
|
||||
// Assert.NotStrictEqual(expected, _cacheService.GetOrderedChapters(files));
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue