bogus Questions
3
Solved
Bogus Mocking Data Same Values For 2 different properties is it possible to have 2 properties have same value in the fluent api.
var users = new Faker<User>()
.StrictMode(false)
.RuleFor(o...
Accrual asked 22/11, 2019 at 14:35
1
Solved
I'm trying to generate objects of a class whereby its value should reflect its type.
For example, if its property's type is a string, then that property's value should be "string" and if ...
1
Solved
Using C# Bogus library, I would like to generate completely random objects without enumerating all fields as RuleFor explicitly.
How I could configure my Faker to achieve that?
2
I would like to ask your help to use Bogus Faker.
I have this
private readonly Faker _faker;
_faker = new Faker("fr");
List<string> _randomString = (List<string>)_faker.Make(3, () =...
1
In using .net Bogus github repository for filling up a database, I would like to both fill a field randomly with something like:
{ "Mother", "Sister", "Brother", "Father", "Uncle","Niece","Nephew"...
1
Solved
I'm using c# Bogus.Faker library to create random test data for my unit tests.
I want to know how to easily pick a random enum value ?
Any suggestions?
Bonsai asked 15/10, 2018 at 15:0
2
Solved
There is a beautiful library that generates random/pseudo-random values for a DTO.
var fruit = new[] { "apple", "banana", "orange", "strawberry", "kiwi" };
var orderIds = 0;
var testOrders = new...
2
Solved
I have a very nested model that I want to create thousands of with fake data. But, also, some properties in the model need to be in a specific range or have specific rules. I looked at these two fa...
Reviewer asked 12/1, 2018 at 11:47
1
© 2022 - 2024 — McMap. All rights reserved.