This dll has dependencies on Newtonsoft.Json

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);

Last edited Apr 24, 2013 at 12:08 AM by jsucupira, version 5

Comments

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