Skip to content

Instantly share code, notes, and snippets.

Created December 1, 2013 15:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save anonymous/7735469 to your computer and use it in GitHub Desktop.
Save anonymous/7735469 to your computer and use it in GitHub Desktop.
[
'{{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