/ComplexFaker

Create fake data for your complex model without too much configuration.

Primary LanguageC#

ComplexFaker

Fake data generator utiity for complex/nested DTO till n-depth for testing purpose.

Get the NuGet Package: Install-Package ComplexFaker

Generate fake/bogus/dummy/junk data for .NET POCO.

Support for IEnumerable, List, Array and Dictionary. Based on GenFu.

	IFakeDataService faker = new FakeDataService();

        //Generate Simple obj
        var obj1 = faker.Generate<OrderSummaryDto>();

        //Generate List of simple obj with default array length 2.
        var obj2 = faker.Generate<List<OrderSummaryDto>>();

        //Generate Simple obj user defined array length 5.
        var obj3 = faker.Generate<List<OrderSummaryDto>>(5);

        //Generate Complex list with default array length 2.
        var obj4 = faker.GenerateComplex<List<OrderSummaryDto>>();

        //Generate Complex list with user defined array length 5.
        var obj5 = faker.GenerateComplex<List<OrderSummaryDto>>(5);
	
	//Generate Complex.
        var obj6 = faker.GenerateComplex<OrderSummaryDto>();

Running Demo on dotnetfiddle