Created
December 1, 2013 15:41
-
-
Save anonymous/7735469 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
'{{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