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

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

Issue 1797933002: Api-roll 33: 2016-03-14 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Added resources/*/CHANGELOG.md, addresssed comments Created 4 years, 9 months 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.v2.test; 1 library googleapis.civicinfo.v2.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;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 } 44 }
45 } 45 }
46 } 46 }
47 47
48 http.StreamedResponse stringResponse( 48 http.StreamedResponse stringResponse(
49 core.int status, core.Map headers, core.String body) { 49 core.int status, core.Map headers, core.String body) {
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]);
51 return new http.StreamedResponse(stream, status, headers: headers); 51 return new http.StreamedResponse(stream, status, headers: headers);
52 } 52 }
53 53
54 buildUnnamed2200() { 54 buildUnnamed2521() {
55 var o = new core.List<api.Source>(); 55 var o = new core.List<api.Source>();
56 o.add(buildSource()); 56 o.add(buildSource());
57 o.add(buildSource()); 57 o.add(buildSource());
58 return o; 58 return o;
59 } 59 }
60 60
61 checkUnnamed2200(core.List<api.Source> o) { 61 checkUnnamed2521(core.List<api.Source> o) {
62 unittest.expect(o, unittest.hasLength(2)); 62 unittest.expect(o, unittest.hasLength(2));
63 checkSource(o[0]); 63 checkSource(o[0]);
64 checkSource(o[1]); 64 checkSource(o[1]);
65 } 65 }
66 66
67 core.int buildCounterAdministrationRegion = 0; 67 core.int buildCounterAdministrationRegion = 0;
68 buildAdministrationRegion() { 68 buildAdministrationRegion() {
69 var o = new api.AdministrationRegion(); 69 var o = new api.AdministrationRegion();
70 buildCounterAdministrationRegion++; 70 buildCounterAdministrationRegion++;
71 if (buildCounterAdministrationRegion < 3) { 71 if (buildCounterAdministrationRegion < 3) {
72 o.electionAdministrationBody = buildAdministrativeBody(); 72 o.electionAdministrationBody = buildAdministrativeBody();
73 o.id = "foo"; 73 o.id = "foo";
74 o.localJurisdiction = buildAdministrationRegion(); 74 o.localJurisdiction = buildAdministrationRegion();
75 o.name = "foo"; 75 o.name = "foo";
76 o.sources = buildUnnamed2200(); 76 o.sources = buildUnnamed2521();
77 } 77 }
78 buildCounterAdministrationRegion--; 78 buildCounterAdministrationRegion--;
79 return o; 79 return o;
80 } 80 }
81 81
82 checkAdministrationRegion(api.AdministrationRegion o) { 82 checkAdministrationRegion(api.AdministrationRegion o) {
83 buildCounterAdministrationRegion++; 83 buildCounterAdministrationRegion++;
84 if (buildCounterAdministrationRegion < 3) { 84 if (buildCounterAdministrationRegion < 3) {
85 checkAdministrativeBody(o.electionAdministrationBody); 85 checkAdministrativeBody(o.electionAdministrationBody);
86 unittest.expect(o.id, unittest.equals('foo')); 86 unittest.expect(o.id, unittest.equals('foo'));
87 checkAdministrationRegion(o.localJurisdiction); 87 checkAdministrationRegion(o.localJurisdiction);
88 unittest.expect(o.name, unittest.equals('foo')); 88 unittest.expect(o.name, unittest.equals('foo'));
89 checkUnnamed2200(o.sources); 89 checkUnnamed2521(o.sources);
90 } 90 }
91 buildCounterAdministrationRegion--; 91 buildCounterAdministrationRegion--;
92 } 92 }
93 93
94 buildUnnamed2201() { 94 buildUnnamed2522() {
95 var o = new core.List<api.ElectionOfficial>(); 95 var o = new core.List<api.ElectionOfficial>();
96 o.add(buildElectionOfficial()); 96 o.add(buildElectionOfficial());
97 o.add(buildElectionOfficial()); 97 o.add(buildElectionOfficial());
98 return o; 98 return o;
99 } 99 }
100 100
101 checkUnnamed2201(core.List<api.ElectionOfficial> o) { 101 checkUnnamed2522(core.List<api.ElectionOfficial> o) {
102 unittest.expect(o, unittest.hasLength(2)); 102 unittest.expect(o, unittest.hasLength(2));
103 checkElectionOfficial(o[0]); 103 checkElectionOfficial(o[0]);
104 checkElectionOfficial(o[1]); 104 checkElectionOfficial(o[1]);
105 } 105 }
106 106
107 buildUnnamed2202() { 107 buildUnnamed2523() {
108 var o = new core.List<core.String>(); 108 var o = new core.List<core.String>();
109 o.add("foo"); 109 o.add("foo");
110 o.add("foo"); 110 o.add("foo");
111 return o; 111 return o;
112 } 112 }
113 113
114 checkUnnamed2202(core.List<core.String> o) { 114 checkUnnamed2523(core.List<core.String> o) {
115 unittest.expect(o, unittest.hasLength(2)); 115 unittest.expect(o, unittest.hasLength(2));
116 unittest.expect(o[0], unittest.equals('foo')); 116 unittest.expect(o[0], unittest.equals('foo'));
117 unittest.expect(o[1], unittest.equals('foo')); 117 unittest.expect(o[1], unittest.equals('foo'));
118 } 118 }
119 119
120 core.int buildCounterAdministrativeBody = 0; 120 core.int buildCounterAdministrativeBody = 0;
121 buildAdministrativeBody() { 121 buildAdministrativeBody() {
122 var o = new api.AdministrativeBody(); 122 var o = new api.AdministrativeBody();
123 buildCounterAdministrativeBody++; 123 buildCounterAdministrativeBody++;
124 if (buildCounterAdministrativeBody < 3) { 124 if (buildCounterAdministrativeBody < 3) {
125 o.absenteeVotingInfoUrl = "foo"; 125 o.absenteeVotingInfoUrl = "foo";
126 o.ballotInfoUrl = "foo"; 126 o.ballotInfoUrl = "foo";
127 o.correspondenceAddress = buildSimpleAddressType(); 127 o.correspondenceAddress = buildSimpleAddressType();
128 o.electionInfoUrl = "foo"; 128 o.electionInfoUrl = "foo";
129 o.electionOfficials = buildUnnamed2201(); 129 o.electionOfficials = buildUnnamed2522();
130 o.electionRegistrationConfirmationUrl = "foo"; 130 o.electionRegistrationConfirmationUrl = "foo";
131 o.electionRegistrationUrl = "foo"; 131 o.electionRegistrationUrl = "foo";
132 o.electionRulesUrl = "foo"; 132 o.electionRulesUrl = "foo";
133 o.hoursOfOperation = "foo"; 133 o.hoursOfOperation = "foo";
134 o.name = "foo"; 134 o.name = "foo";
135 o.physicalAddress = buildSimpleAddressType(); 135 o.physicalAddress = buildSimpleAddressType();
136 o.voterServices = buildUnnamed2202(); 136 o.voterServices = buildUnnamed2523();
137 o.votingLocationFinderUrl = "foo"; 137 o.votingLocationFinderUrl = "foo";
138 } 138 }
139 buildCounterAdministrativeBody--; 139 buildCounterAdministrativeBody--;
140 return o; 140 return o;
141 } 141 }
142 142
143 checkAdministrativeBody(api.AdministrativeBody o) { 143 checkAdministrativeBody(api.AdministrativeBody o) {
144 buildCounterAdministrativeBody++; 144 buildCounterAdministrativeBody++;
145 if (buildCounterAdministrativeBody < 3) { 145 if (buildCounterAdministrativeBody < 3) {
146 unittest.expect(o.absenteeVotingInfoUrl, unittest.equals('foo')); 146 unittest.expect(o.absenteeVotingInfoUrl, unittest.equals('foo'));
147 unittest.expect(o.ballotInfoUrl, unittest.equals('foo')); 147 unittest.expect(o.ballotInfoUrl, unittest.equals('foo'));
148 checkSimpleAddressType(o.correspondenceAddress); 148 checkSimpleAddressType(o.correspondenceAddress);
149 unittest.expect(o.electionInfoUrl, unittest.equals('foo')); 149 unittest.expect(o.electionInfoUrl, unittest.equals('foo'));
150 checkUnnamed2201(o.electionOfficials); 150 checkUnnamed2522(o.electionOfficials);
151 unittest.expect(o.electionRegistrationConfirmationUrl, unittest.equals('foo' )); 151 unittest.expect(o.electionRegistrationConfirmationUrl, unittest.equals('foo' ));
152 unittest.expect(o.electionRegistrationUrl, unittest.equals('foo')); 152 unittest.expect(o.electionRegistrationUrl, unittest.equals('foo'));
153 unittest.expect(o.electionRulesUrl, unittest.equals('foo')); 153 unittest.expect(o.electionRulesUrl, unittest.equals('foo'));
154 unittest.expect(o.hoursOfOperation, unittest.equals('foo')); 154 unittest.expect(o.hoursOfOperation, unittest.equals('foo'));
155 unittest.expect(o.name, unittest.equals('foo')); 155 unittest.expect(o.name, unittest.equals('foo'));
156 checkSimpleAddressType(o.physicalAddress); 156 checkSimpleAddressType(o.physicalAddress);
157 checkUnnamed2202(o.voterServices); 157 checkUnnamed2523(o.voterServices);
158 unittest.expect(o.votingLocationFinderUrl, unittest.equals('foo')); 158 unittest.expect(o.votingLocationFinderUrl, unittest.equals('foo'));
159 } 159 }
160 buildCounterAdministrativeBody--; 160 buildCounterAdministrativeBody--;
161 } 161 }
162 162
163 buildUnnamed2203() { 163 buildUnnamed2524() {
164 var o = new core.List<api.Channel>(); 164 var o = new core.List<api.Channel>();
165 o.add(buildChannel()); 165 o.add(buildChannel());
166 o.add(buildChannel()); 166 o.add(buildChannel());
167 return o; 167 return o;
168 } 168 }
169 169
170 checkUnnamed2203(core.List<api.Channel> o) { 170 checkUnnamed2524(core.List<api.Channel> o) {
171 unittest.expect(o, unittest.hasLength(2)); 171 unittest.expect(o, unittest.hasLength(2));
172 checkChannel(o[0]); 172 checkChannel(o[0]);
173 checkChannel(o[1]); 173 checkChannel(o[1]);
174 } 174 }
175 175
176 core.int buildCounterCandidate = 0; 176 core.int buildCounterCandidate = 0;
177 buildCandidate() { 177 buildCandidate() {
178 var o = new api.Candidate(); 178 var o = new api.Candidate();
179 buildCounterCandidate++; 179 buildCounterCandidate++;
180 if (buildCounterCandidate < 3) { 180 if (buildCounterCandidate < 3) {
181 o.candidateUrl = "foo"; 181 o.candidateUrl = "foo";
182 o.channels = buildUnnamed2203(); 182 o.channels = buildUnnamed2524();
183 o.email = "foo"; 183 o.email = "foo";
184 o.name = "foo"; 184 o.name = "foo";
185 o.orderOnBallot = "foo"; 185 o.orderOnBallot = "foo";
186 o.party = "foo"; 186 o.party = "foo";
187 o.phone = "foo"; 187 o.phone = "foo";
188 o.photoUrl = "foo"; 188 o.photoUrl = "foo";
189 } 189 }
190 buildCounterCandidate--; 190 buildCounterCandidate--;
191 return o; 191 return o;
192 } 192 }
193 193
194 checkCandidate(api.Candidate o) { 194 checkCandidate(api.Candidate o) {
195 buildCounterCandidate++; 195 buildCounterCandidate++;
196 if (buildCounterCandidate < 3) { 196 if (buildCounterCandidate < 3) {
197 unittest.expect(o.candidateUrl, unittest.equals('foo')); 197 unittest.expect(o.candidateUrl, unittest.equals('foo'));
198 checkUnnamed2203(o.channels); 198 checkUnnamed2524(o.channels);
199 unittest.expect(o.email, unittest.equals('foo')); 199 unittest.expect(o.email, unittest.equals('foo'));
200 unittest.expect(o.name, unittest.equals('foo')); 200 unittest.expect(o.name, unittest.equals('foo'));
201 unittest.expect(o.orderOnBallot, unittest.equals('foo')); 201 unittest.expect(o.orderOnBallot, unittest.equals('foo'));
202 unittest.expect(o.party, unittest.equals('foo')); 202 unittest.expect(o.party, unittest.equals('foo'));
203 unittest.expect(o.phone, unittest.equals('foo')); 203 unittest.expect(o.phone, unittest.equals('foo'));
204 unittest.expect(o.photoUrl, unittest.equals('foo')); 204 unittest.expect(o.photoUrl, unittest.equals('foo'));
205 } 205 }
206 buildCounterCandidate--; 206 buildCounterCandidate--;
207 } 207 }
208 208
(...skipping 11 matching lines...) Expand all
220 220
221 checkChannel(api.Channel o) { 221 checkChannel(api.Channel o) {
222 buildCounterChannel++; 222 buildCounterChannel++;
223 if (buildCounterChannel < 3) { 223 if (buildCounterChannel < 3) {
224 unittest.expect(o.id, unittest.equals('foo')); 224 unittest.expect(o.id, unittest.equals('foo'));
225 unittest.expect(o.type, unittest.equals('foo')); 225 unittest.expect(o.type, unittest.equals('foo'));
226 } 226 }
227 buildCounterChannel--; 227 buildCounterChannel--;
228 } 228 }
229 229
230 buildUnnamed2204() { 230 buildUnnamed2525() {
231 var o = new core.List<api.Candidate>(); 231 var o = new core.List<api.Candidate>();
232 o.add(buildCandidate()); 232 o.add(buildCandidate());
233 o.add(buildCandidate()); 233 o.add(buildCandidate());
234 return o; 234 return o;
235 } 235 }
236 236
237 checkUnnamed2204(core.List<api.Candidate> o) { 237 checkUnnamed2525(core.List<api.Candidate> o) {
238 unittest.expect(o, unittest.hasLength(2)); 238 unittest.expect(o, unittest.hasLength(2));
239 checkCandidate(o[0]); 239 checkCandidate(o[0]);
240 checkCandidate(o[1]); 240 checkCandidate(o[1]);
241 } 241 }
242 242
243 buildUnnamed2205() { 243 buildUnnamed2526() {
244 var o = new core.List<core.String>(); 244 var o = new core.List<core.String>();
245 o.add("foo"); 245 o.add("foo");
246 o.add("foo"); 246 o.add("foo");
247 return o; 247 return o;
248 } 248 }
249 249
250 checkUnnamed2205(core.List<core.String> o) { 250 checkUnnamed2526(core.List<core.String> o) {
251 unittest.expect(o, unittest.hasLength(2)); 251 unittest.expect(o, unittest.hasLength(2));
252 unittest.expect(o[0], unittest.equals('foo')); 252 unittest.expect(o[0], unittest.equals('foo'));
253 unittest.expect(o[1], unittest.equals('foo')); 253 unittest.expect(o[1], unittest.equals('foo'));
254 } 254 }
255 255
256 buildUnnamed2206() { 256 buildUnnamed2527() {
257 var o = new core.List<core.String>(); 257 var o = new core.List<core.String>();
258 o.add("foo"); 258 o.add("foo");
259 o.add("foo"); 259 o.add("foo");
260 return o; 260 return o;
261 } 261 }
262 262
263 checkUnnamed2206(core.List<core.String> o) { 263 checkUnnamed2527(core.List<core.String> o) {
264 unittest.expect(o, unittest.hasLength(2)); 264 unittest.expect(o, unittest.hasLength(2));
265 unittest.expect(o[0], unittest.equals('foo')); 265 unittest.expect(o[0], unittest.equals('foo'));
266 unittest.expect(o[1], unittest.equals('foo')); 266 unittest.expect(o[1], unittest.equals('foo'));
267 } 267 }
268 268
269 buildUnnamed2207() { 269 buildUnnamed2528() {
270 var o = new core.List<core.String>(); 270 var o = new core.List<core.String>();
271 o.add("foo"); 271 o.add("foo");
272 o.add("foo"); 272 o.add("foo");
273 return o; 273 return o;
274 } 274 }
275 275
276 checkUnnamed2207(core.List<core.String> o) { 276 checkUnnamed2528(core.List<core.String> o) {
277 unittest.expect(o, unittest.hasLength(2)); 277 unittest.expect(o, unittest.hasLength(2));
278 unittest.expect(o[0], unittest.equals('foo')); 278 unittest.expect(o[0], unittest.equals('foo'));
279 unittest.expect(o[1], unittest.equals('foo')); 279 unittest.expect(o[1], unittest.equals('foo'));
280 } 280 }
281 281
282 buildUnnamed2208() { 282 buildUnnamed2529() {
283 var o = new core.List<api.Source>(); 283 var o = new core.List<api.Source>();
284 o.add(buildSource()); 284 o.add(buildSource());
285 o.add(buildSource()); 285 o.add(buildSource());
286 return o; 286 return o;
287 } 287 }
288 288
289 checkUnnamed2208(core.List<api.Source> o) { 289 checkUnnamed2529(core.List<api.Source> o) {
290 unittest.expect(o, unittest.hasLength(2)); 290 unittest.expect(o, unittest.hasLength(2));
291 checkSource(o[0]); 291 checkSource(o[0]);
292 checkSource(o[1]); 292 checkSource(o[1]);
293 } 293 }
294 294
295 core.int buildCounterContest = 0; 295 core.int buildCounterContest = 0;
296 buildContest() { 296 buildContest() {
297 var o = new api.Contest(); 297 var o = new api.Contest();
298 buildCounterContest++; 298 buildCounterContest++;
299 if (buildCounterContest < 3) { 299 if (buildCounterContest < 3) {
300 o.ballotPlacement = "foo"; 300 o.ballotPlacement = "foo";
301 o.candidates = buildUnnamed2204(); 301 o.candidates = buildUnnamed2525();
302 o.district = buildElectoralDistrict(); 302 o.district = buildElectoralDistrict();
303 o.electorateSpecifications = "foo"; 303 o.electorateSpecifications = "foo";
304 o.id = "foo"; 304 o.id = "foo";
305 o.level = buildUnnamed2205(); 305 o.level = buildUnnamed2526();
306 o.numberElected = "foo"; 306 o.numberElected = "foo";
307 o.numberVotingFor = "foo"; 307 o.numberVotingFor = "foo";
308 o.office = "foo"; 308 o.office = "foo";
309 o.primaryParty = "foo"; 309 o.primaryParty = "foo";
310 o.referendumBallotResponses = buildUnnamed2206(); 310 o.referendumBallotResponses = buildUnnamed2527();
311 o.referendumBrief = "foo"; 311 o.referendumBrief = "foo";
312 o.referendumConStatement = "foo"; 312 o.referendumConStatement = "foo";
313 o.referendumEffectOfAbstain = "foo"; 313 o.referendumEffectOfAbstain = "foo";
314 o.referendumPassageThreshold = "foo"; 314 o.referendumPassageThreshold = "foo";
315 o.referendumProStatement = "foo"; 315 o.referendumProStatement = "foo";
316 o.referendumSubtitle = "foo"; 316 o.referendumSubtitle = "foo";
317 o.referendumText = "foo"; 317 o.referendumText = "foo";
318 o.referendumTitle = "foo"; 318 o.referendumTitle = "foo";
319 o.referendumUrl = "foo"; 319 o.referendumUrl = "foo";
320 o.roles = buildUnnamed2207(); 320 o.roles = buildUnnamed2528();
321 o.sources = buildUnnamed2208(); 321 o.sources = buildUnnamed2529();
322 o.special = "foo"; 322 o.special = "foo";
323 o.type = "foo"; 323 o.type = "foo";
324 } 324 }
325 buildCounterContest--; 325 buildCounterContest--;
326 return o; 326 return o;
327 } 327 }
328 328
329 checkContest(api.Contest o) { 329 checkContest(api.Contest o) {
330 buildCounterContest++; 330 buildCounterContest++;
331 if (buildCounterContest < 3) { 331 if (buildCounterContest < 3) {
332 unittest.expect(o.ballotPlacement, unittest.equals('foo')); 332 unittest.expect(o.ballotPlacement, unittest.equals('foo'));
333 checkUnnamed2204(o.candidates); 333 checkUnnamed2525(o.candidates);
334 checkElectoralDistrict(o.district); 334 checkElectoralDistrict(o.district);
335 unittest.expect(o.electorateSpecifications, unittest.equals('foo')); 335 unittest.expect(o.electorateSpecifications, unittest.equals('foo'));
336 unittest.expect(o.id, unittest.equals('foo')); 336 unittest.expect(o.id, unittest.equals('foo'));
337 checkUnnamed2205(o.level); 337 checkUnnamed2526(o.level);
338 unittest.expect(o.numberElected, unittest.equals('foo')); 338 unittest.expect(o.numberElected, unittest.equals('foo'));
339 unittest.expect(o.numberVotingFor, unittest.equals('foo')); 339 unittest.expect(o.numberVotingFor, unittest.equals('foo'));
340 unittest.expect(o.office, unittest.equals('foo')); 340 unittest.expect(o.office, unittest.equals('foo'));
341 unittest.expect(o.primaryParty, unittest.equals('foo')); 341 unittest.expect(o.primaryParty, unittest.equals('foo'));
342 checkUnnamed2206(o.referendumBallotResponses); 342 checkUnnamed2527(o.referendumBallotResponses);
343 unittest.expect(o.referendumBrief, unittest.equals('foo')); 343 unittest.expect(o.referendumBrief, unittest.equals('foo'));
344 unittest.expect(o.referendumConStatement, unittest.equals('foo')); 344 unittest.expect(o.referendumConStatement, unittest.equals('foo'));
345 unittest.expect(o.referendumEffectOfAbstain, unittest.equals('foo')); 345 unittest.expect(o.referendumEffectOfAbstain, unittest.equals('foo'));
346 unittest.expect(o.referendumPassageThreshold, unittest.equals('foo')); 346 unittest.expect(o.referendumPassageThreshold, unittest.equals('foo'));
347 unittest.expect(o.referendumProStatement, unittest.equals('foo')); 347 unittest.expect(o.referendumProStatement, unittest.equals('foo'));
348 unittest.expect(o.referendumSubtitle, unittest.equals('foo')); 348 unittest.expect(o.referendumSubtitle, unittest.equals('foo'));
349 unittest.expect(o.referendumText, unittest.equals('foo')); 349 unittest.expect(o.referendumText, unittest.equals('foo'));
350 unittest.expect(o.referendumTitle, unittest.equals('foo')); 350 unittest.expect(o.referendumTitle, unittest.equals('foo'));
351 unittest.expect(o.referendumUrl, unittest.equals('foo')); 351 unittest.expect(o.referendumUrl, unittest.equals('foo'));
352 checkUnnamed2207(o.roles); 352 checkUnnamed2528(o.roles);
353 checkUnnamed2208(o.sources); 353 checkUnnamed2529(o.sources);
354 unittest.expect(o.special, unittest.equals('foo')); 354 unittest.expect(o.special, unittest.equals('foo'));
355 unittest.expect(o.type, unittest.equals('foo')); 355 unittest.expect(o.type, unittest.equals('foo'));
356 } 356 }
357 buildCounterContest--; 357 buildCounterContest--;
358 } 358 }
359 359
360 buildUnnamed2209() { 360 buildUnnamed2530() {
361 var o = new core.List<api.DivisionSearchResult>(); 361 var o = new core.List<api.DivisionSearchResult>();
362 o.add(buildDivisionSearchResult()); 362 o.add(buildDivisionSearchResult());
363 o.add(buildDivisionSearchResult()); 363 o.add(buildDivisionSearchResult());
364 return o; 364 return o;
365 } 365 }
366 366
367 checkUnnamed2209(core.List<api.DivisionSearchResult> o) { 367 checkUnnamed2530(core.List<api.DivisionSearchResult> o) {
368 unittest.expect(o, unittest.hasLength(2)); 368 unittest.expect(o, unittest.hasLength(2));
369 checkDivisionSearchResult(o[0]); 369 checkDivisionSearchResult(o[0]);
370 checkDivisionSearchResult(o[1]); 370 checkDivisionSearchResult(o[1]);
371 } 371 }
372 372
373 core.int buildCounterDivisionSearchResponse = 0; 373 core.int buildCounterDivisionSearchResponse = 0;
374 buildDivisionSearchResponse() { 374 buildDivisionSearchResponse() {
375 var o = new api.DivisionSearchResponse(); 375 var o = new api.DivisionSearchResponse();
376 buildCounterDivisionSearchResponse++; 376 buildCounterDivisionSearchResponse++;
377 if (buildCounterDivisionSearchResponse < 3) { 377 if (buildCounterDivisionSearchResponse < 3) {
378 o.kind = "foo"; 378 o.kind = "foo";
379 o.results = buildUnnamed2209(); 379 o.results = buildUnnamed2530();
380 } 380 }
381 buildCounterDivisionSearchResponse--; 381 buildCounterDivisionSearchResponse--;
382 return o; 382 return o;
383 } 383 }
384 384
385 checkDivisionSearchResponse(api.DivisionSearchResponse o) { 385 checkDivisionSearchResponse(api.DivisionSearchResponse o) {
386 buildCounterDivisionSearchResponse++; 386 buildCounterDivisionSearchResponse++;
387 if (buildCounterDivisionSearchResponse < 3) { 387 if (buildCounterDivisionSearchResponse < 3) {
388 unittest.expect(o.kind, unittest.equals('foo')); 388 unittest.expect(o.kind, unittest.equals('foo'));
389 checkUnnamed2209(o.results); 389 checkUnnamed2530(o.results);
390 } 390 }
391 buildCounterDivisionSearchResponse--; 391 buildCounterDivisionSearchResponse--;
392 } 392 }
393 393
394 buildUnnamed2210() { 394 buildUnnamed2531() {
395 var o = new core.List<core.String>(); 395 var o = new core.List<core.String>();
396 o.add("foo"); 396 o.add("foo");
397 o.add("foo"); 397 o.add("foo");
398 return o; 398 return o;
399 } 399 }
400 400
401 checkUnnamed2210(core.List<core.String> o) { 401 checkUnnamed2531(core.List<core.String> o) {
402 unittest.expect(o, unittest.hasLength(2)); 402 unittest.expect(o, unittest.hasLength(2));
403 unittest.expect(o[0], unittest.equals('foo')); 403 unittest.expect(o[0], unittest.equals('foo'));
404 unittest.expect(o[1], unittest.equals('foo')); 404 unittest.expect(o[1], unittest.equals('foo'));
405 } 405 }
406 406
407 core.int buildCounterDivisionSearchResult = 0; 407 core.int buildCounterDivisionSearchResult = 0;
408 buildDivisionSearchResult() { 408 buildDivisionSearchResult() {
409 var o = new api.DivisionSearchResult(); 409 var o = new api.DivisionSearchResult();
410 buildCounterDivisionSearchResult++; 410 buildCounterDivisionSearchResult++;
411 if (buildCounterDivisionSearchResult < 3) { 411 if (buildCounterDivisionSearchResult < 3) {
412 o.aliases = buildUnnamed2210(); 412 o.aliases = buildUnnamed2531();
413 o.name = "foo"; 413 o.name = "foo";
414 o.ocdId = "foo"; 414 o.ocdId = "foo";
415 } 415 }
416 buildCounterDivisionSearchResult--; 416 buildCounterDivisionSearchResult--;
417 return o; 417 return o;
418 } 418 }
419 419
420 checkDivisionSearchResult(api.DivisionSearchResult o) { 420 checkDivisionSearchResult(api.DivisionSearchResult o) {
421 buildCounterDivisionSearchResult++; 421 buildCounterDivisionSearchResult++;
422 if (buildCounterDivisionSearchResult < 3) { 422 if (buildCounterDivisionSearchResult < 3) {
423 checkUnnamed2210(o.aliases); 423 checkUnnamed2531(o.aliases);
424 unittest.expect(o.name, unittest.equals('foo')); 424 unittest.expect(o.name, unittest.equals('foo'));
425 unittest.expect(o.ocdId, unittest.equals('foo')); 425 unittest.expect(o.ocdId, unittest.equals('foo'));
426 } 426 }
427 buildCounterDivisionSearchResult--; 427 buildCounterDivisionSearchResult--;
428 } 428 }
429 429
430 core.int buildCounterElection = 0; 430 core.int buildCounterElection = 0;
431 buildElection() { 431 buildElection() {
432 var o = new api.Election(); 432 var o = new api.Election();
433 buildCounterElection++; 433 buildCounterElection++;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 if (buildCounterElectionOfficial < 3) { 472 if (buildCounterElectionOfficial < 3) {
473 unittest.expect(o.emailAddress, unittest.equals('foo')); 473 unittest.expect(o.emailAddress, unittest.equals('foo'));
474 unittest.expect(o.faxNumber, unittest.equals('foo')); 474 unittest.expect(o.faxNumber, unittest.equals('foo'));
475 unittest.expect(o.name, unittest.equals('foo')); 475 unittest.expect(o.name, unittest.equals('foo'));
476 unittest.expect(o.officePhoneNumber, unittest.equals('foo')); 476 unittest.expect(o.officePhoneNumber, unittest.equals('foo'));
477 unittest.expect(o.title, unittest.equals('foo')); 477 unittest.expect(o.title, unittest.equals('foo'));
478 } 478 }
479 buildCounterElectionOfficial--; 479 buildCounterElectionOfficial--;
480 } 480 }
481 481
482 buildUnnamed2211() { 482 buildUnnamed2532() {
483 var o = new core.List<api.Election>(); 483 var o = new core.List<api.Election>();
484 o.add(buildElection()); 484 o.add(buildElection());
485 o.add(buildElection()); 485 o.add(buildElection());
486 return o; 486 return o;
487 } 487 }
488 488
489 checkUnnamed2211(core.List<api.Election> o) { 489 checkUnnamed2532(core.List<api.Election> o) {
490 unittest.expect(o, unittest.hasLength(2)); 490 unittest.expect(o, unittest.hasLength(2));
491 checkElection(o[0]); 491 checkElection(o[0]);
492 checkElection(o[1]); 492 checkElection(o[1]);
493 } 493 }
494 494
495 core.int buildCounterElectionsQueryResponse = 0; 495 core.int buildCounterElectionsQueryResponse = 0;
496 buildElectionsQueryResponse() { 496 buildElectionsQueryResponse() {
497 var o = new api.ElectionsQueryResponse(); 497 var o = new api.ElectionsQueryResponse();
498 buildCounterElectionsQueryResponse++; 498 buildCounterElectionsQueryResponse++;
499 if (buildCounterElectionsQueryResponse < 3) { 499 if (buildCounterElectionsQueryResponse < 3) {
500 o.elections = buildUnnamed2211(); 500 o.elections = buildUnnamed2532();
501 o.kind = "foo"; 501 o.kind = "foo";
502 } 502 }
503 buildCounterElectionsQueryResponse--; 503 buildCounterElectionsQueryResponse--;
504 return o; 504 return o;
505 } 505 }
506 506
507 checkElectionsQueryResponse(api.ElectionsQueryResponse o) { 507 checkElectionsQueryResponse(api.ElectionsQueryResponse o) {
508 buildCounterElectionsQueryResponse++; 508 buildCounterElectionsQueryResponse++;
509 if (buildCounterElectionsQueryResponse < 3) { 509 if (buildCounterElectionsQueryResponse < 3) {
510 checkUnnamed2211(o.elections); 510 checkUnnamed2532(o.elections);
511 unittest.expect(o.kind, unittest.equals('foo')); 511 unittest.expect(o.kind, unittest.equals('foo'));
512 } 512 }
513 buildCounterElectionsQueryResponse--; 513 buildCounterElectionsQueryResponse--;
514 } 514 }
515 515
516 core.int buildCounterElectoralDistrict = 0; 516 core.int buildCounterElectoralDistrict = 0;
517 buildElectoralDistrict() { 517 buildElectoralDistrict() {
518 var o = new api.ElectoralDistrict(); 518 var o = new api.ElectoralDistrict();
519 buildCounterElectoralDistrict++; 519 buildCounterElectoralDistrict++;
520 if (buildCounterElectoralDistrict < 3) { 520 if (buildCounterElectoralDistrict < 3) {
521 o.id = "foo"; 521 o.id = "foo";
522 o.name = "foo"; 522 o.name = "foo";
523 o.scope = "foo"; 523 o.scope = "foo";
524 } 524 }
525 buildCounterElectoralDistrict--; 525 buildCounterElectoralDistrict--;
526 return o; 526 return o;
527 } 527 }
528 528
529 checkElectoralDistrict(api.ElectoralDistrict o) { 529 checkElectoralDistrict(api.ElectoralDistrict o) {
530 buildCounterElectoralDistrict++; 530 buildCounterElectoralDistrict++;
531 if (buildCounterElectoralDistrict < 3) { 531 if (buildCounterElectoralDistrict < 3) {
532 unittest.expect(o.id, unittest.equals('foo')); 532 unittest.expect(o.id, unittest.equals('foo'));
533 unittest.expect(o.name, unittest.equals('foo')); 533 unittest.expect(o.name, unittest.equals('foo'));
534 unittest.expect(o.scope, unittest.equals('foo')); 534 unittest.expect(o.scope, unittest.equals('foo'));
535 } 535 }
536 buildCounterElectoralDistrict--; 536 buildCounterElectoralDistrict--;
537 } 537 }
538 538
539 buildUnnamed2212() { 539 buildUnnamed2533() {
540 var o = new core.List<core.String>(); 540 var o = new core.List<core.String>();
541 o.add("foo"); 541 o.add("foo");
542 o.add("foo"); 542 o.add("foo");
543 return o; 543 return o;
544 } 544 }
545 545
546 checkUnnamed2212(core.List<core.String> o) { 546 checkUnnamed2533(core.List<core.String> o) {
547 unittest.expect(o, unittest.hasLength(2)); 547 unittest.expect(o, unittest.hasLength(2));
548 unittest.expect(o[0], unittest.equals('foo')); 548 unittest.expect(o[0], unittest.equals('foo'));
549 unittest.expect(o[1], unittest.equals('foo')); 549 unittest.expect(o[1], unittest.equals('foo'));
550 } 550 }
551 551
552 buildUnnamed2213() { 552 buildUnnamed2534() {
553 var o = new core.List<core.int>(); 553 var o = new core.List<core.int>();
554 o.add(42); 554 o.add(42);
555 o.add(42); 555 o.add(42);
556 return o; 556 return o;
557 } 557 }
558 558
559 checkUnnamed2213(core.List<core.int> o) { 559 checkUnnamed2534(core.List<core.int> o) {
560 unittest.expect(o, unittest.hasLength(2)); 560 unittest.expect(o, unittest.hasLength(2));
561 unittest.expect(o[0], unittest.equals(42)); 561 unittest.expect(o[0], unittest.equals(42));
562 unittest.expect(o[1], unittest.equals(42)); 562 unittest.expect(o[1], unittest.equals(42));
563 } 563 }
564 564
565 core.int buildCounterGeographicDivision = 0; 565 core.int buildCounterGeographicDivision = 0;
566 buildGeographicDivision() { 566 buildGeographicDivision() {
567 var o = new api.GeographicDivision(); 567 var o = new api.GeographicDivision();
568 buildCounterGeographicDivision++; 568 buildCounterGeographicDivision++;
569 if (buildCounterGeographicDivision < 3) { 569 if (buildCounterGeographicDivision < 3) {
570 o.alsoKnownAs = buildUnnamed2212(); 570 o.alsoKnownAs = buildUnnamed2533();
571 o.name = "foo"; 571 o.name = "foo";
572 o.officeIndices = buildUnnamed2213(); 572 o.officeIndices = buildUnnamed2534();
573 } 573 }
574 buildCounterGeographicDivision--; 574 buildCounterGeographicDivision--;
575 return o; 575 return o;
576 } 576 }
577 577
578 checkGeographicDivision(api.GeographicDivision o) { 578 checkGeographicDivision(api.GeographicDivision o) {
579 buildCounterGeographicDivision++; 579 buildCounterGeographicDivision++;
580 if (buildCounterGeographicDivision < 3) { 580 if (buildCounterGeographicDivision < 3) {
581 checkUnnamed2212(o.alsoKnownAs); 581 checkUnnamed2533(o.alsoKnownAs);
582 unittest.expect(o.name, unittest.equals('foo')); 582 unittest.expect(o.name, unittest.equals('foo'));
583 checkUnnamed2213(o.officeIndices); 583 checkUnnamed2534(o.officeIndices);
584 } 584 }
585 buildCounterGeographicDivision--; 585 buildCounterGeographicDivision--;
586 } 586 }
587 587
588 buildUnnamed2214() { 588 buildUnnamed2535() {
589 var o = new core.List<core.String>(); 589 var o = new core.List<core.String>();
590 o.add("foo"); 590 o.add("foo");
591 o.add("foo"); 591 o.add("foo");
592 return o; 592 return o;
593 } 593 }
594 594
595 checkUnnamed2214(core.List<core.String> o) { 595 checkUnnamed2535(core.List<core.String> o) {
596 unittest.expect(o, unittest.hasLength(2)); 596 unittest.expect(o, unittest.hasLength(2));
597 unittest.expect(o[0], unittest.equals('foo')); 597 unittest.expect(o[0], unittest.equals('foo'));
598 unittest.expect(o[1], unittest.equals('foo')); 598 unittest.expect(o[1], unittest.equals('foo'));
599 } 599 }
600 600
601 buildUnnamed2215() { 601 buildUnnamed2536() {
602 var o = new core.List<core.int>(); 602 var o = new core.List<core.int>();
603 o.add(42); 603 o.add(42);
604 o.add(42); 604 o.add(42);
605 return o; 605 return o;
606 } 606 }
607 607
608 checkUnnamed2215(core.List<core.int> o) { 608 checkUnnamed2536(core.List<core.int> o) {
609 unittest.expect(o, unittest.hasLength(2)); 609 unittest.expect(o, unittest.hasLength(2));
610 unittest.expect(o[0], unittest.equals(42)); 610 unittest.expect(o[0], unittest.equals(42));
611 unittest.expect(o[1], unittest.equals(42)); 611 unittest.expect(o[1], unittest.equals(42));
612 } 612 }
613 613
614 buildUnnamed2216() { 614 buildUnnamed2537() {
615 var o = new core.List<core.String>(); 615 var o = new core.List<core.String>();
616 o.add("foo"); 616 o.add("foo");
617 o.add("foo"); 617 o.add("foo");
618 return o; 618 return o;
619 } 619 }
620 620
621 checkUnnamed2216(core.List<core.String> o) { 621 checkUnnamed2537(core.List<core.String> o) {
622 unittest.expect(o, unittest.hasLength(2)); 622 unittest.expect(o, unittest.hasLength(2));
623 unittest.expect(o[0], unittest.equals('foo')); 623 unittest.expect(o[0], unittest.equals('foo'));
624 unittest.expect(o[1], unittest.equals('foo')); 624 unittest.expect(o[1], unittest.equals('foo'));
625 } 625 }
626 626
627 buildUnnamed2217() { 627 buildUnnamed2538() {
628 var o = new core.List<api.Source>(); 628 var o = new core.List<api.Source>();
629 o.add(buildSource()); 629 o.add(buildSource());
630 o.add(buildSource()); 630 o.add(buildSource());
631 return o; 631 return o;
632 } 632 }
633 633
634 checkUnnamed2217(core.List<api.Source> o) { 634 checkUnnamed2538(core.List<api.Source> o) {
635 unittest.expect(o, unittest.hasLength(2)); 635 unittest.expect(o, unittest.hasLength(2));
636 checkSource(o[0]); 636 checkSource(o[0]);
637 checkSource(o[1]); 637 checkSource(o[1]);
638 } 638 }
639 639
640 core.int buildCounterOffice = 0; 640 core.int buildCounterOffice = 0;
641 buildOffice() { 641 buildOffice() {
642 var o = new api.Office(); 642 var o = new api.Office();
643 buildCounterOffice++; 643 buildCounterOffice++;
644 if (buildCounterOffice < 3) { 644 if (buildCounterOffice < 3) {
645 o.divisionId = "foo"; 645 o.divisionId = "foo";
646 o.levels = buildUnnamed2214(); 646 o.levels = buildUnnamed2535();
647 o.name = "foo"; 647 o.name = "foo";
648 o.officialIndices = buildUnnamed2215(); 648 o.officialIndices = buildUnnamed2536();
649 o.roles = buildUnnamed2216(); 649 o.roles = buildUnnamed2537();
650 o.sources = buildUnnamed2217(); 650 o.sources = buildUnnamed2538();
651 } 651 }
652 buildCounterOffice--; 652 buildCounterOffice--;
653 return o; 653 return o;
654 } 654 }
655 655
656 checkOffice(api.Office o) { 656 checkOffice(api.Office o) {
657 buildCounterOffice++; 657 buildCounterOffice++;
658 if (buildCounterOffice < 3) { 658 if (buildCounterOffice < 3) {
659 unittest.expect(o.divisionId, unittest.equals('foo')); 659 unittest.expect(o.divisionId, unittest.equals('foo'));
660 checkUnnamed2214(o.levels); 660 checkUnnamed2535(o.levels);
661 unittest.expect(o.name, unittest.equals('foo')); 661 unittest.expect(o.name, unittest.equals('foo'));
662 checkUnnamed2215(o.officialIndices); 662 checkUnnamed2536(o.officialIndices);
663 checkUnnamed2216(o.roles); 663 checkUnnamed2537(o.roles);
664 checkUnnamed2217(o.sources); 664 checkUnnamed2538(o.sources);
665 } 665 }
666 buildCounterOffice--; 666 buildCounterOffice--;
667 } 667 }
668 668
669 buildUnnamed2218() { 669 buildUnnamed2539() {
670 var o = new core.List<api.SimpleAddressType>(); 670 var o = new core.List<api.SimpleAddressType>();
671 o.add(buildSimpleAddressType()); 671 o.add(buildSimpleAddressType());
672 o.add(buildSimpleAddressType()); 672 o.add(buildSimpleAddressType());
673 return o; 673 return o;
674 } 674 }
675 675
676 checkUnnamed2218(core.List<api.SimpleAddressType> o) { 676 checkUnnamed2539(core.List<api.SimpleAddressType> o) {
677 unittest.expect(o, unittest.hasLength(2)); 677 unittest.expect(o, unittest.hasLength(2));
678 checkSimpleAddressType(o[0]); 678 checkSimpleAddressType(o[0]);
679 checkSimpleAddressType(o[1]); 679 checkSimpleAddressType(o[1]);
680 } 680 }
681 681
682 buildUnnamed2219() { 682 buildUnnamed2540() {
683 var o = new core.List<api.Channel>(); 683 var o = new core.List<api.Channel>();
684 o.add(buildChannel()); 684 o.add(buildChannel());
685 o.add(buildChannel()); 685 o.add(buildChannel());
686 return o; 686 return o;
687 } 687 }
688 688
689 checkUnnamed2219(core.List<api.Channel> o) { 689 checkUnnamed2540(core.List<api.Channel> o) {
690 unittest.expect(o, unittest.hasLength(2)); 690 unittest.expect(o, unittest.hasLength(2));
691 checkChannel(o[0]); 691 checkChannel(o[0]);
692 checkChannel(o[1]); 692 checkChannel(o[1]);
693 } 693 }
694 694
695 buildUnnamed2220() { 695 buildUnnamed2541() {
696 var o = new core.List<core.String>(); 696 var o = new core.List<core.String>();
697 o.add("foo"); 697 o.add("foo");
698 o.add("foo"); 698 o.add("foo");
699 return o; 699 return o;
700 } 700 }
701 701
702 checkUnnamed2220(core.List<core.String> o) { 702 checkUnnamed2541(core.List<core.String> o) {
703 unittest.expect(o, unittest.hasLength(2)); 703 unittest.expect(o, unittest.hasLength(2));
704 unittest.expect(o[0], unittest.equals('foo')); 704 unittest.expect(o[0], unittest.equals('foo'));
705 unittest.expect(o[1], unittest.equals('foo')); 705 unittest.expect(o[1], unittest.equals('foo'));
706 } 706 }
707 707
708 buildUnnamed2221() { 708 buildUnnamed2542() {
709 var o = new core.List<core.String>(); 709 var o = new core.List<core.String>();
710 o.add("foo"); 710 o.add("foo");
711 o.add("foo"); 711 o.add("foo");
712 return o; 712 return o;
713 } 713 }
714 714
715 checkUnnamed2221(core.List<core.String> o) { 715 checkUnnamed2542(core.List<core.String> o) {
716 unittest.expect(o, unittest.hasLength(2)); 716 unittest.expect(o, unittest.hasLength(2));
717 unittest.expect(o[0], unittest.equals('foo')); 717 unittest.expect(o[0], unittest.equals('foo'));
718 unittest.expect(o[1], unittest.equals('foo')); 718 unittest.expect(o[1], unittest.equals('foo'));
719 } 719 }
720 720
721 buildUnnamed2222() { 721 buildUnnamed2543() {
722 var o = new core.List<core.String>(); 722 var o = new core.List<core.String>();
723 o.add("foo"); 723 o.add("foo");
724 o.add("foo"); 724 o.add("foo");
725 return o; 725 return o;
726 } 726 }
727 727
728 checkUnnamed2222(core.List<core.String> o) { 728 checkUnnamed2543(core.List<core.String> o) {
729 unittest.expect(o, unittest.hasLength(2)); 729 unittest.expect(o, unittest.hasLength(2));
730 unittest.expect(o[0], unittest.equals('foo')); 730 unittest.expect(o[0], unittest.equals('foo'));
731 unittest.expect(o[1], unittest.equals('foo')); 731 unittest.expect(o[1], unittest.equals('foo'));
732 } 732 }
733 733
734 core.int buildCounterOfficial = 0; 734 core.int buildCounterOfficial = 0;
735 buildOfficial() { 735 buildOfficial() {
736 var o = new api.Official(); 736 var o = new api.Official();
737 buildCounterOfficial++; 737 buildCounterOfficial++;
738 if (buildCounterOfficial < 3) { 738 if (buildCounterOfficial < 3) {
739 o.address = buildUnnamed2218(); 739 o.address = buildUnnamed2539();
740 o.channels = buildUnnamed2219(); 740 o.channels = buildUnnamed2540();
741 o.emails = buildUnnamed2220(); 741 o.emails = buildUnnamed2541();
742 o.name = "foo"; 742 o.name = "foo";
743 o.party = "foo"; 743 o.party = "foo";
744 o.phones = buildUnnamed2221(); 744 o.phones = buildUnnamed2542();
745 o.photoUrl = "foo"; 745 o.photoUrl = "foo";
746 o.urls = buildUnnamed2222(); 746 o.urls = buildUnnamed2543();
747 } 747 }
748 buildCounterOfficial--; 748 buildCounterOfficial--;
749 return o; 749 return o;
750 } 750 }
751 751
752 checkOfficial(api.Official o) { 752 checkOfficial(api.Official o) {
753 buildCounterOfficial++; 753 buildCounterOfficial++;
754 if (buildCounterOfficial < 3) { 754 if (buildCounterOfficial < 3) {
755 checkUnnamed2218(o.address); 755 checkUnnamed2539(o.address);
756 checkUnnamed2219(o.channels); 756 checkUnnamed2540(o.channels);
757 checkUnnamed2220(o.emails); 757 checkUnnamed2541(o.emails);
758 unittest.expect(o.name, unittest.equals('foo')); 758 unittest.expect(o.name, unittest.equals('foo'));
759 unittest.expect(o.party, unittest.equals('foo')); 759 unittest.expect(o.party, unittest.equals('foo'));
760 checkUnnamed2221(o.phones); 760 checkUnnamed2542(o.phones);
761 unittest.expect(o.photoUrl, unittest.equals('foo')); 761 unittest.expect(o.photoUrl, unittest.equals('foo'));
762 checkUnnamed2222(o.urls); 762 checkUnnamed2543(o.urls);
763 } 763 }
764 buildCounterOfficial--; 764 buildCounterOfficial--;
765 } 765 }
766 766
767 buildUnnamed2223() { 767 buildUnnamed2544() {
768 var o = new core.List<api.Source>(); 768 var o = new core.List<api.Source>();
769 o.add(buildSource()); 769 o.add(buildSource());
770 o.add(buildSource()); 770 o.add(buildSource());
771 return o; 771 return o;
772 } 772 }
773 773
774 checkUnnamed2223(core.List<api.Source> o) { 774 checkUnnamed2544(core.List<api.Source> o) {
775 unittest.expect(o, unittest.hasLength(2)); 775 unittest.expect(o, unittest.hasLength(2));
776 checkSource(o[0]); 776 checkSource(o[0]);
777 checkSource(o[1]); 777 checkSource(o[1]);
778 } 778 }
779 779
780 core.int buildCounterPollingLocation = 0; 780 core.int buildCounterPollingLocation = 0;
781 buildPollingLocation() { 781 buildPollingLocation() {
782 var o = new api.PollingLocation(); 782 var o = new api.PollingLocation();
783 buildCounterPollingLocation++; 783 buildCounterPollingLocation++;
784 if (buildCounterPollingLocation < 3) { 784 if (buildCounterPollingLocation < 3) {
785 o.address = buildSimpleAddressType(); 785 o.address = buildSimpleAddressType();
786 o.endDate = "foo"; 786 o.endDate = "foo";
787 o.id = "foo"; 787 o.id = "foo";
788 o.name = "foo"; 788 o.name = "foo";
789 o.notes = "foo"; 789 o.notes = "foo";
790 o.pollingHours = "foo"; 790 o.pollingHours = "foo";
791 o.sources = buildUnnamed2223(); 791 o.sources = buildUnnamed2544();
792 o.startDate = "foo"; 792 o.startDate = "foo";
793 o.voterServices = "foo"; 793 o.voterServices = "foo";
794 } 794 }
795 buildCounterPollingLocation--; 795 buildCounterPollingLocation--;
796 return o; 796 return o;
797 } 797 }
798 798
799 checkPollingLocation(api.PollingLocation o) { 799 checkPollingLocation(api.PollingLocation o) {
800 buildCounterPollingLocation++; 800 buildCounterPollingLocation++;
801 if (buildCounterPollingLocation < 3) { 801 if (buildCounterPollingLocation < 3) {
802 checkSimpleAddressType(o.address); 802 checkSimpleAddressType(o.address);
803 unittest.expect(o.endDate, unittest.equals('foo')); 803 unittest.expect(o.endDate, unittest.equals('foo'));
804 unittest.expect(o.id, unittest.equals('foo')); 804 unittest.expect(o.id, unittest.equals('foo'));
805 unittest.expect(o.name, unittest.equals('foo')); 805 unittest.expect(o.name, unittest.equals('foo'));
806 unittest.expect(o.notes, unittest.equals('foo')); 806 unittest.expect(o.notes, unittest.equals('foo'));
807 unittest.expect(o.pollingHours, unittest.equals('foo')); 807 unittest.expect(o.pollingHours, unittest.equals('foo'));
808 checkUnnamed2223(o.sources); 808 checkUnnamed2544(o.sources);
809 unittest.expect(o.startDate, unittest.equals('foo')); 809 unittest.expect(o.startDate, unittest.equals('foo'));
810 unittest.expect(o.voterServices, unittest.equals('foo')); 810 unittest.expect(o.voterServices, unittest.equals('foo'));
811 } 811 }
812 buildCounterPollingLocation--; 812 buildCounterPollingLocation--;
813 } 813 }
814 814
815 buildUnnamed2224() { 815 buildUnnamed2545() {
816 var o = new core.Map<core.String, api.GeographicDivision>(); 816 var o = new core.Map<core.String, api.GeographicDivision>();
817 o["x"] = buildGeographicDivision(); 817 o["x"] = buildGeographicDivision();
818 o["y"] = buildGeographicDivision(); 818 o["y"] = buildGeographicDivision();
819 return o; 819 return o;
820 } 820 }
821 821
822 checkUnnamed2224(core.Map<core.String, api.GeographicDivision> o) { 822 checkUnnamed2545(core.Map<core.String, api.GeographicDivision> o) {
823 unittest.expect(o, unittest.hasLength(2)); 823 unittest.expect(o, unittest.hasLength(2));
824 checkGeographicDivision(o["x"]); 824 checkGeographicDivision(o["x"]);
825 checkGeographicDivision(o["y"]); 825 checkGeographicDivision(o["y"]);
826 } 826 }
827 827
828 buildUnnamed2225() { 828 buildUnnamed2546() {
829 var o = new core.List<api.Office>(); 829 var o = new core.List<api.Office>();
830 o.add(buildOffice()); 830 o.add(buildOffice());
831 o.add(buildOffice()); 831 o.add(buildOffice());
832 return o; 832 return o;
833 } 833 }
834 834
835 checkUnnamed2225(core.List<api.Office> o) { 835 checkUnnamed2546(core.List<api.Office> o) {
836 unittest.expect(o, unittest.hasLength(2)); 836 unittest.expect(o, unittest.hasLength(2));
837 checkOffice(o[0]); 837 checkOffice(o[0]);
838 checkOffice(o[1]); 838 checkOffice(o[1]);
839 } 839 }
840 840
841 buildUnnamed2226() { 841 buildUnnamed2547() {
842 var o = new core.List<api.Official>(); 842 var o = new core.List<api.Official>();
843 o.add(buildOfficial()); 843 o.add(buildOfficial());
844 o.add(buildOfficial()); 844 o.add(buildOfficial());
845 return o; 845 return o;
846 } 846 }
847 847
848 checkUnnamed2226(core.List<api.Official> o) { 848 checkUnnamed2547(core.List<api.Official> o) {
849 unittest.expect(o, unittest.hasLength(2)); 849 unittest.expect(o, unittest.hasLength(2));
850 checkOfficial(o[0]); 850 checkOfficial(o[0]);
851 checkOfficial(o[1]); 851 checkOfficial(o[1]);
852 } 852 }
853 853
854 core.int buildCounterRepresentativeInfoData = 0; 854 core.int buildCounterRepresentativeInfoData = 0;
855 buildRepresentativeInfoData() { 855 buildRepresentativeInfoData() {
856 var o = new api.RepresentativeInfoData(); 856 var o = new api.RepresentativeInfoData();
857 buildCounterRepresentativeInfoData++; 857 buildCounterRepresentativeInfoData++;
858 if (buildCounterRepresentativeInfoData < 3) { 858 if (buildCounterRepresentativeInfoData < 3) {
859 o.divisions = buildUnnamed2224(); 859 o.divisions = buildUnnamed2545();
860 o.offices = buildUnnamed2225(); 860 o.offices = buildUnnamed2546();
861 o.officials = buildUnnamed2226(); 861 o.officials = buildUnnamed2547();
862 } 862 }
863 buildCounterRepresentativeInfoData--; 863 buildCounterRepresentativeInfoData--;
864 return o; 864 return o;
865 } 865 }
866 866
867 checkRepresentativeInfoData(api.RepresentativeInfoData o) { 867 checkRepresentativeInfoData(api.RepresentativeInfoData o) {
868 buildCounterRepresentativeInfoData++; 868 buildCounterRepresentativeInfoData++;
869 if (buildCounterRepresentativeInfoData < 3) { 869 if (buildCounterRepresentativeInfoData < 3) {
870 checkUnnamed2224(o.divisions); 870 checkUnnamed2545(o.divisions);
871 checkUnnamed2225(o.offices); 871 checkUnnamed2546(o.offices);
872 checkUnnamed2226(o.officials); 872 checkUnnamed2547(o.officials);
873 } 873 }
874 buildCounterRepresentativeInfoData--; 874 buildCounterRepresentativeInfoData--;
875 } 875 }
876 876
877 buildUnnamed2227() { 877 buildUnnamed2548() {
878 var o = new core.Map<core.String, api.GeographicDivision>(); 878 var o = new core.Map<core.String, api.GeographicDivision>();
879 o["x"] = buildGeographicDivision(); 879 o["x"] = buildGeographicDivision();
880 o["y"] = buildGeographicDivision(); 880 o["y"] = buildGeographicDivision();
881 return o; 881 return o;
882 } 882 }
883 883
884 checkUnnamed2227(core.Map<core.String, api.GeographicDivision> o) { 884 checkUnnamed2548(core.Map<core.String, api.GeographicDivision> o) {
885 unittest.expect(o, unittest.hasLength(2)); 885 unittest.expect(o, unittest.hasLength(2));
886 checkGeographicDivision(o["x"]); 886 checkGeographicDivision(o["x"]);
887 checkGeographicDivision(o["y"]); 887 checkGeographicDivision(o["y"]);
888 } 888 }
889 889
890 buildUnnamed2228() { 890 buildUnnamed2549() {
891 var o = new core.List<api.Office>(); 891 var o = new core.List<api.Office>();
892 o.add(buildOffice()); 892 o.add(buildOffice());
893 o.add(buildOffice()); 893 o.add(buildOffice());
894 return o; 894 return o;
895 } 895 }
896 896
897 checkUnnamed2228(core.List<api.Office> o) { 897 checkUnnamed2549(core.List<api.Office> o) {
898 unittest.expect(o, unittest.hasLength(2)); 898 unittest.expect(o, unittest.hasLength(2));
899 checkOffice(o[0]); 899 checkOffice(o[0]);
900 checkOffice(o[1]); 900 checkOffice(o[1]);
901 } 901 }
902 902
903 buildUnnamed2229() { 903 buildUnnamed2550() {
904 var o = new core.List<api.Official>(); 904 var o = new core.List<api.Official>();
905 o.add(buildOfficial()); 905 o.add(buildOfficial());
906 o.add(buildOfficial()); 906 o.add(buildOfficial());
907 return o; 907 return o;
908 } 908 }
909 909
910 checkUnnamed2229(core.List<api.Official> o) { 910 checkUnnamed2550(core.List<api.Official> o) {
911 unittest.expect(o, unittest.hasLength(2)); 911 unittest.expect(o, unittest.hasLength(2));
912 checkOfficial(o[0]); 912 checkOfficial(o[0]);
913 checkOfficial(o[1]); 913 checkOfficial(o[1]);
914 } 914 }
915 915
916 core.int buildCounterRepresentativeInfoResponse = 0; 916 core.int buildCounterRepresentativeInfoResponse = 0;
917 buildRepresentativeInfoResponse() { 917 buildRepresentativeInfoResponse() {
918 var o = new api.RepresentativeInfoResponse(); 918 var o = new api.RepresentativeInfoResponse();
919 buildCounterRepresentativeInfoResponse++; 919 buildCounterRepresentativeInfoResponse++;
920 if (buildCounterRepresentativeInfoResponse < 3) { 920 if (buildCounterRepresentativeInfoResponse < 3) {
921 o.divisions = buildUnnamed2227(); 921 o.divisions = buildUnnamed2548();
922 o.kind = "foo"; 922 o.kind = "foo";
923 o.normalizedInput = buildSimpleAddressType(); 923 o.normalizedInput = buildSimpleAddressType();
924 o.offices = buildUnnamed2228(); 924 o.offices = buildUnnamed2549();
925 o.officials = buildUnnamed2229(); 925 o.officials = buildUnnamed2550();
926 } 926 }
927 buildCounterRepresentativeInfoResponse--; 927 buildCounterRepresentativeInfoResponse--;
928 return o; 928 return o;
929 } 929 }
930 930
931 checkRepresentativeInfoResponse(api.RepresentativeInfoResponse o) { 931 checkRepresentativeInfoResponse(api.RepresentativeInfoResponse o) {
932 buildCounterRepresentativeInfoResponse++; 932 buildCounterRepresentativeInfoResponse++;
933 if (buildCounterRepresentativeInfoResponse < 3) { 933 if (buildCounterRepresentativeInfoResponse < 3) {
934 checkUnnamed2227(o.divisions); 934 checkUnnamed2548(o.divisions);
935 unittest.expect(o.kind, unittest.equals('foo')); 935 unittest.expect(o.kind, unittest.equals('foo'));
936 checkSimpleAddressType(o.normalizedInput); 936 checkSimpleAddressType(o.normalizedInput);
937 checkUnnamed2228(o.offices); 937 checkUnnamed2549(o.offices);
938 checkUnnamed2229(o.officials); 938 checkUnnamed2550(o.officials);
939 } 939 }
940 buildCounterRepresentativeInfoResponse--; 940 buildCounterRepresentativeInfoResponse--;
941 } 941 }
942 942
943 core.int buildCounterSimpleAddressType = 0; 943 core.int buildCounterSimpleAddressType = 0;
944 buildSimpleAddressType() { 944 buildSimpleAddressType() {
945 var o = new api.SimpleAddressType(); 945 var o = new api.SimpleAddressType();
946 buildCounterSimpleAddressType++; 946 buildCounterSimpleAddressType++;
947 if (buildCounterSimpleAddressType < 3) { 947 if (buildCounterSimpleAddressType < 3) {
948 o.city = "foo"; 948 o.city = "foo";
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
985 985
986 checkSource(api.Source o) { 986 checkSource(api.Source o) {
987 buildCounterSource++; 987 buildCounterSource++;
988 if (buildCounterSource < 3) { 988 if (buildCounterSource < 3) {
989 unittest.expect(o.name, unittest.equals('foo')); 989 unittest.expect(o.name, unittest.equals('foo'));
990 unittest.expect(o.official, unittest.isTrue); 990 unittest.expect(o.official, unittest.isTrue);
991 } 991 }
992 buildCounterSource--; 992 buildCounterSource--;
993 } 993 }
994 994
995 buildUnnamed2230() { 995 buildUnnamed2551() {
996 var o = new core.List<api.Contest>(); 996 var o = new core.List<api.Contest>();
997 o.add(buildContest()); 997 o.add(buildContest());
998 o.add(buildContest()); 998 o.add(buildContest());
999 return o; 999 return o;
1000 } 1000 }
1001 1001
1002 checkUnnamed2230(core.List<api.Contest> o) { 1002 checkUnnamed2551(core.List<api.Contest> o) {
1003 unittest.expect(o, unittest.hasLength(2)); 1003 unittest.expect(o, unittest.hasLength(2));
1004 checkContest(o[0]); 1004 checkContest(o[0]);
1005 checkContest(o[1]); 1005 checkContest(o[1]);
1006 } 1006 }
1007 1007
1008 buildUnnamed2231() { 1008 buildUnnamed2552() {
1009 var o = new core.List<api.PollingLocation>(); 1009 var o = new core.List<api.PollingLocation>();
1010 o.add(buildPollingLocation()); 1010 o.add(buildPollingLocation());
1011 o.add(buildPollingLocation()); 1011 o.add(buildPollingLocation());
1012 return o; 1012 return o;
1013 } 1013 }
1014 1014
1015 checkUnnamed2231(core.List<api.PollingLocation> o) { 1015 checkUnnamed2552(core.List<api.PollingLocation> o) {
1016 unittest.expect(o, unittest.hasLength(2)); 1016 unittest.expect(o, unittest.hasLength(2));
1017 checkPollingLocation(o[0]); 1017 checkPollingLocation(o[0]);
1018 checkPollingLocation(o[1]); 1018 checkPollingLocation(o[1]);
1019 } 1019 }
1020 1020
1021 buildUnnamed2232() { 1021 buildUnnamed2553() {
1022 var o = new core.List<api.PollingLocation>(); 1022 var o = new core.List<api.PollingLocation>();
1023 o.add(buildPollingLocation()); 1023 o.add(buildPollingLocation());
1024 o.add(buildPollingLocation()); 1024 o.add(buildPollingLocation());
1025 return o; 1025 return o;
1026 } 1026 }
1027 1027
1028 checkUnnamed2232(core.List<api.PollingLocation> o) { 1028 checkUnnamed2553(core.List<api.PollingLocation> o) {
1029 unittest.expect(o, unittest.hasLength(2)); 1029 unittest.expect(o, unittest.hasLength(2));
1030 checkPollingLocation(o[0]); 1030 checkPollingLocation(o[0]);
1031 checkPollingLocation(o[1]); 1031 checkPollingLocation(o[1]);
1032 } 1032 }
1033 1033
1034 buildUnnamed2233() { 1034 buildUnnamed2554() {
1035 var o = new core.List<api.Election>(); 1035 var o = new core.List<api.Election>();
1036 o.add(buildElection()); 1036 o.add(buildElection());
1037 o.add(buildElection()); 1037 o.add(buildElection());
1038 return o; 1038 return o;
1039 } 1039 }
1040 1040
1041 checkUnnamed2233(core.List<api.Election> o) { 1041 checkUnnamed2554(core.List<api.Election> o) {
1042 unittest.expect(o, unittest.hasLength(2)); 1042 unittest.expect(o, unittest.hasLength(2));
1043 checkElection(o[0]); 1043 checkElection(o[0]);
1044 checkElection(o[1]); 1044 checkElection(o[1]);
1045 } 1045 }
1046 1046
1047 buildUnnamed2234() { 1047 buildUnnamed2555() {
1048 var o = new core.List<api.PollingLocation>(); 1048 var o = new core.List<api.PollingLocation>();
1049 o.add(buildPollingLocation()); 1049 o.add(buildPollingLocation());
1050 o.add(buildPollingLocation()); 1050 o.add(buildPollingLocation());
1051 return o; 1051 return o;
1052 } 1052 }
1053 1053
1054 checkUnnamed2234(core.List<api.PollingLocation> o) { 1054 checkUnnamed2555(core.List<api.PollingLocation> o) {
1055 unittest.expect(o, unittest.hasLength(2)); 1055 unittest.expect(o, unittest.hasLength(2));
1056 checkPollingLocation(o[0]); 1056 checkPollingLocation(o[0]);
1057 checkPollingLocation(o[1]); 1057 checkPollingLocation(o[1]);
1058 } 1058 }
1059 1059
1060 buildUnnamed2235() { 1060 buildUnnamed2556() {
1061 var o = new core.List<api.AdministrationRegion>(); 1061 var o = new core.List<api.AdministrationRegion>();
1062 o.add(buildAdministrationRegion()); 1062 o.add(buildAdministrationRegion());
1063 o.add(buildAdministrationRegion()); 1063 o.add(buildAdministrationRegion());
1064 return o; 1064 return o;
1065 } 1065 }
1066 1066
1067 checkUnnamed2235(core.List<api.AdministrationRegion> o) { 1067 checkUnnamed2556(core.List<api.AdministrationRegion> o) {
1068 unittest.expect(o, unittest.hasLength(2)); 1068 unittest.expect(o, unittest.hasLength(2));
1069 checkAdministrationRegion(o[0]); 1069 checkAdministrationRegion(o[0]);
1070 checkAdministrationRegion(o[1]); 1070 checkAdministrationRegion(o[1]);
1071 } 1071 }
1072 1072
1073 core.int buildCounterVoterInfoResponse = 0; 1073 core.int buildCounterVoterInfoResponse = 0;
1074 buildVoterInfoResponse() { 1074 buildVoterInfoResponse() {
1075 var o = new api.VoterInfoResponse(); 1075 var o = new api.VoterInfoResponse();
1076 buildCounterVoterInfoResponse++; 1076 buildCounterVoterInfoResponse++;
1077 if (buildCounterVoterInfoResponse < 3) { 1077 if (buildCounterVoterInfoResponse < 3) {
1078 o.contests = buildUnnamed2230(); 1078 o.contests = buildUnnamed2551();
1079 o.dropOffLocations = buildUnnamed2231(); 1079 o.dropOffLocations = buildUnnamed2552();
1080 o.earlyVoteSites = buildUnnamed2232(); 1080 o.earlyVoteSites = buildUnnamed2553();
1081 o.election = buildElection(); 1081 o.election = buildElection();
1082 o.kind = "foo"; 1082 o.kind = "foo";
1083 o.mailOnly = true; 1083 o.mailOnly = true;
1084 o.normalizedInput = buildSimpleAddressType(); 1084 o.normalizedInput = buildSimpleAddressType();
1085 o.otherElections = buildUnnamed2233(); 1085 o.otherElections = buildUnnamed2554();
1086 o.pollingLocations = buildUnnamed2234(); 1086 o.pollingLocations = buildUnnamed2555();
1087 o.precinctId = "foo"; 1087 o.precinctId = "foo";
1088 o.state = buildUnnamed2235(); 1088 o.state = buildUnnamed2556();
1089 } 1089 }
1090 buildCounterVoterInfoResponse--; 1090 buildCounterVoterInfoResponse--;
1091 return o; 1091 return o;
1092 } 1092 }
1093 1093
1094 checkVoterInfoResponse(api.VoterInfoResponse o) { 1094 checkVoterInfoResponse(api.VoterInfoResponse o) {
1095 buildCounterVoterInfoResponse++; 1095 buildCounterVoterInfoResponse++;
1096 if (buildCounterVoterInfoResponse < 3) { 1096 if (buildCounterVoterInfoResponse < 3) {
1097 checkUnnamed2230(o.contests); 1097 checkUnnamed2551(o.contests);
1098 checkUnnamed2231(o.dropOffLocations); 1098 checkUnnamed2552(o.dropOffLocations);
1099 checkUnnamed2232(o.earlyVoteSites); 1099 checkUnnamed2553(o.earlyVoteSites);
1100 checkElection(o.election); 1100 checkElection(o.election);
1101 unittest.expect(o.kind, unittest.equals('foo')); 1101 unittest.expect(o.kind, unittest.equals('foo'));
1102 unittest.expect(o.mailOnly, unittest.isTrue); 1102 unittest.expect(o.mailOnly, unittest.isTrue);
1103 checkSimpleAddressType(o.normalizedInput); 1103 checkSimpleAddressType(o.normalizedInput);
1104 checkUnnamed2233(o.otherElections); 1104 checkUnnamed2554(o.otherElections);
1105 checkUnnamed2234(o.pollingLocations); 1105 checkUnnamed2555(o.pollingLocations);
1106 unittest.expect(o.precinctId, unittest.equals('foo')); 1106 unittest.expect(o.precinctId, unittest.equals('foo'));
1107 checkUnnamed2235(o.state); 1107 checkUnnamed2556(o.state);
1108 } 1108 }
1109 buildCounterVoterInfoResponse--; 1109 buildCounterVoterInfoResponse--;
1110 } 1110 }
1111 1111
1112 buildUnnamed2236() { 1112 buildUnnamed2557() {
1113 var o = new core.List<core.String>(); 1113 var o = new core.List<core.String>();
1114 o.add("foo"); 1114 o.add("foo");
1115 o.add("foo"); 1115 o.add("foo");
1116 return o; 1116 return o;
1117 } 1117 }
1118 1118
1119 checkUnnamed2236(core.List<core.String> o) { 1119 checkUnnamed2557(core.List<core.String> o) {
1120 unittest.expect(o, unittest.hasLength(2)); 1120 unittest.expect(o, unittest.hasLength(2));
1121 unittest.expect(o[0], unittest.equals('foo')); 1121 unittest.expect(o[0], unittest.equals('foo'));
1122 unittest.expect(o[1], unittest.equals('foo')); 1122 unittest.expect(o[1], unittest.equals('foo'));
1123 } 1123 }
1124 1124
1125 buildUnnamed2237() { 1125 buildUnnamed2558() {
1126 var o = new core.List<core.String>(); 1126 var o = new core.List<core.String>();
1127 o.add("foo"); 1127 o.add("foo");
1128 o.add("foo"); 1128 o.add("foo");
1129 return o; 1129 return o;
1130 } 1130 }
1131 1131
1132 checkUnnamed2237(core.List<core.String> o) { 1132 checkUnnamed2558(core.List<core.String> o) {
1133 unittest.expect(o, unittest.hasLength(2)); 1133 unittest.expect(o, unittest.hasLength(2));
1134 unittest.expect(o[0], unittest.equals('foo')); 1134 unittest.expect(o[0], unittest.equals('foo'));
1135 unittest.expect(o[1], unittest.equals('foo')); 1135 unittest.expect(o[1], unittest.equals('foo'));
1136 } 1136 }
1137 1137
1138 buildUnnamed2238() { 1138 buildUnnamed2559() {
1139 var o = new core.List<core.String>(); 1139 var o = new core.List<core.String>();
1140 o.add("foo"); 1140 o.add("foo");
1141 o.add("foo"); 1141 o.add("foo");
1142 return o; 1142 return o;
1143 } 1143 }
1144 1144
1145 checkUnnamed2238(core.List<core.String> o) { 1145 checkUnnamed2559(core.List<core.String> o) {
1146 unittest.expect(o, unittest.hasLength(2)); 1146 unittest.expect(o, unittest.hasLength(2));
1147 unittest.expect(o[0], unittest.equals('foo')); 1147 unittest.expect(o[0], unittest.equals('foo'));
1148 unittest.expect(o[1], unittest.equals('foo')); 1148 unittest.expect(o[1], unittest.equals('foo'));
1149 } 1149 }
1150 1150
1151 buildUnnamed2239() { 1151 buildUnnamed2560() {
1152 var o = new core.List<core.String>(); 1152 var o = new core.List<core.String>();
1153 o.add("foo"); 1153 o.add("foo");
1154 o.add("foo"); 1154 o.add("foo");
1155 return o; 1155 return o;
1156 } 1156 }
1157 1157
1158 checkUnnamed2239(core.List<core.String> o) { 1158 checkUnnamed2560(core.List<core.String> o) {
1159 unittest.expect(o, unittest.hasLength(2)); 1159 unittest.expect(o, unittest.hasLength(2));
1160 unittest.expect(o[0], unittest.equals('foo')); 1160 unittest.expect(o[0], unittest.equals('foo'));
1161 unittest.expect(o[1], unittest.equals('foo')); 1161 unittest.expect(o[1], unittest.equals('foo'));
1162 } 1162 }
1163 1163
1164 1164
1165 main() { 1165 main() {
1166 unittest.group("obj-schema-AdministrationRegion", () { 1166 unittest.group("obj-schema-AdministrationRegion", () {
1167 unittest.test("to-json--from-json", () { 1167 unittest.test("to-json--from-json", () {
1168 var o = buildAdministrationRegion(); 1168 var o = buildAdministrationRegion();
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
1494 }); 1494 });
1495 1495
1496 1496
1497 unittest.group("resource-RepresentativesResourceApi", () { 1497 unittest.group("resource-RepresentativesResourceApi", () {
1498 unittest.test("method--representativeInfoByAddress", () { 1498 unittest.test("method--representativeInfoByAddress", () {
1499 1499
1500 var mock = new HttpServerMock(); 1500 var mock = new HttpServerMock();
1501 api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representa tives; 1501 api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representa tives;
1502 var arg_address = "foo"; 1502 var arg_address = "foo";
1503 var arg_includeOffices = true; 1503 var arg_includeOffices = true;
1504 var arg_levels = buildUnnamed2236(); 1504 var arg_levels = buildUnnamed2557();
1505 var arg_roles = buildUnnamed2237(); 1505 var arg_roles = buildUnnamed2558();
1506 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1506 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1507 var path = (req.url).path; 1507 var path = (req.url).path;
1508 var pathOffset = 0; 1508 var pathOffset = 0;
1509 var index; 1509 var index;
1510 var subPart; 1510 var subPart;
1511 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1511 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1512 pathOffset += 1; 1512 pathOffset += 1;
1513 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("civicinfo/v2/")); 1513 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("civicinfo/v2/"));
1514 pathOffset += 13; 1514 pathOffset += 13;
1515 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq uals("representatives")); 1515 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq uals("representatives"));
(...skipping 30 matching lines...) Expand all
1546 res.representativeInfoByAddress(address: arg_address, includeOffices: arg_ includeOffices, levels: arg_levels, roles: arg_roles).then(unittest.expectAsync( ((api.RepresentativeInfoResponse response) { 1546 res.representativeInfoByAddress(address: arg_address, includeOffices: arg_ includeOffices, levels: arg_levels, roles: arg_roles).then(unittest.expectAsync( ((api.RepresentativeInfoResponse response) {
1547 checkRepresentativeInfoResponse(response); 1547 checkRepresentativeInfoResponse(response);
1548 }))); 1548 })));
1549 }); 1549 });
1550 1550
1551 unittest.test("method--representativeInfoByDivision", () { 1551 unittest.test("method--representativeInfoByDivision", () {
1552 1552
1553 var mock = new HttpServerMock(); 1553 var mock = new HttpServerMock();
1554 api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representa tives; 1554 api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representa tives;
1555 var arg_ocdId = "foo"; 1555 var arg_ocdId = "foo";
1556 var arg_levels = buildUnnamed2238(); 1556 var arg_levels = buildUnnamed2559();
1557 var arg_recursive = true; 1557 var arg_recursive = true;
1558 var arg_roles = buildUnnamed2239(); 1558 var arg_roles = buildUnnamed2560();
1559 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1559 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1560 var path = (req.url).path; 1560 var path = (req.url).path;
1561 var pathOffset = 0; 1561 var pathOffset = 0;
1562 var index; 1562 var index;
1563 var subPart; 1563 var subPart;
1564 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1564 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1565 pathOffset += 1; 1565 pathOffset += 1;
1566 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("civicinfo/v2/")); 1566 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("civicinfo/v2/"));
1567 pathOffset += 13; 1567 pathOffset += 13;
1568 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("representatives/")); 1568 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("representatives/"));
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
1601 res.representativeInfoByDivision(arg_ocdId, levels: arg_levels, recursive: arg_recursive, roles: arg_roles).then(unittest.expectAsync(((api.Representative InfoData response) { 1601 res.representativeInfoByDivision(arg_ocdId, levels: arg_levels, recursive: arg_recursive, roles: arg_roles).then(unittest.expectAsync(((api.Representative InfoData response) {
1602 checkRepresentativeInfoData(response); 1602 checkRepresentativeInfoData(response);
1603 }))); 1603 })));
1604 }); 1604 });
1605 1605
1606 }); 1606 });
1607 1607
1608 1608
1609 } 1609 }
1610 1610
OLDNEW
« no previous file with comments | « generated/googleapis/test/calendar/v3_test.dart ('k') | generated/googleapis/test/classroom/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698