Create a gist now

Instantly share code, notes, and snippets.

anonymous /gist:7735469
Created Dec 1, 2013

What would you like to do?
[
'{{repeat(10000, 10000)}}',
{
"CaseId": '{{guid}}',
"CaseAddressString": '{{numeric(100,999)}} {{street}}, {{city}}',
"CaseOpenDatetime" :
function StatusDate(idx){
var d = new Date();
var x = this.numeric(10,1);
d.setDate(d.getDate() - x);
return d.getTime();
},
"CaseCurrentStatusDatetime" :
function StatusDate(idx){
var d = new Date();
var x = this.numeric(10,1);
d.setDate(d.getDate() - x);
return d.getTime;
},
"CaseBeginDatetime" :
function StatusDate(idx){
var d = new Date();
var x = this.numeric(10,1);
d.setDate(d.getDate() - x);
return d.getTime();
},
"CaseCurrentStatus" :
function CaseStatus(idx) {
var types = ['open', 'pending', 'closed'];
return types[this.numeric(0,types.length)];
},
"CaseDescription" : '{{lorem(1,sentences)}}',
"RequestorFirstName": '{{firstName}}',
"RequestorLastName" : '{{surname}}',
"age": '{{numeric(15,50)}}',
"gender" : '{{gender}}',
"CasePhoneNumbers": [
{
"type": "home",
"number": '+1 {{phone}}'
},
{
"type": "fax",
"number": '+1 {{phone}}'
}
],
location: [
'{{numeric(-122.550001, -122.3900001)}}',
'{{numeric(37.600001, 37.8000000)}}'
],
"ServiceName" :
function service(idx) {
var types = ['Open Man Hole Cover', 'Broken Street Lamp', 'Open Fire Hydrant', 'Missing Sign', 'Missing Sign', 'Uncollected Garbage', 'Obstructed Parking', 'Dead Animal', 'Fallen Tree', 'Other', 'Other'];
return types[this.numeric(0,types.length)];
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment