Added Source Chapter and Source Page entities.
This commit is contained in:
@@ -43,14 +43,14 @@ public class MangaPipelineTests(TestDbContextFactory factory) : IClassFixture<Te
|
||||
]
|
||||
};
|
||||
|
||||
MangaPipelineRequest request = new()
|
||||
MangaMetadataPipelineRequest request = new()
|
||||
{
|
||||
SourceName = "MySource",
|
||||
SourceUrl = "https://wwww.mymangasource.org/my-manga",
|
||||
SourceManga = sourceManga
|
||||
};
|
||||
|
||||
await pipeline.RunAsync(request);
|
||||
await pipeline.RunMetadataAsync(request);
|
||||
|
||||
context.Mangas.ShouldHaveSingleItem();
|
||||
context.MangaTitles.Count().ShouldBe(2);
|
||||
@@ -58,6 +58,6 @@ public class MangaPipelineTests(TestDbContextFactory factory) : IClassFixture<Te
|
||||
context.MangaTitles.Where(mt => mt.IsPrimary).First().Name.ShouldBe("Fullmetal Alchemist");
|
||||
context.MangaTitles.Where(mt => mt.IsPrimary).First().Language.ShouldBe(Language.English);
|
||||
context.Genres.Count().ShouldBe(2);
|
||||
context.MangaChapters.ShouldHaveSingleItem();
|
||||
context.SourceChapters.ShouldHaveSingleItem();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user