Bogus hierarchical data
Given I have the following class definition
I wish to generate test instances of
Project
using Bogus (https://github.com/bchavez/Bogus).
So, I define a faker like so:
But how do I fake the Parent
property and the SubProjects
property?1 Reply
https://github.com/bchavez/Bogus/issues/290 pretty much describes how to solve this issue
GitHub
Hierarchy support? · Issue #290 · bchavez/Bogus
Version Information Software Version(s) Bogus NuGet Package 29.0.2 .NET Core? netstandard2.1 .NET Full Framework? no Windows OS? Windows 10 Linux OS? Visual Studio? 2019 (16.5.2) What locale are yo...