Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(409)

Side by Side Diff: generated/googleapis/test/civicinfo/v1_test.dart

Issue 770773002: Api roll 7: 2014-12-01 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 library googleapis.civicinfo.v1.test; 1 library googleapis.civicinfo.v1.test;
2 2
3 import "dart:core" as core; 3 import "dart:core" as core;
4 import "dart:collection" as collection; 4 import "dart:collection" as collection;
5 import "dart:async" as async; 5 import "dart:async" as async;
6 import "dart:convert" as convert; 6 import "dart:convert" as convert;
7 7
8 import 'package:http/http.dart' as http; 8 import 'package:http/http.dart' as http;
9 import 'package:http/testing.dart' as http_testing; 9 import 'package:http/testing.dart' as http_testing;
10 import 'package:unittest/unittest.dart' as unittest; 10 import 'package:unittest/unittest.dart' as unittest;
11 import 'package:googleapis/common/common.dart' as common; 11 import 'package:googleapis/common/common.dart' as common;
12 import 'package:googleapis/src/common_internal.dart' as common_internal; 12 import 'package:googleapis/src/common_internal.dart' as common_internal;
13 import '../common/common_internal_test.dart' as common_test; 13 import '../common/common_internal_test.dart' as common_test;
14 14
15 import 'package:googleapis/civicinfo/v1.dart' as api; 15 import 'package:googleapis/civicinfo/v1.dart' as api;
16 16
17 17
18 18
19 buildUnnamed65() { 19 buildUnnamed399() {
20 var o = new core.List<api.Source>(); 20 var o = new core.List<api.Source>();
21 o.add(buildSource()); 21 o.add(buildSource());
22 o.add(buildSource()); 22 o.add(buildSource());
23 return o; 23 return o;
24 } 24 }
25 25
26 checkUnnamed65(core.List<api.Source> o) { 26 checkUnnamed399(core.List<api.Source> o) {
27 unittest.expect(o, unittest.hasLength(2)); 27 unittest.expect(o, unittest.hasLength(2));
28 checkSource(o[0]); 28 checkSource(o[0]);
29 checkSource(o[1]); 29 checkSource(o[1]);
30 } 30 }
31 31
32 core.int buildCounterAdministrationRegion = 0; 32 core.int buildCounterAdministrationRegion = 0;
33 buildAdministrationRegion() { 33 buildAdministrationRegion() {
34 var o = new api.AdministrationRegion(); 34 var o = new api.AdministrationRegion();
35 buildCounterAdministrationRegion++; 35 buildCounterAdministrationRegion++;
36 if (buildCounterAdministrationRegion < 3) { 36 if (buildCounterAdministrationRegion < 3) {
37 o.electionAdministrationBody = buildAdministrativeBody(); 37 o.electionAdministrationBody = buildAdministrativeBody();
38 o.id = "foo"; 38 o.id = "foo";
39 o.localJurisdiction = buildAdministrationRegion(); 39 o.localJurisdiction = buildAdministrationRegion();
40 o.name = "foo"; 40 o.name = "foo";
41 o.sources = buildUnnamed65(); 41 o.sources = buildUnnamed399();
42 } 42 }
43 buildCounterAdministrationRegion--; 43 buildCounterAdministrationRegion--;
44 return o; 44 return o;
45 } 45 }
46 46
47 checkAdministrationRegion(api.AdministrationRegion o) { 47 checkAdministrationRegion(api.AdministrationRegion o) {
48 buildCounterAdministrationRegion++; 48 buildCounterAdministrationRegion++;
49 if (buildCounterAdministrationRegion < 3) { 49 if (buildCounterAdministrationRegion < 3) {
50 checkAdministrativeBody(o.electionAdministrationBody); 50 checkAdministrativeBody(o.electionAdministrationBody);
51 unittest.expect(o.id, unittest.equals('foo')); 51 unittest.expect(o.id, unittest.equals('foo'));
52 checkAdministrationRegion(o.localJurisdiction); 52 checkAdministrationRegion(o.localJurisdiction);
53 unittest.expect(o.name, unittest.equals('foo')); 53 unittest.expect(o.name, unittest.equals('foo'));
54 checkUnnamed65(o.sources); 54 checkUnnamed399(o.sources);
55 } 55 }
56 buildCounterAdministrationRegion--; 56 buildCounterAdministrationRegion--;
57 } 57 }
58 58
59 buildUnnamed66() { 59 buildUnnamed400() {
60 var o = new core.List<api.ElectionOfficial>(); 60 var o = new core.List<api.ElectionOfficial>();
61 o.add(buildElectionOfficial()); 61 o.add(buildElectionOfficial());
62 o.add(buildElectionOfficial()); 62 o.add(buildElectionOfficial());
63 return o; 63 return o;
64 } 64 }
65 65
66 checkUnnamed66(core.List<api.ElectionOfficial> o) { 66 checkUnnamed400(core.List<api.ElectionOfficial> o) {
67 unittest.expect(o, unittest.hasLength(2)); 67 unittest.expect(o, unittest.hasLength(2));
68 checkElectionOfficial(o[0]); 68 checkElectionOfficial(o[0]);
69 checkElectionOfficial(o[1]); 69 checkElectionOfficial(o[1]);
70 } 70 }
71 71
72 buildUnnamed67() { 72 buildUnnamed401() {
73 var o = new core.List<core.String>(); 73 var o = new core.List<core.String>();
74 o.add("foo"); 74 o.add("foo");
75 o.add("foo"); 75 o.add("foo");
76 return o; 76 return o;
77 } 77 }
78 78
79 checkUnnamed67(core.List<core.String> o) { 79 checkUnnamed401(core.List<core.String> o) {
80 unittest.expect(o, unittest.hasLength(2)); 80 unittest.expect(o, unittest.hasLength(2));
81 unittest.expect(o[0], unittest.equals('foo')); 81 unittest.expect(o[0], unittest.equals('foo'));
82 unittest.expect(o[1], unittest.equals('foo')); 82 unittest.expect(o[1], unittest.equals('foo'));
83 } 83 }
84 84
85 core.int buildCounterAdministrativeBody = 0; 85 core.int buildCounterAdministrativeBody = 0;
86 buildAdministrativeBody() { 86 buildAdministrativeBody() {
87 var o = new api.AdministrativeBody(); 87 var o = new api.AdministrativeBody();
88 buildCounterAdministrativeBody++; 88 buildCounterAdministrativeBody++;
89 if (buildCounterAdministrativeBody < 3) { 89 if (buildCounterAdministrativeBody < 3) {
90 o.absenteeVotingInfoUrl = "foo"; 90 o.absenteeVotingInfoUrl = "foo";
91 o.ballotInfoUrl = "foo"; 91 o.ballotInfoUrl = "foo";
92 o.correspondenceAddress = buildSimpleAddressType(); 92 o.correspondenceAddress = buildSimpleAddressType();
93 o.electionInfoUrl = "foo"; 93 o.electionInfoUrl = "foo";
94 o.electionOfficials = buildUnnamed66(); 94 o.electionOfficials = buildUnnamed400();
95 o.electionRegistrationConfirmationUrl = "foo"; 95 o.electionRegistrationConfirmationUrl = "foo";
96 o.electionRegistrationUrl = "foo"; 96 o.electionRegistrationUrl = "foo";
97 o.electionRulesUrl = "foo"; 97 o.electionRulesUrl = "foo";
98 o.hoursOfOperation = "foo"; 98 o.hoursOfOperation = "foo";
99 o.name = "foo"; 99 o.name = "foo";
100 o.physicalAddress = buildSimpleAddressType(); 100 o.physicalAddress = buildSimpleAddressType();
101 o.voterServices = buildUnnamed67(); 101 o.voterServices = buildUnnamed401();
102 o.votingLocationFinderUrl = "foo"; 102 o.votingLocationFinderUrl = "foo";
103 } 103 }
104 buildCounterAdministrativeBody--; 104 buildCounterAdministrativeBody--;
105 return o; 105 return o;
106 } 106 }
107 107
108 checkAdministrativeBody(api.AdministrativeBody o) { 108 checkAdministrativeBody(api.AdministrativeBody o) {
109 buildCounterAdministrativeBody++; 109 buildCounterAdministrativeBody++;
110 if (buildCounterAdministrativeBody < 3) { 110 if (buildCounterAdministrativeBody < 3) {
111 unittest.expect(o.absenteeVotingInfoUrl, unittest.equals('foo')); 111 unittest.expect(o.absenteeVotingInfoUrl, unittest.equals('foo'));
112 unittest.expect(o.ballotInfoUrl, unittest.equals('foo')); 112 unittest.expect(o.ballotInfoUrl, unittest.equals('foo'));
113 checkSimpleAddressType(o.correspondenceAddress); 113 checkSimpleAddressType(o.correspondenceAddress);
114 unittest.expect(o.electionInfoUrl, unittest.equals('foo')); 114 unittest.expect(o.electionInfoUrl, unittest.equals('foo'));
115 checkUnnamed66(o.electionOfficials); 115 checkUnnamed400(o.electionOfficials);
116 unittest.expect(o.electionRegistrationConfirmationUrl, unittest.equals('foo' )); 116 unittest.expect(o.electionRegistrationConfirmationUrl, unittest.equals('foo' ));
117 unittest.expect(o.electionRegistrationUrl, unittest.equals('foo')); 117 unittest.expect(o.electionRegistrationUrl, unittest.equals('foo'));
118 unittest.expect(o.electionRulesUrl, unittest.equals('foo')); 118 unittest.expect(o.electionRulesUrl, unittest.equals('foo'));
119 unittest.expect(o.hoursOfOperation, unittest.equals('foo')); 119 unittest.expect(o.hoursOfOperation, unittest.equals('foo'));
120 unittest.expect(o.name, unittest.equals('foo')); 120 unittest.expect(o.name, unittest.equals('foo'));
121 checkSimpleAddressType(o.physicalAddress); 121 checkSimpleAddressType(o.physicalAddress);
122 checkUnnamed67(o.voterServices); 122 checkUnnamed401(o.voterServices);
123 unittest.expect(o.votingLocationFinderUrl, unittest.equals('foo')); 123 unittest.expect(o.votingLocationFinderUrl, unittest.equals('foo'));
124 } 124 }
125 buildCounterAdministrativeBody--; 125 buildCounterAdministrativeBody--;
126 } 126 }
127 127
128 buildUnnamed68() { 128 buildUnnamed402() {
129 var o = new core.List<api.Channel>(); 129 var o = new core.List<api.Channel>();
130 o.add(buildChannel()); 130 o.add(buildChannel());
131 o.add(buildChannel()); 131 o.add(buildChannel());
132 return o; 132 return o;
133 } 133 }
134 134
135 checkUnnamed68(core.List<api.Channel> o) { 135 checkUnnamed402(core.List<api.Channel> o) {
136 unittest.expect(o, unittest.hasLength(2)); 136 unittest.expect(o, unittest.hasLength(2));
137 checkChannel(o[0]); 137 checkChannel(o[0]);
138 checkChannel(o[1]); 138 checkChannel(o[1]);
139 } 139 }
140 140
141 core.int buildCounterCandidate = 0; 141 core.int buildCounterCandidate = 0;
142 buildCandidate() { 142 buildCandidate() {
143 var o = new api.Candidate(); 143 var o = new api.Candidate();
144 buildCounterCandidate++; 144 buildCounterCandidate++;
145 if (buildCounterCandidate < 3) { 145 if (buildCounterCandidate < 3) {
146 o.candidateUrl = "foo"; 146 o.candidateUrl = "foo";
147 o.channels = buildUnnamed68(); 147 o.channels = buildUnnamed402();
148 o.email = "foo"; 148 o.email = "foo";
149 o.name = "foo"; 149 o.name = "foo";
150 o.orderOnBallot = "foo"; 150 o.orderOnBallot = "foo";
151 o.party = "foo"; 151 o.party = "foo";
152 o.phone = "foo"; 152 o.phone = "foo";
153 o.photoUrl = "foo"; 153 o.photoUrl = "foo";
154 } 154 }
155 buildCounterCandidate--; 155 buildCounterCandidate--;
156 return o; 156 return o;
157 } 157 }
158 158
159 checkCandidate(api.Candidate o) { 159 checkCandidate(api.Candidate o) {
160 buildCounterCandidate++; 160 buildCounterCandidate++;
161 if (buildCounterCandidate < 3) { 161 if (buildCounterCandidate < 3) {
162 unittest.expect(o.candidateUrl, unittest.equals('foo')); 162 unittest.expect(o.candidateUrl, unittest.equals('foo'));
163 checkUnnamed68(o.channels); 163 checkUnnamed402(o.channels);
164 unittest.expect(o.email, unittest.equals('foo')); 164 unittest.expect(o.email, unittest.equals('foo'));
165 unittest.expect(o.name, unittest.equals('foo')); 165 unittest.expect(o.name, unittest.equals('foo'));
166 unittest.expect(o.orderOnBallot, unittest.equals('foo')); 166 unittest.expect(o.orderOnBallot, unittest.equals('foo'));
167 unittest.expect(o.party, unittest.equals('foo')); 167 unittest.expect(o.party, unittest.equals('foo'));
168 unittest.expect(o.phone, unittest.equals('foo')); 168 unittest.expect(o.phone, unittest.equals('foo'));
169 unittest.expect(o.photoUrl, unittest.equals('foo')); 169 unittest.expect(o.photoUrl, unittest.equals('foo'));
170 } 170 }
171 buildCounterCandidate--; 171 buildCounterCandidate--;
172 } 172 }
173 173
(...skipping 11 matching lines...) Expand all
185 185
186 checkChannel(api.Channel o) { 186 checkChannel(api.Channel o) {
187 buildCounterChannel++; 187 buildCounterChannel++;
188 if (buildCounterChannel < 3) { 188 if (buildCounterChannel < 3) {
189 unittest.expect(o.id, unittest.equals('foo')); 189 unittest.expect(o.id, unittest.equals('foo'));
190 unittest.expect(o.type, unittest.equals('foo')); 190 unittest.expect(o.type, unittest.equals('foo'));
191 } 191 }
192 buildCounterChannel--; 192 buildCounterChannel--;
193 } 193 }
194 194
195 buildUnnamed69() { 195 buildUnnamed403() {
196 var o = new core.List<api.Candidate>(); 196 var o = new core.List<api.Candidate>();
197 o.add(buildCandidate()); 197 o.add(buildCandidate());
198 o.add(buildCandidate()); 198 o.add(buildCandidate());
199 return o; 199 return o;
200 } 200 }
201 201
202 checkUnnamed69(core.List<api.Candidate> o) { 202 checkUnnamed403(core.List<api.Candidate> o) {
203 unittest.expect(o, unittest.hasLength(2)); 203 unittest.expect(o, unittest.hasLength(2));
204 checkCandidate(o[0]); 204 checkCandidate(o[0]);
205 checkCandidate(o[1]); 205 checkCandidate(o[1]);
206 } 206 }
207 207
208 buildUnnamed70() { 208 buildUnnamed404() {
209 var o = new core.List<api.Source>(); 209 var o = new core.List<api.Source>();
210 o.add(buildSource()); 210 o.add(buildSource());
211 o.add(buildSource()); 211 o.add(buildSource());
212 return o; 212 return o;
213 } 213 }
214 214
215 checkUnnamed70(core.List<api.Source> o) { 215 checkUnnamed404(core.List<api.Source> o) {
216 unittest.expect(o, unittest.hasLength(2)); 216 unittest.expect(o, unittest.hasLength(2));
217 checkSource(o[0]); 217 checkSource(o[0]);
218 checkSource(o[1]); 218 checkSource(o[1]);
219 } 219 }
220 220
221 core.int buildCounterContest = 0; 221 core.int buildCounterContest = 0;
222 buildContest() { 222 buildContest() {
223 var o = new api.Contest(); 223 var o = new api.Contest();
224 buildCounterContest++; 224 buildCounterContest++;
225 if (buildCounterContest < 3) { 225 if (buildCounterContest < 3) {
226 o.ballotPlacement = "foo"; 226 o.ballotPlacement = "foo";
227 o.candidates = buildUnnamed69(); 227 o.candidates = buildUnnamed403();
228 o.district = buildElectoralDistrict(); 228 o.district = buildElectoralDistrict();
229 o.electorateSpecifications = "foo"; 229 o.electorateSpecifications = "foo";
230 o.id = "foo"; 230 o.id = "foo";
231 o.level = "foo"; 231 o.level = "foo";
232 o.numberElected = "foo"; 232 o.numberElected = "foo";
233 o.numberVotingFor = "foo"; 233 o.numberVotingFor = "foo";
234 o.office = "foo"; 234 o.office = "foo";
235 o.primaryParty = "foo"; 235 o.primaryParty = "foo";
236 o.referendumSubtitle = "foo"; 236 o.referendumSubtitle = "foo";
237 o.referendumTitle = "foo"; 237 o.referendumTitle = "foo";
238 o.referendumUrl = "foo"; 238 o.referendumUrl = "foo";
239 o.sources = buildUnnamed70(); 239 o.sources = buildUnnamed404();
240 o.special = "foo"; 240 o.special = "foo";
241 o.type = "foo"; 241 o.type = "foo";
242 } 242 }
243 buildCounterContest--; 243 buildCounterContest--;
244 return o; 244 return o;
245 } 245 }
246 246
247 checkContest(api.Contest o) { 247 checkContest(api.Contest o) {
248 buildCounterContest++; 248 buildCounterContest++;
249 if (buildCounterContest < 3) { 249 if (buildCounterContest < 3) {
250 unittest.expect(o.ballotPlacement, unittest.equals('foo')); 250 unittest.expect(o.ballotPlacement, unittest.equals('foo'));
251 checkUnnamed69(o.candidates); 251 checkUnnamed403(o.candidates);
252 checkElectoralDistrict(o.district); 252 checkElectoralDistrict(o.district);
253 unittest.expect(o.electorateSpecifications, unittest.equals('foo')); 253 unittest.expect(o.electorateSpecifications, unittest.equals('foo'));
254 unittest.expect(o.id, unittest.equals('foo')); 254 unittest.expect(o.id, unittest.equals('foo'));
255 unittest.expect(o.level, unittest.equals('foo')); 255 unittest.expect(o.level, unittest.equals('foo'));
256 unittest.expect(o.numberElected, unittest.equals('foo')); 256 unittest.expect(o.numberElected, unittest.equals('foo'));
257 unittest.expect(o.numberVotingFor, unittest.equals('foo')); 257 unittest.expect(o.numberVotingFor, unittest.equals('foo'));
258 unittest.expect(o.office, unittest.equals('foo')); 258 unittest.expect(o.office, unittest.equals('foo'));
259 unittest.expect(o.primaryParty, unittest.equals('foo')); 259 unittest.expect(o.primaryParty, unittest.equals('foo'));
260 unittest.expect(o.referendumSubtitle, unittest.equals('foo')); 260 unittest.expect(o.referendumSubtitle, unittest.equals('foo'));
261 unittest.expect(o.referendumTitle, unittest.equals('foo')); 261 unittest.expect(o.referendumTitle, unittest.equals('foo'));
262 unittest.expect(o.referendumUrl, unittest.equals('foo')); 262 unittest.expect(o.referendumUrl, unittest.equals('foo'));
263 checkUnnamed70(o.sources); 263 checkUnnamed404(o.sources);
264 unittest.expect(o.special, unittest.equals('foo')); 264 unittest.expect(o.special, unittest.equals('foo'));
265 unittest.expect(o.type, unittest.equals('foo')); 265 unittest.expect(o.type, unittest.equals('foo'));
266 } 266 }
267 buildCounterContest--; 267 buildCounterContest--;
268 } 268 }
269 269
270 buildUnnamed71() { 270 buildUnnamed405() {
271 var o = new core.List<api.DivisionSearchResult>(); 271 var o = new core.List<api.DivisionSearchResult>();
272 o.add(buildDivisionSearchResult()); 272 o.add(buildDivisionSearchResult());
273 o.add(buildDivisionSearchResult()); 273 o.add(buildDivisionSearchResult());
274 return o; 274 return o;
275 } 275 }
276 276
277 checkUnnamed71(core.List<api.DivisionSearchResult> o) { 277 checkUnnamed405(core.List<api.DivisionSearchResult> o) {
278 unittest.expect(o, unittest.hasLength(2)); 278 unittest.expect(o, unittest.hasLength(2));
279 checkDivisionSearchResult(o[0]); 279 checkDivisionSearchResult(o[0]);
280 checkDivisionSearchResult(o[1]); 280 checkDivisionSearchResult(o[1]);
281 } 281 }
282 282
283 core.int buildCounterDivisionSearchResponse = 0; 283 core.int buildCounterDivisionSearchResponse = 0;
284 buildDivisionSearchResponse() { 284 buildDivisionSearchResponse() {
285 var o = new api.DivisionSearchResponse(); 285 var o = new api.DivisionSearchResponse();
286 buildCounterDivisionSearchResponse++; 286 buildCounterDivisionSearchResponse++;
287 if (buildCounterDivisionSearchResponse < 3) { 287 if (buildCounterDivisionSearchResponse < 3) {
288 o.kind = "foo"; 288 o.kind = "foo";
289 o.results = buildUnnamed71(); 289 o.results = buildUnnamed405();
290 o.status = "foo"; 290 o.status = "foo";
291 } 291 }
292 buildCounterDivisionSearchResponse--; 292 buildCounterDivisionSearchResponse--;
293 return o; 293 return o;
294 } 294 }
295 295
296 checkDivisionSearchResponse(api.DivisionSearchResponse o) { 296 checkDivisionSearchResponse(api.DivisionSearchResponse o) {
297 buildCounterDivisionSearchResponse++; 297 buildCounterDivisionSearchResponse++;
298 if (buildCounterDivisionSearchResponse < 3) { 298 if (buildCounterDivisionSearchResponse < 3) {
299 unittest.expect(o.kind, unittest.equals('foo')); 299 unittest.expect(o.kind, unittest.equals('foo'));
300 checkUnnamed71(o.results); 300 checkUnnamed405(o.results);
301 unittest.expect(o.status, unittest.equals('foo')); 301 unittest.expect(o.status, unittest.equals('foo'));
302 } 302 }
303 buildCounterDivisionSearchResponse--; 303 buildCounterDivisionSearchResponse--;
304 } 304 }
305 305
306 buildUnnamed72() { 306 buildUnnamed406() {
307 var o = new core.List<core.String>(); 307 var o = new core.List<core.String>();
308 o.add("foo"); 308 o.add("foo");
309 o.add("foo"); 309 o.add("foo");
310 return o; 310 return o;
311 } 311 }
312 312
313 checkUnnamed72(core.List<core.String> o) { 313 checkUnnamed406(core.List<core.String> o) {
314 unittest.expect(o, unittest.hasLength(2)); 314 unittest.expect(o, unittest.hasLength(2));
315 unittest.expect(o[0], unittest.equals('foo')); 315 unittest.expect(o[0], unittest.equals('foo'));
316 unittest.expect(o[1], unittest.equals('foo')); 316 unittest.expect(o[1], unittest.equals('foo'));
317 } 317 }
318 318
319 core.int buildCounterDivisionSearchResult = 0; 319 core.int buildCounterDivisionSearchResult = 0;
320 buildDivisionSearchResult() { 320 buildDivisionSearchResult() {
321 var o = new api.DivisionSearchResult(); 321 var o = new api.DivisionSearchResult();
322 buildCounterDivisionSearchResult++; 322 buildCounterDivisionSearchResult++;
323 if (buildCounterDivisionSearchResult < 3) { 323 if (buildCounterDivisionSearchResult < 3) {
324 o.aliases = buildUnnamed72(); 324 o.aliases = buildUnnamed406();
325 o.name = "foo"; 325 o.name = "foo";
326 o.ocdId = "foo"; 326 o.ocdId = "foo";
327 } 327 }
328 buildCounterDivisionSearchResult--; 328 buildCounterDivisionSearchResult--;
329 return o; 329 return o;
330 } 330 }
331 331
332 checkDivisionSearchResult(api.DivisionSearchResult o) { 332 checkDivisionSearchResult(api.DivisionSearchResult o) {
333 buildCounterDivisionSearchResult++; 333 buildCounterDivisionSearchResult++;
334 if (buildCounterDivisionSearchResult < 3) { 334 if (buildCounterDivisionSearchResult < 3) {
335 checkUnnamed72(o.aliases); 335 checkUnnamed406(o.aliases);
336 unittest.expect(o.name, unittest.equals('foo')); 336 unittest.expect(o.name, unittest.equals('foo'));
337 unittest.expect(o.ocdId, unittest.equals('foo')); 337 unittest.expect(o.ocdId, unittest.equals('foo'));
338 } 338 }
339 buildCounterDivisionSearchResult--; 339 buildCounterDivisionSearchResult--;
340 } 340 }
341 341
342 core.int buildCounterElection = 0; 342 core.int buildCounterElection = 0;
343 buildElection() { 343 buildElection() {
344 var o = new api.Election(); 344 var o = new api.Election();
345 buildCounterElection++; 345 buildCounterElection++;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 if (buildCounterElectionOfficial < 3) { 382 if (buildCounterElectionOfficial < 3) {
383 unittest.expect(o.emailAddress, unittest.equals('foo')); 383 unittest.expect(o.emailAddress, unittest.equals('foo'));
384 unittest.expect(o.faxNumber, unittest.equals('foo')); 384 unittest.expect(o.faxNumber, unittest.equals('foo'));
385 unittest.expect(o.name, unittest.equals('foo')); 385 unittest.expect(o.name, unittest.equals('foo'));
386 unittest.expect(o.officePhoneNumber, unittest.equals('foo')); 386 unittest.expect(o.officePhoneNumber, unittest.equals('foo'));
387 unittest.expect(o.title, unittest.equals('foo')); 387 unittest.expect(o.title, unittest.equals('foo'));
388 } 388 }
389 buildCounterElectionOfficial--; 389 buildCounterElectionOfficial--;
390 } 390 }
391 391
392 buildUnnamed73() { 392 buildUnnamed407() {
393 var o = new core.List<api.Election>(); 393 var o = new core.List<api.Election>();
394 o.add(buildElection()); 394 o.add(buildElection());
395 o.add(buildElection()); 395 o.add(buildElection());
396 return o; 396 return o;
397 } 397 }
398 398
399 checkUnnamed73(core.List<api.Election> o) { 399 checkUnnamed407(core.List<api.Election> o) {
400 unittest.expect(o, unittest.hasLength(2)); 400 unittest.expect(o, unittest.hasLength(2));
401 checkElection(o[0]); 401 checkElection(o[0]);
402 checkElection(o[1]); 402 checkElection(o[1]);
403 } 403 }
404 404
405 core.int buildCounterElectionsQueryResponse = 0; 405 core.int buildCounterElectionsQueryResponse = 0;
406 buildElectionsQueryResponse() { 406 buildElectionsQueryResponse() {
407 var o = new api.ElectionsQueryResponse(); 407 var o = new api.ElectionsQueryResponse();
408 buildCounterElectionsQueryResponse++; 408 buildCounterElectionsQueryResponse++;
409 if (buildCounterElectionsQueryResponse < 3) { 409 if (buildCounterElectionsQueryResponse < 3) {
410 o.elections = buildUnnamed73(); 410 o.elections = buildUnnamed407();
411 o.kind = "foo"; 411 o.kind = "foo";
412 } 412 }
413 buildCounterElectionsQueryResponse--; 413 buildCounterElectionsQueryResponse--;
414 return o; 414 return o;
415 } 415 }
416 416
417 checkElectionsQueryResponse(api.ElectionsQueryResponse o) { 417 checkElectionsQueryResponse(api.ElectionsQueryResponse o) {
418 buildCounterElectionsQueryResponse++; 418 buildCounterElectionsQueryResponse++;
419 if (buildCounterElectionsQueryResponse < 3) { 419 if (buildCounterElectionsQueryResponse < 3) {
420 checkUnnamed73(o.elections); 420 checkUnnamed407(o.elections);
421 unittest.expect(o.kind, unittest.equals('foo')); 421 unittest.expect(o.kind, unittest.equals('foo'));
422 } 422 }
423 buildCounterElectionsQueryResponse--; 423 buildCounterElectionsQueryResponse--;
424 } 424 }
425 425
426 core.int buildCounterElectoralDistrict = 0; 426 core.int buildCounterElectoralDistrict = 0;
427 buildElectoralDistrict() { 427 buildElectoralDistrict() {
428 var o = new api.ElectoralDistrict(); 428 var o = new api.ElectoralDistrict();
429 buildCounterElectoralDistrict++; 429 buildCounterElectoralDistrict++;
430 if (buildCounterElectoralDistrict < 3) { 430 if (buildCounterElectoralDistrict < 3) {
431 o.id = "foo"; 431 o.id = "foo";
432 o.name = "foo"; 432 o.name = "foo";
433 o.scope = "foo"; 433 o.scope = "foo";
434 } 434 }
435 buildCounterElectoralDistrict--; 435 buildCounterElectoralDistrict--;
436 return o; 436 return o;
437 } 437 }
438 438
439 checkElectoralDistrict(api.ElectoralDistrict o) { 439 checkElectoralDistrict(api.ElectoralDistrict o) {
440 buildCounterElectoralDistrict++; 440 buildCounterElectoralDistrict++;
441 if (buildCounterElectoralDistrict < 3) { 441 if (buildCounterElectoralDistrict < 3) {
442 unittest.expect(o.id, unittest.equals('foo')); 442 unittest.expect(o.id, unittest.equals('foo'));
443 unittest.expect(o.name, unittest.equals('foo')); 443 unittest.expect(o.name, unittest.equals('foo'));
444 unittest.expect(o.scope, unittest.equals('foo')); 444 unittest.expect(o.scope, unittest.equals('foo'));
445 } 445 }
446 buildCounterElectoralDistrict--; 446 buildCounterElectoralDistrict--;
447 } 447 }
448 448
449 buildUnnamed74() { 449 buildUnnamed408() {
450 var o = new core.List<core.String>(); 450 var o = new core.List<core.String>();
451 o.add("foo"); 451 o.add("foo");
452 o.add("foo"); 452 o.add("foo");
453 return o; 453 return o;
454 } 454 }
455 455
456 checkUnnamed74(core.List<core.String> o) { 456 checkUnnamed408(core.List<core.String> o) {
457 unittest.expect(o, unittest.hasLength(2)); 457 unittest.expect(o, unittest.hasLength(2));
458 unittest.expect(o[0], unittest.equals('foo')); 458 unittest.expect(o[0], unittest.equals('foo'));
459 unittest.expect(o[1], unittest.equals('foo')); 459 unittest.expect(o[1], unittest.equals('foo'));
460 } 460 }
461 461
462 buildUnnamed75() { 462 buildUnnamed409() {
463 var o = new core.List<core.String>(); 463 var o = new core.List<core.String>();
464 o.add("foo"); 464 o.add("foo");
465 o.add("foo"); 465 o.add("foo");
466 return o; 466 return o;
467 } 467 }
468 468
469 checkUnnamed75(core.List<core.String> o) { 469 checkUnnamed409(core.List<core.String> o) {
470 unittest.expect(o, unittest.hasLength(2)); 470 unittest.expect(o, unittest.hasLength(2));
471 unittest.expect(o[0], unittest.equals('foo')); 471 unittest.expect(o[0], unittest.equals('foo'));
472 unittest.expect(o[1], unittest.equals('foo')); 472 unittest.expect(o[1], unittest.equals('foo'));
473 } 473 }
474 474
475 core.int buildCounterGeographicDivision = 0; 475 core.int buildCounterGeographicDivision = 0;
476 buildGeographicDivision() { 476 buildGeographicDivision() {
477 var o = new api.GeographicDivision(); 477 var o = new api.GeographicDivision();
478 buildCounterGeographicDivision++; 478 buildCounterGeographicDivision++;
479 if (buildCounterGeographicDivision < 3) { 479 if (buildCounterGeographicDivision < 3) {
480 o.alsoKnownAs = buildUnnamed74(); 480 o.alsoKnownAs = buildUnnamed408();
481 o.name = "foo"; 481 o.name = "foo";
482 o.officeIds = buildUnnamed75(); 482 o.officeIds = buildUnnamed409();
483 o.scope = "foo"; 483 o.scope = "foo";
484 } 484 }
485 buildCounterGeographicDivision--; 485 buildCounterGeographicDivision--;
486 return o; 486 return o;
487 } 487 }
488 488
489 checkGeographicDivision(api.GeographicDivision o) { 489 checkGeographicDivision(api.GeographicDivision o) {
490 buildCounterGeographicDivision++; 490 buildCounterGeographicDivision++;
491 if (buildCounterGeographicDivision < 3) { 491 if (buildCounterGeographicDivision < 3) {
492 checkUnnamed74(o.alsoKnownAs); 492 checkUnnamed408(o.alsoKnownAs);
493 unittest.expect(o.name, unittest.equals('foo')); 493 unittest.expect(o.name, unittest.equals('foo'));
494 checkUnnamed75(o.officeIds); 494 checkUnnamed409(o.officeIds);
495 unittest.expect(o.scope, unittest.equals('foo')); 495 unittest.expect(o.scope, unittest.equals('foo'));
496 } 496 }
497 buildCounterGeographicDivision--; 497 buildCounterGeographicDivision--;
498 } 498 }
499 499
500 buildUnnamed76() { 500 buildUnnamed410() {
501 var o = new core.List<core.String>(); 501 var o = new core.List<core.String>();
502 o.add("foo"); 502 o.add("foo");
503 o.add("foo"); 503 o.add("foo");
504 return o; 504 return o;
505 } 505 }
506 506
507 checkUnnamed76(core.List<core.String> o) { 507 checkUnnamed410(core.List<core.String> o) {
508 unittest.expect(o, unittest.hasLength(2)); 508 unittest.expect(o, unittest.hasLength(2));
509 unittest.expect(o[0], unittest.equals('foo')); 509 unittest.expect(o[0], unittest.equals('foo'));
510 unittest.expect(o[1], unittest.equals('foo')); 510 unittest.expect(o[1], unittest.equals('foo'));
511 } 511 }
512 512
513 buildUnnamed77() { 513 buildUnnamed411() {
514 var o = new core.List<api.Source>(); 514 var o = new core.List<api.Source>();
515 o.add(buildSource()); 515 o.add(buildSource());
516 o.add(buildSource()); 516 o.add(buildSource());
517 return o; 517 return o;
518 } 518 }
519 519
520 checkUnnamed77(core.List<api.Source> o) { 520 checkUnnamed411(core.List<api.Source> o) {
521 unittest.expect(o, unittest.hasLength(2)); 521 unittest.expect(o, unittest.hasLength(2));
522 checkSource(o[0]); 522 checkSource(o[0]);
523 checkSource(o[1]); 523 checkSource(o[1]);
524 } 524 }
525 525
526 core.int buildCounterOffice = 0; 526 core.int buildCounterOffice = 0;
527 buildOffice() { 527 buildOffice() {
528 var o = new api.Office(); 528 var o = new api.Office();
529 buildCounterOffice++; 529 buildCounterOffice++;
530 if (buildCounterOffice < 3) { 530 if (buildCounterOffice < 3) {
531 o.divisionId = "foo"; 531 o.divisionId = "foo";
532 o.level = "foo"; 532 o.level = "foo";
533 o.name = "foo"; 533 o.name = "foo";
534 o.officialIds = buildUnnamed76(); 534 o.officialIds = buildUnnamed410();
535 o.sources = buildUnnamed77(); 535 o.sources = buildUnnamed411();
536 } 536 }
537 buildCounterOffice--; 537 buildCounterOffice--;
538 return o; 538 return o;
539 } 539 }
540 540
541 checkOffice(api.Office o) { 541 checkOffice(api.Office o) {
542 buildCounterOffice++; 542 buildCounterOffice++;
543 if (buildCounterOffice < 3) { 543 if (buildCounterOffice < 3) {
544 unittest.expect(o.divisionId, unittest.equals('foo')); 544 unittest.expect(o.divisionId, unittest.equals('foo'));
545 unittest.expect(o.level, unittest.equals('foo')); 545 unittest.expect(o.level, unittest.equals('foo'));
546 unittest.expect(o.name, unittest.equals('foo')); 546 unittest.expect(o.name, unittest.equals('foo'));
547 checkUnnamed76(o.officialIds); 547 checkUnnamed410(o.officialIds);
548 checkUnnamed77(o.sources); 548 checkUnnamed411(o.sources);
549 } 549 }
550 buildCounterOffice--; 550 buildCounterOffice--;
551 } 551 }
552 552
553 buildUnnamed78() { 553 buildUnnamed412() {
554 var o = new core.List<api.SimpleAddressType>(); 554 var o = new core.List<api.SimpleAddressType>();
555 o.add(buildSimpleAddressType()); 555 o.add(buildSimpleAddressType());
556 o.add(buildSimpleAddressType()); 556 o.add(buildSimpleAddressType());
557 return o; 557 return o;
558 } 558 }
559 559
560 checkUnnamed78(core.List<api.SimpleAddressType> o) { 560 checkUnnamed412(core.List<api.SimpleAddressType> o) {
561 unittest.expect(o, unittest.hasLength(2)); 561 unittest.expect(o, unittest.hasLength(2));
562 checkSimpleAddressType(o[0]); 562 checkSimpleAddressType(o[0]);
563 checkSimpleAddressType(o[1]); 563 checkSimpleAddressType(o[1]);
564 } 564 }
565 565
566 buildUnnamed79() { 566 buildUnnamed413() {
567 var o = new core.List<api.Channel>(); 567 var o = new core.List<api.Channel>();
568 o.add(buildChannel()); 568 o.add(buildChannel());
569 o.add(buildChannel()); 569 o.add(buildChannel());
570 return o; 570 return o;
571 } 571 }
572 572
573 checkUnnamed79(core.List<api.Channel> o) { 573 checkUnnamed413(core.List<api.Channel> o) {
574 unittest.expect(o, unittest.hasLength(2)); 574 unittest.expect(o, unittest.hasLength(2));
575 checkChannel(o[0]); 575 checkChannel(o[0]);
576 checkChannel(o[1]); 576 checkChannel(o[1]);
577 } 577 }
578 578
579 buildUnnamed80() { 579 buildUnnamed414() {
580 var o = new core.List<core.String>(); 580 var o = new core.List<core.String>();
581 o.add("foo"); 581 o.add("foo");
582 o.add("foo"); 582 o.add("foo");
583 return o; 583 return o;
584 } 584 }
585 585
586 checkUnnamed80(core.List<core.String> o) { 586 checkUnnamed414(core.List<core.String> o) {
587 unittest.expect(o, unittest.hasLength(2)); 587 unittest.expect(o, unittest.hasLength(2));
588 unittest.expect(o[0], unittest.equals('foo')); 588 unittest.expect(o[0], unittest.equals('foo'));
589 unittest.expect(o[1], unittest.equals('foo')); 589 unittest.expect(o[1], unittest.equals('foo'));
590 } 590 }
591 591
592 buildUnnamed81() { 592 buildUnnamed415() {
593 var o = new core.List<core.String>(); 593 var o = new core.List<core.String>();
594 o.add("foo"); 594 o.add("foo");
595 o.add("foo"); 595 o.add("foo");
596 return o; 596 return o;
597 } 597 }
598 598
599 checkUnnamed81(core.List<core.String> o) { 599 checkUnnamed415(core.List<core.String> o) {
600 unittest.expect(o, unittest.hasLength(2)); 600 unittest.expect(o, unittest.hasLength(2));
601 unittest.expect(o[0], unittest.equals('foo')); 601 unittest.expect(o[0], unittest.equals('foo'));
602 unittest.expect(o[1], unittest.equals('foo')); 602 unittest.expect(o[1], unittest.equals('foo'));
603 } 603 }
604 604
605 buildUnnamed82() { 605 buildUnnamed416() {
606 var o = new core.List<core.String>(); 606 var o = new core.List<core.String>();
607 o.add("foo"); 607 o.add("foo");
608 o.add("foo"); 608 o.add("foo");
609 return o; 609 return o;
610 } 610 }
611 611
612 checkUnnamed82(core.List<core.String> o) { 612 checkUnnamed416(core.List<core.String> o) {
613 unittest.expect(o, unittest.hasLength(2)); 613 unittest.expect(o, unittest.hasLength(2));
614 unittest.expect(o[0], unittest.equals('foo')); 614 unittest.expect(o[0], unittest.equals('foo'));
615 unittest.expect(o[1], unittest.equals('foo')); 615 unittest.expect(o[1], unittest.equals('foo'));
616 } 616 }
617 617
618 core.int buildCounterOfficial = 0; 618 core.int buildCounterOfficial = 0;
619 buildOfficial() { 619 buildOfficial() {
620 var o = new api.Official(); 620 var o = new api.Official();
621 buildCounterOfficial++; 621 buildCounterOfficial++;
622 if (buildCounterOfficial < 3) { 622 if (buildCounterOfficial < 3) {
623 o.address = buildUnnamed78(); 623 o.address = buildUnnamed412();
624 o.channels = buildUnnamed79(); 624 o.channels = buildUnnamed413();
625 o.emails = buildUnnamed80(); 625 o.emails = buildUnnamed414();
626 o.name = "foo"; 626 o.name = "foo";
627 o.party = "foo"; 627 o.party = "foo";
628 o.phones = buildUnnamed81(); 628 o.phones = buildUnnamed415();
629 o.photoUrl = "foo"; 629 o.photoUrl = "foo";
630 o.urls = buildUnnamed82(); 630 o.urls = buildUnnamed416();
631 } 631 }
632 buildCounterOfficial--; 632 buildCounterOfficial--;
633 return o; 633 return o;
634 } 634 }
635 635
636 checkOfficial(api.Official o) { 636 checkOfficial(api.Official o) {
637 buildCounterOfficial++; 637 buildCounterOfficial++;
638 if (buildCounterOfficial < 3) { 638 if (buildCounterOfficial < 3) {
639 checkUnnamed78(o.address); 639 checkUnnamed412(o.address);
640 checkUnnamed79(o.channels); 640 checkUnnamed413(o.channels);
641 checkUnnamed80(o.emails); 641 checkUnnamed414(o.emails);
642 unittest.expect(o.name, unittest.equals('foo')); 642 unittest.expect(o.name, unittest.equals('foo'));
643 unittest.expect(o.party, unittest.equals('foo')); 643 unittest.expect(o.party, unittest.equals('foo'));
644 checkUnnamed81(o.phones); 644 checkUnnamed415(o.phones);
645 unittest.expect(o.photoUrl, unittest.equals('foo')); 645 unittest.expect(o.photoUrl, unittest.equals('foo'));
646 checkUnnamed82(o.urls); 646 checkUnnamed416(o.urls);
647 } 647 }
648 buildCounterOfficial--; 648 buildCounterOfficial--;
649 } 649 }
650 650
651 buildUnnamed83() { 651 buildUnnamed417() {
652 var o = new core.List<api.Source>(); 652 var o = new core.List<api.Source>();
653 o.add(buildSource()); 653 o.add(buildSource());
654 o.add(buildSource()); 654 o.add(buildSource());
655 return o; 655 return o;
656 } 656 }
657 657
658 checkUnnamed83(core.List<api.Source> o) { 658 checkUnnamed417(core.List<api.Source> o) {
659 unittest.expect(o, unittest.hasLength(2)); 659 unittest.expect(o, unittest.hasLength(2));
660 checkSource(o[0]); 660 checkSource(o[0]);
661 checkSource(o[1]); 661 checkSource(o[1]);
662 } 662 }
663 663
664 core.int buildCounterPollingLocation = 0; 664 core.int buildCounterPollingLocation = 0;
665 buildPollingLocation() { 665 buildPollingLocation() {
666 var o = new api.PollingLocation(); 666 var o = new api.PollingLocation();
667 buildCounterPollingLocation++; 667 buildCounterPollingLocation++;
668 if (buildCounterPollingLocation < 3) { 668 if (buildCounterPollingLocation < 3) {
669 o.address = buildSimpleAddressType(); 669 o.address = buildSimpleAddressType();
670 o.endDate = "foo"; 670 o.endDate = "foo";
671 o.id = "foo"; 671 o.id = "foo";
672 o.name = "foo"; 672 o.name = "foo";
673 o.notes = "foo"; 673 o.notes = "foo";
674 o.pollingHours = "foo"; 674 o.pollingHours = "foo";
675 o.sources = buildUnnamed83(); 675 o.sources = buildUnnamed417();
676 o.startDate = "foo"; 676 o.startDate = "foo";
677 o.voterServices = "foo"; 677 o.voterServices = "foo";
678 } 678 }
679 buildCounterPollingLocation--; 679 buildCounterPollingLocation--;
680 return o; 680 return o;
681 } 681 }
682 682
683 checkPollingLocation(api.PollingLocation o) { 683 checkPollingLocation(api.PollingLocation o) {
684 buildCounterPollingLocation++; 684 buildCounterPollingLocation++;
685 if (buildCounterPollingLocation < 3) { 685 if (buildCounterPollingLocation < 3) {
686 checkSimpleAddressType(o.address); 686 checkSimpleAddressType(o.address);
687 unittest.expect(o.endDate, unittest.equals('foo')); 687 unittest.expect(o.endDate, unittest.equals('foo'));
688 unittest.expect(o.id, unittest.equals('foo')); 688 unittest.expect(o.id, unittest.equals('foo'));
689 unittest.expect(o.name, unittest.equals('foo')); 689 unittest.expect(o.name, unittest.equals('foo'));
690 unittest.expect(o.notes, unittest.equals('foo')); 690 unittest.expect(o.notes, unittest.equals('foo'));
691 unittest.expect(o.pollingHours, unittest.equals('foo')); 691 unittest.expect(o.pollingHours, unittest.equals('foo'));
692 checkUnnamed83(o.sources); 692 checkUnnamed417(o.sources);
693 unittest.expect(o.startDate, unittest.equals('foo')); 693 unittest.expect(o.startDate, unittest.equals('foo'));
694 unittest.expect(o.voterServices, unittest.equals('foo')); 694 unittest.expect(o.voterServices, unittest.equals('foo'));
695 } 695 }
696 buildCounterPollingLocation--; 696 buildCounterPollingLocation--;
697 } 697 }
698 698
699 core.int buildCounterRepresentativeInfoRequest = 0; 699 core.int buildCounterRepresentativeInfoRequest = 0;
700 buildRepresentativeInfoRequest() { 700 buildRepresentativeInfoRequest() {
701 var o = new api.RepresentativeInfoRequest(); 701 var o = new api.RepresentativeInfoRequest();
702 buildCounterRepresentativeInfoRequest++; 702 buildCounterRepresentativeInfoRequest++;
703 if (buildCounterRepresentativeInfoRequest < 3) { 703 if (buildCounterRepresentativeInfoRequest < 3) {
704 o.address = "foo"; 704 o.address = "foo";
705 } 705 }
706 buildCounterRepresentativeInfoRequest--; 706 buildCounterRepresentativeInfoRequest--;
707 return o; 707 return o;
708 } 708 }
709 709
710 checkRepresentativeInfoRequest(api.RepresentativeInfoRequest o) { 710 checkRepresentativeInfoRequest(api.RepresentativeInfoRequest o) {
711 buildCounterRepresentativeInfoRequest++; 711 buildCounterRepresentativeInfoRequest++;
712 if (buildCounterRepresentativeInfoRequest < 3) { 712 if (buildCounterRepresentativeInfoRequest < 3) {
713 unittest.expect(o.address, unittest.equals('foo')); 713 unittest.expect(o.address, unittest.equals('foo'));
714 } 714 }
715 buildCounterRepresentativeInfoRequest--; 715 buildCounterRepresentativeInfoRequest--;
716 } 716 }
717 717
718 buildUnnamed84() { 718 buildUnnamed418() {
719 var o = new core.Map<core.String, api.GeographicDivision>(); 719 var o = new core.Map<core.String, api.GeographicDivision>();
720 o["x"] = buildGeographicDivision(); 720 o["x"] = buildGeographicDivision();
721 o["y"] = buildGeographicDivision(); 721 o["y"] = buildGeographicDivision();
722 return o; 722 return o;
723 } 723 }
724 724
725 checkUnnamed84(core.Map<core.String, api.GeographicDivision> o) { 725 checkUnnamed418(core.Map<core.String, api.GeographicDivision> o) {
726 unittest.expect(o, unittest.hasLength(2)); 726 unittest.expect(o, unittest.hasLength(2));
727 checkGeographicDivision(o["x"]); 727 checkGeographicDivision(o["x"]);
728 checkGeographicDivision(o["y"]); 728 checkGeographicDivision(o["y"]);
729 } 729 }
730 730
731 buildUnnamed85() { 731 buildUnnamed419() {
732 var o = new core.Map<core.String, api.Office>(); 732 var o = new core.Map<core.String, api.Office>();
733 o["x"] = buildOffice(); 733 o["x"] = buildOffice();
734 o["y"] = buildOffice(); 734 o["y"] = buildOffice();
735 return o; 735 return o;
736 } 736 }
737 737
738 checkUnnamed85(core.Map<core.String, api.Office> o) { 738 checkUnnamed419(core.Map<core.String, api.Office> o) {
739 unittest.expect(o, unittest.hasLength(2)); 739 unittest.expect(o, unittest.hasLength(2));
740 checkOffice(o["x"]); 740 checkOffice(o["x"]);
741 checkOffice(o["y"]); 741 checkOffice(o["y"]);
742 } 742 }
743 743
744 buildUnnamed86() { 744 buildUnnamed420() {
745 var o = new core.Map<core.String, api.Official>(); 745 var o = new core.Map<core.String, api.Official>();
746 o["x"] = buildOfficial(); 746 o["x"] = buildOfficial();
747 o["y"] = buildOfficial(); 747 o["y"] = buildOfficial();
748 return o; 748 return o;
749 } 749 }
750 750
751 checkUnnamed86(core.Map<core.String, api.Official> o) { 751 checkUnnamed420(core.Map<core.String, api.Official> o) {
752 unittest.expect(o, unittest.hasLength(2)); 752 unittest.expect(o, unittest.hasLength(2));
753 checkOfficial(o["x"]); 753 checkOfficial(o["x"]);
754 checkOfficial(o["y"]); 754 checkOfficial(o["y"]);
755 } 755 }
756 756
757 core.int buildCounterRepresentativeInfoResponse = 0; 757 core.int buildCounterRepresentativeInfoResponse = 0;
758 buildRepresentativeInfoResponse() { 758 buildRepresentativeInfoResponse() {
759 var o = new api.RepresentativeInfoResponse(); 759 var o = new api.RepresentativeInfoResponse();
760 buildCounterRepresentativeInfoResponse++; 760 buildCounterRepresentativeInfoResponse++;
761 if (buildCounterRepresentativeInfoResponse < 3) { 761 if (buildCounterRepresentativeInfoResponse < 3) {
762 o.divisions = buildUnnamed84(); 762 o.divisions = buildUnnamed418();
763 o.kind = "foo"; 763 o.kind = "foo";
764 o.normalizedInput = buildSimpleAddressType(); 764 o.normalizedInput = buildSimpleAddressType();
765 o.offices = buildUnnamed85(); 765 o.offices = buildUnnamed419();
766 o.officials = buildUnnamed86(); 766 o.officials = buildUnnamed420();
767 o.status = "foo"; 767 o.status = "foo";
768 } 768 }
769 buildCounterRepresentativeInfoResponse--; 769 buildCounterRepresentativeInfoResponse--;
770 return o; 770 return o;
771 } 771 }
772 772
773 checkRepresentativeInfoResponse(api.RepresentativeInfoResponse o) { 773 checkRepresentativeInfoResponse(api.RepresentativeInfoResponse o) {
774 buildCounterRepresentativeInfoResponse++; 774 buildCounterRepresentativeInfoResponse++;
775 if (buildCounterRepresentativeInfoResponse < 3) { 775 if (buildCounterRepresentativeInfoResponse < 3) {
776 checkUnnamed84(o.divisions); 776 checkUnnamed418(o.divisions);
777 unittest.expect(o.kind, unittest.equals('foo')); 777 unittest.expect(o.kind, unittest.equals('foo'));
778 checkSimpleAddressType(o.normalizedInput); 778 checkSimpleAddressType(o.normalizedInput);
779 checkUnnamed85(o.offices); 779 checkUnnamed419(o.offices);
780 checkUnnamed86(o.officials); 780 checkUnnamed420(o.officials);
781 unittest.expect(o.status, unittest.equals('foo')); 781 unittest.expect(o.status, unittest.equals('foo'));
782 } 782 }
783 buildCounterRepresentativeInfoResponse--; 783 buildCounterRepresentativeInfoResponse--;
784 } 784 }
785 785
786 core.int buildCounterSimpleAddressType = 0; 786 core.int buildCounterSimpleAddressType = 0;
787 buildSimpleAddressType() { 787 buildSimpleAddressType() {
788 var o = new api.SimpleAddressType(); 788 var o = new api.SimpleAddressType();
789 buildCounterSimpleAddressType++; 789 buildCounterSimpleAddressType++;
790 if (buildCounterSimpleAddressType < 3) { 790 if (buildCounterSimpleAddressType < 3) {
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
847 } 847 }
848 848
849 checkVoterInfoRequest(api.VoterInfoRequest o) { 849 checkVoterInfoRequest(api.VoterInfoRequest o) {
850 buildCounterVoterInfoRequest++; 850 buildCounterVoterInfoRequest++;
851 if (buildCounterVoterInfoRequest < 3) { 851 if (buildCounterVoterInfoRequest < 3) {
852 unittest.expect(o.address, unittest.equals('foo')); 852 unittest.expect(o.address, unittest.equals('foo'));
853 } 853 }
854 buildCounterVoterInfoRequest--; 854 buildCounterVoterInfoRequest--;
855 } 855 }
856 856
857 buildUnnamed87() { 857 buildUnnamed421() {
858 var o = new core.List<api.Contest>(); 858 var o = new core.List<api.Contest>();
859 o.add(buildContest()); 859 o.add(buildContest());
860 o.add(buildContest()); 860 o.add(buildContest());
861 return o; 861 return o;
862 } 862 }
863 863
864 checkUnnamed87(core.List<api.Contest> o) { 864 checkUnnamed421(core.List<api.Contest> o) {
865 unittest.expect(o, unittest.hasLength(2)); 865 unittest.expect(o, unittest.hasLength(2));
866 checkContest(o[0]); 866 checkContest(o[0]);
867 checkContest(o[1]); 867 checkContest(o[1]);
868 } 868 }
869 869
870 buildUnnamed88() { 870 buildUnnamed422() {
871 var o = new core.List<api.PollingLocation>(); 871 var o = new core.List<api.PollingLocation>();
872 o.add(buildPollingLocation()); 872 o.add(buildPollingLocation());
873 o.add(buildPollingLocation()); 873 o.add(buildPollingLocation());
874 return o; 874 return o;
875 } 875 }
876 876
877 checkUnnamed88(core.List<api.PollingLocation> o) { 877 checkUnnamed422(core.List<api.PollingLocation> o) {
878 unittest.expect(o, unittest.hasLength(2)); 878 unittest.expect(o, unittest.hasLength(2));
879 checkPollingLocation(o[0]); 879 checkPollingLocation(o[0]);
880 checkPollingLocation(o[1]); 880 checkPollingLocation(o[1]);
881 } 881 }
882 882
883 buildUnnamed89() { 883 buildUnnamed423() {
884 var o = new core.List<api.PollingLocation>(); 884 var o = new core.List<api.PollingLocation>();
885 o.add(buildPollingLocation()); 885 o.add(buildPollingLocation());
886 o.add(buildPollingLocation()); 886 o.add(buildPollingLocation());
887 return o; 887 return o;
888 } 888 }
889 889
890 checkUnnamed89(core.List<api.PollingLocation> o) { 890 checkUnnamed423(core.List<api.PollingLocation> o) {
891 unittest.expect(o, unittest.hasLength(2)); 891 unittest.expect(o, unittest.hasLength(2));
892 checkPollingLocation(o[0]); 892 checkPollingLocation(o[0]);
893 checkPollingLocation(o[1]); 893 checkPollingLocation(o[1]);
894 } 894 }
895 895
896 buildUnnamed90() { 896 buildUnnamed424() {
897 var o = new core.List<api.PollingLocation>(); 897 var o = new core.List<api.PollingLocation>();
898 o.add(buildPollingLocation()); 898 o.add(buildPollingLocation());
899 o.add(buildPollingLocation()); 899 o.add(buildPollingLocation());
900 return o; 900 return o;
901 } 901 }
902 902
903 checkUnnamed90(core.List<api.PollingLocation> o) { 903 checkUnnamed424(core.List<api.PollingLocation> o) {
904 unittest.expect(o, unittest.hasLength(2)); 904 unittest.expect(o, unittest.hasLength(2));
905 checkPollingLocation(o[0]); 905 checkPollingLocation(o[0]);
906 checkPollingLocation(o[1]); 906 checkPollingLocation(o[1]);
907 } 907 }
908 908
909 buildUnnamed91() { 909 buildUnnamed425() {
910 var o = new core.List<api.AdministrationRegion>(); 910 var o = new core.List<api.AdministrationRegion>();
911 o.add(buildAdministrationRegion()); 911 o.add(buildAdministrationRegion());
912 o.add(buildAdministrationRegion()); 912 o.add(buildAdministrationRegion());
913 return o; 913 return o;
914 } 914 }
915 915
916 checkUnnamed91(core.List<api.AdministrationRegion> o) { 916 checkUnnamed425(core.List<api.AdministrationRegion> o) {
917 unittest.expect(o, unittest.hasLength(2)); 917 unittest.expect(o, unittest.hasLength(2));
918 checkAdministrationRegion(o[0]); 918 checkAdministrationRegion(o[0]);
919 checkAdministrationRegion(o[1]); 919 checkAdministrationRegion(o[1]);
920 } 920 }
921 921
922 core.int buildCounterVoterInfoResponse = 0; 922 core.int buildCounterVoterInfoResponse = 0;
923 buildVoterInfoResponse() { 923 buildVoterInfoResponse() {
924 var o = new api.VoterInfoResponse(); 924 var o = new api.VoterInfoResponse();
925 buildCounterVoterInfoResponse++; 925 buildCounterVoterInfoResponse++;
926 if (buildCounterVoterInfoResponse < 3) { 926 if (buildCounterVoterInfoResponse < 3) {
927 o.contests = buildUnnamed87(); 927 o.contests = buildUnnamed421();
928 o.dropOffLocations = buildUnnamed88(); 928 o.dropOffLocations = buildUnnamed422();
929 o.earlyVoteSites = buildUnnamed89(); 929 o.earlyVoteSites = buildUnnamed423();
930 o.election = buildElection(); 930 o.election = buildElection();
931 o.kind = "foo"; 931 o.kind = "foo";
932 o.normalizedInput = buildSimpleAddressType(); 932 o.normalizedInput = buildSimpleAddressType();
933 o.pollingLocations = buildUnnamed90(); 933 o.pollingLocations = buildUnnamed424();
934 o.precinctId = "foo"; 934 o.precinctId = "foo";
935 o.state = buildUnnamed91(); 935 o.state = buildUnnamed425();
936 o.status = "foo"; 936 o.status = "foo";
937 } 937 }
938 buildCounterVoterInfoResponse--; 938 buildCounterVoterInfoResponse--;
939 return o; 939 return o;
940 } 940 }
941 941
942 checkVoterInfoResponse(api.VoterInfoResponse o) { 942 checkVoterInfoResponse(api.VoterInfoResponse o) {
943 buildCounterVoterInfoResponse++; 943 buildCounterVoterInfoResponse++;
944 if (buildCounterVoterInfoResponse < 3) { 944 if (buildCounterVoterInfoResponse < 3) {
945 checkUnnamed87(o.contests); 945 checkUnnamed421(o.contests);
946 checkUnnamed88(o.dropOffLocations); 946 checkUnnamed422(o.dropOffLocations);
947 checkUnnamed89(o.earlyVoteSites); 947 checkUnnamed423(o.earlyVoteSites);
948 checkElection(o.election); 948 checkElection(o.election);
949 unittest.expect(o.kind, unittest.equals('foo')); 949 unittest.expect(o.kind, unittest.equals('foo'));
950 checkSimpleAddressType(o.normalizedInput); 950 checkSimpleAddressType(o.normalizedInput);
951 checkUnnamed90(o.pollingLocations); 951 checkUnnamed424(o.pollingLocations);
952 unittest.expect(o.precinctId, unittest.equals('foo')); 952 unittest.expect(o.precinctId, unittest.equals('foo'));
953 checkUnnamed91(o.state); 953 checkUnnamed425(o.state);
954 unittest.expect(o.status, unittest.equals('foo')); 954 unittest.expect(o.status, unittest.equals('foo'));
955 } 955 }
956 buildCounterVoterInfoResponse--; 956 buildCounterVoterInfoResponse--;
957 } 957 }
958 958
959 959
960 main() { 960 main() {
961 unittest.group("obj-schema-AdministrationRegion", () { 961 unittest.group("obj-schema-AdministrationRegion", () {
962 unittest.test("to-json--from-json", () { 962 unittest.test("to-json--from-json", () {
963 var o = buildAdministrationRegion(); 963 var o = buildAdministrationRegion();
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
1360 res.representativeInfoQuery(arg_request, includeOffices: arg_includeOffice s, ocdId: arg_ocdId, recursive: arg_recursive).then(unittest.expectAsync(((api.R epresentativeInfoResponse response) { 1360 res.representativeInfoQuery(arg_request, includeOffices: arg_includeOffice s, ocdId: arg_ocdId, recursive: arg_recursive).then(unittest.expectAsync(((api.R epresentativeInfoResponse response) {
1361 checkRepresentativeInfoResponse(response); 1361 checkRepresentativeInfoResponse(response);
1362 }))); 1362 })));
1363 }); 1363 });
1364 1364
1365 }); 1365 });
1366 1366
1367 1367
1368 } 1368 }
1369 1369
OLDNEW
« no previous file with comments | « generated/googleapis/test/civicinfo/us_v1_test.dart ('k') | generated/googleapis/test/civicinfo/v2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698