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 23 at 11:08 PM by jsucupira, version 5

Comments

No comments yet.