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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -108,4 +108,23 @@ public class SeriesMetadataBuilder : IEntityBuilder<SeriesMetadata>
|
|||
_seriesMetadata.TagsLocked = lockStatus;
|
||||
return this;
|
||||
}
|
||||
|
||||
public SeriesMetadataBuilder WithTags(List<Tag> tags, bool lockStatus = false)
|
||||
{
|
||||
_seriesMetadata.Tags = tags;
|
||||
_seriesMetadata.TagsLocked = lockStatus;
|
||||
return this;
|
||||
}
|
||||
|
||||
public SeriesMetadataBuilder WithMaxCount(int count)
|
||||
{
|
||||
_seriesMetadata.MaxCount = count;
|
||||
return this;
|
||||
}
|
||||
|
||||
public SeriesMetadataBuilder WithTotalCount(int count)
|
||||
{
|
||||
_seriesMetadata.TotalCount = count;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue