A bunch of bug fixes and some enhancements (#3871)
Co-authored-by: Joseph Milazzo <josephmajora@gmail.com>
This commit is contained in:
parent
62231d3c4e
commit
6fa1cf994e
24 changed files with 1464 additions and 91 deletions
|
|
@ -156,4 +156,24 @@ public class ChapterBuilder : IEntityBuilder<Chapter>
|
|||
|
||||
return this;
|
||||
}
|
||||
|
||||
public ChapterBuilder WithTags(IList<Tag> tags)
|
||||
{
|
||||
_chapter.Tags ??= [];
|
||||
foreach (var tag in tags)
|
||||
{
|
||||
_chapter.Tags.Add(tag);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
public ChapterBuilder WithGenres(IList<Genre> genres)
|
||||
{
|
||||
_chapter.Genres ??= [];
|
||||
foreach (var genre in genres)
|
||||
{
|
||||
_chapter.Genres.Add(genre);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue