Changed design language. Added editions, better support for authors. Base for file handling

This commit is contained in:
2026-03-28 15:17:20 +02:00
parent cbd7f52535
commit 5acde17a53
84 changed files with 5861 additions and 1983 deletions
@@ -34,6 +34,7 @@ public static class BookFactory
HardcoverId = hardcoverId,
BookAuthors = [],
SeriesEntries = [],
Editions = [],
};
}
@@ -53,6 +54,13 @@ public static class BookFactory
return book;
}
public static Book WithEditions(this Book book, params (string? Isbn, string? Publisher, string? CoverUrl)[] editions)
{
foreach (var (isbn, publisher, coverUrl) in editions)
book.Editions.Add(new Edition { BookId = book.Id, Isbn = isbn, Publisher = publisher, CoverUrl = coverUrl });
return book;
}
public static Book WithSeries(this Book book, int seriesId = 1, string seriesName = "Test Series", double position = 1.0, string? arc = null)
{
var series = new Series { Id = seriesId, Name = seriesName };