Genre & Person Unit Tests
This commit is contained in:
parent
2c00f1f124
commit
2b106b68c7
4 changed files with 489 additions and 4 deletions
|
|
@ -159,11 +159,21 @@ public class ChapterBuilder : IEntityBuilder<Chapter>
|
|||
|
||||
public ChapterBuilder WithTags(IList<Tag> tags)
|
||||
{
|
||||
_chapter.Tags ??= new List<Tag>();
|
||||
_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