Genre & Person Unit Tests

This commit is contained in:
Amelia 2025-06-21 00:19:32 +02:00
parent 2c00f1f124
commit 2b106b68c7
4 changed files with 489 additions and 4 deletions

View file

@ -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;
}
}