New Scanner + People Pages (#3286)
Co-authored-by: Robbie Davis <robbie@therobbiedavis.com>
This commit is contained in:
parent
1ed0eae22d
commit
ba20ad4ecc
142 changed files with 17529 additions and 3038 deletions
|
@ -142,4 +142,17 @@ public class ChapterBuilder : IEntityBuilder<Chapter>
|
|||
_chapter.CreatedUtc = created.ToUniversalTime();
|
||||
return this;
|
||||
}
|
||||
|
||||
public ChapterBuilder WithPerson(Person person, PersonRole role)
|
||||
{
|
||||
_chapter.People ??= new List<ChapterPeople>();
|
||||
_chapter.People.Add(new ChapterPeople()
|
||||
{
|
||||
Person = person,
|
||||
Role = role,
|
||||
Chapter = _chapter,
|
||||
});
|
||||
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue