Closed mikwee closed 2 years ago
Why not new Faker<School>().RuleFor(p => p.ar, f => f.Make(6, f => new Node<Student>(Student.FakeData.Generate())));
?
Hello,
There is an example on the README page here:
There are two fakers Faker<User>
and Faker<Order>
and .RuleFor(u => u.Orders, f => testOrders.Generate(3).ToList())
that you'll want to review and understand.
Thank you for posting your code, but I can't run your code because it does not compile (nor does it run in LinqPad); so support for this problem is limited until you can provide working code in LinqPad (or a branch/fork with a failing unit test).
Version Information
What locale are you using with Bogus?
Not really using a locale... I think
What's the problem?
I wanna generate a dummy object, that one of its properties is a generator of another dummy object. Is it possible?
What possible solutions have you considered?
I've considered this code:
But instead of generating an object, it generated this error:
Do you have sample code to show what you're trying to do?
I hope you won't have to run this, but if you do, I can send you Unit4New.dll in some way.