-
Notifications
You must be signed in to change notification settings - Fork 13
How to create a new Faker module
Steven Atkinson edited this page Oct 13, 2018
·
1 revision
Follow these steps in order to create a new Faker module:
- Create the documentation for the available methods.
- Add a link to the documentation to the README.
- Create the Faker module with the documented methods.
- Add tests for the new Faker module.
- Add a new property to the
IFakerContainer
that returns the new Faker modules interface. - Add a new property to the static
Faker
class that returns theIFakerContainer
property for the created Faker module.
- In the Ruby version it stores data in YAML files. In this version we have Data classes that return an
IEnumerable
. - The
IFakerContainer
is injected into Faker modules that require access to already implemented modules. - The static
Faker
class is the public API. So it is required that you follow the last two steps from the guide above ☝️