Skip to content

dalenewman/Transformalize.Provider.Bogus

Repository files navigation

This is a bogus input provider for Transformalize.

It is still a work in progress. Some of the Bogus API Support is implemented. You can use Transformalize arrangements to generate test data like this:

<cfg name="Bogus">

    <connections>
        <add name="input" provider="bogus" seed="1" />
    </connections>

    <entities>
        <add name="Contact" size="5">
            <fields>
                <add name="Identity" type="int" />
                <add name="FirstName" />
                <add name="LastName" />
                <add name="Email" />
                <add name="Phone" format="(###)###-####" />
                <add name="Stars" type="byte" min="1" max="5" />
                <add name="Recent" alias="LastSeen" type="datetime" />
            </fields>
        </add>
    </entities>

</cfg>

Saving this as bogus.xml and running produces:

c:\> tfl bogus.xml
Identity,FirstName,LastName,Email,Phone,Stars,LastSeen
1,Delores,Brown,[email protected],(460)120-3539,5,11/20/2017 10:10:14 PM
2,Dakota,Bradtke,[email protected],(102)209-4891,5,11/21/2017 12:37:18 AM
3,Tanner,Becker,[email protected],(682)933-1094,5,11/21/2017 11:59:27 AM
4,Ila,Schamberger,[email protected],(010)148-1661,2,11/21/2017 12:55:25 AM
5,Darren,Ledner,[email protected],(246)962-0037,4,11/21/2017 3:59:14 AM

If the field's name is on the Bogus API, fake data is created.

In addition, the format, min, and max attributes are used to create other forms of test data (e.g. the Stars field above).

About

Fake Input Provider for Transformalize powered by Bogus

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published