Bogus v16.0.2 Release Notes
-
๐ Release Date: 2017-08-23
- ๐ฅ BREAKING CHANGE:
Faker.Generate(n)
now calls.ToList()
under the hood to escape LINQ deferred execution. Remembering to call.ToList()
after.Generate(n)
was a sticking point for new users writing test assertions on generated values. Please do not callFaker.Generate(n).ToList()
as it would execute.ToList()
twice. Simply,Faker.Generate(n)
is enough. f.Generate
andf => f.Make
now returnIList<T>
to signify the breaking change above.- Issue #92: Added
.GenerateLazy
to keep old behavior and returnsIEnumerable<T>
. - Issue #93: Renamed a
PickRandom
overload to avoid the compiler from picking wrongPickRandom
method. - โ Added
f.PickRandomParam("cat","dog","fish")
. - โ Removed
[Obsolete]
methods.
- ๐ฅ BREAKING CHANGE: