Create sample 10 sample data for the class poco:
List<PocoEvents> EventsList = SamplerServices<PocoEvents>.CreateSampleData(10);

Save sample data for later use.
SamplerServices<PocoEvents>.SaveToFile(EventsList);

Load the saved sample data
var eventList = SamplerServices<PocoEvents>.LoadSavedFile();

Create sample data with options
     SamplerOptions options = new SamplerOptions();
     options.PropertyOptions.Add("Id", SamplerOptions.Options.IsUnique);
     options.PropertyOptions.Add("LongText", SamplerOptions.Options.Paragraph);
     options.PropertyOptions.Add("CreatedDt", SamplerOptions.Options.IsUnique);
     List<PocoEvents> EventsList = SamplerServices<PocoEvents>.CreateSampleData(100, options);


This dll has dependencies on Newtonsoft.Json

Last edited Apr 23, 2013 at 11:07 PM by jsucupira, version 4

Comments

jsucupira Oct 2, 2013 at 3:55 PM 
For more sample I suggest looking at the Unit Test called "GetSampleDataTest.cs"