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

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

Issue 2281923002: Api-roll 41: 2016-08-26 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 4 years, 3 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 buildUnnamed617() { 54 buildUnnamed2602() {
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 checkUnnamed617(core.List<api.Source> o) { 61 checkUnnamed2602(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 = buildUnnamed617(); 76 o.sources = buildUnnamed2602();
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 checkUnnamed617(o.sources); 89 checkUnnamed2602(o.sources);
90 } 90 }
91 buildCounterAdministrationRegion--; 91 buildCounterAdministrationRegion--;
92 } 92 }
93 93
94 buildUnnamed618() { 94 buildUnnamed2603() {
95 var o = new core.List<core.String>(); 95 var o = new core.List<core.String>();
96 o.add("foo"); 96 o.add("foo");
97 o.add("foo"); 97 o.add("foo");
98 return o; 98 return o;
99 } 99 }
100 100
101 checkUnnamed618(core.List<core.String> o) { 101 checkUnnamed2603(core.List<core.String> o) {
102 unittest.expect(o, unittest.hasLength(2)); 102 unittest.expect(o, unittest.hasLength(2));
103 unittest.expect(o[0], unittest.equals('foo')); 103 unittest.expect(o[0], unittest.equals('foo'));
104 unittest.expect(o[1], unittest.equals('foo')); 104 unittest.expect(o[1], unittest.equals('foo'));
105 } 105 }
106 106
107 buildUnnamed619() { 107 buildUnnamed2604() {
108 var o = new core.List<api.ElectionOfficial>(); 108 var o = new core.List<api.ElectionOfficial>();
109 o.add(buildElectionOfficial()); 109 o.add(buildElectionOfficial());
110 o.add(buildElectionOfficial()); 110 o.add(buildElectionOfficial());
111 return o; 111 return o;
112 } 112 }
113 113
114 checkUnnamed619(core.List<api.ElectionOfficial> o) { 114 checkUnnamed2604(core.List<api.ElectionOfficial> o) {
115 unittest.expect(o, unittest.hasLength(2)); 115 unittest.expect(o, unittest.hasLength(2));
116 checkElectionOfficial(o[0]); 116 checkElectionOfficial(o[0]);
117 checkElectionOfficial(o[1]); 117 checkElectionOfficial(o[1]);
118 } 118 }
119 119
120 buildUnnamed620() { 120 buildUnnamed2605() {
121 var o = new core.List<core.String>(); 121 var o = new core.List<core.String>();
122 o.add("foo"); 122 o.add("foo");
123 o.add("foo"); 123 o.add("foo");
124 return o; 124 return o;
125 } 125 }
126 126
127 checkUnnamed620(core.List<core.String> o) { 127 checkUnnamed2605(core.List<core.String> o) {
128 unittest.expect(o, unittest.hasLength(2)); 128 unittest.expect(o, unittest.hasLength(2));
129 unittest.expect(o[0], unittest.equals('foo')); 129 unittest.expect(o[0], unittest.equals('foo'));
130 unittest.expect(o[1], unittest.equals('foo')); 130 unittest.expect(o[1], unittest.equals('foo'));
131 } 131 }
132 132
133 core.int buildCounterAdministrativeBody = 0; 133 core.int buildCounterAdministrativeBody = 0;
134 buildAdministrativeBody() { 134 buildAdministrativeBody() {
135 var o = new api.AdministrativeBody(); 135 var o = new api.AdministrativeBody();
136 buildCounterAdministrativeBody++; 136 buildCounterAdministrativeBody++;
137 if (buildCounterAdministrativeBody < 3) { 137 if (buildCounterAdministrativeBody < 3) {
138 o.absenteeVotingInfoUrl = "foo"; 138 o.absenteeVotingInfoUrl = "foo";
139 o.addressLines = buildUnnamed618(); 139 o.addressLines = buildUnnamed2603();
140 o.ballotInfoUrl = "foo"; 140 o.ballotInfoUrl = "foo";
141 o.correspondenceAddress = buildSimpleAddressType(); 141 o.correspondenceAddress = buildSimpleAddressType();
142 o.electionInfoUrl = "foo"; 142 o.electionInfoUrl = "foo";
143 o.electionOfficials = buildUnnamed619(); 143 o.electionOfficials = buildUnnamed2604();
144 o.electionRegistrationConfirmationUrl = "foo"; 144 o.electionRegistrationConfirmationUrl = "foo";
145 o.electionRegistrationUrl = "foo"; 145 o.electionRegistrationUrl = "foo";
146 o.electionRulesUrl = "foo"; 146 o.electionRulesUrl = "foo";
147 o.hoursOfOperation = "foo"; 147 o.hoursOfOperation = "foo";
148 o.name = "foo"; 148 o.name = "foo";
149 o.physicalAddress = buildSimpleAddressType(); 149 o.physicalAddress = buildSimpleAddressType();
150 o.voterServices = buildUnnamed620(); 150 o.voterServices = buildUnnamed2605();
151 o.votingLocationFinderUrl = "foo"; 151 o.votingLocationFinderUrl = "foo";
152 } 152 }
153 buildCounterAdministrativeBody--; 153 buildCounterAdministrativeBody--;
154 return o; 154 return o;
155 } 155 }
156 156
157 checkAdministrativeBody(api.AdministrativeBody o) { 157 checkAdministrativeBody(api.AdministrativeBody o) {
158 buildCounterAdministrativeBody++; 158 buildCounterAdministrativeBody++;
159 if (buildCounterAdministrativeBody < 3) { 159 if (buildCounterAdministrativeBody < 3) {
160 unittest.expect(o.absenteeVotingInfoUrl, unittest.equals('foo')); 160 unittest.expect(o.absenteeVotingInfoUrl, unittest.equals('foo'));
161 checkUnnamed618(o.addressLines); 161 checkUnnamed2603(o.addressLines);
162 unittest.expect(o.ballotInfoUrl, unittest.equals('foo')); 162 unittest.expect(o.ballotInfoUrl, unittest.equals('foo'));
163 checkSimpleAddressType(o.correspondenceAddress); 163 checkSimpleAddressType(o.correspondenceAddress);
164 unittest.expect(o.electionInfoUrl, unittest.equals('foo')); 164 unittest.expect(o.electionInfoUrl, unittest.equals('foo'));
165 checkUnnamed619(o.electionOfficials); 165 checkUnnamed2604(o.electionOfficials);
166 unittest.expect(o.electionRegistrationConfirmationUrl, unittest.equals('foo' )); 166 unittest.expect(o.electionRegistrationConfirmationUrl, unittest.equals('foo' ));
167 unittest.expect(o.electionRegistrationUrl, unittest.equals('foo')); 167 unittest.expect(o.electionRegistrationUrl, unittest.equals('foo'));
168 unittest.expect(o.electionRulesUrl, unittest.equals('foo')); 168 unittest.expect(o.electionRulesUrl, unittest.equals('foo'));
169 unittest.expect(o.hoursOfOperation, unittest.equals('foo')); 169 unittest.expect(o.hoursOfOperation, unittest.equals('foo'));
170 unittest.expect(o.name, unittest.equals('foo')); 170 unittest.expect(o.name, unittest.equals('foo'));
171 checkSimpleAddressType(o.physicalAddress); 171 checkSimpleAddressType(o.physicalAddress);
172 checkUnnamed620(o.voterServices); 172 checkUnnamed2605(o.voterServices);
173 unittest.expect(o.votingLocationFinderUrl, unittest.equals('foo')); 173 unittest.expect(o.votingLocationFinderUrl, unittest.equals('foo'));
174 } 174 }
175 buildCounterAdministrativeBody--; 175 buildCounterAdministrativeBody--;
176 } 176 }
177 177
178 buildUnnamed621() { 178 buildUnnamed2606() {
179 var o = new core.List<api.Channel>(); 179 var o = new core.List<api.Channel>();
180 o.add(buildChannel()); 180 o.add(buildChannel());
181 o.add(buildChannel()); 181 o.add(buildChannel());
182 return o; 182 return o;
183 } 183 }
184 184
185 checkUnnamed621(core.List<api.Channel> o) { 185 checkUnnamed2606(core.List<api.Channel> o) {
186 unittest.expect(o, unittest.hasLength(2)); 186 unittest.expect(o, unittest.hasLength(2));
187 checkChannel(o[0]); 187 checkChannel(o[0]);
188 checkChannel(o[1]); 188 checkChannel(o[1]);
189 } 189 }
190 190
191 core.int buildCounterCandidate = 0; 191 core.int buildCounterCandidate = 0;
192 buildCandidate() { 192 buildCandidate() {
193 var o = new api.Candidate(); 193 var o = new api.Candidate();
194 buildCounterCandidate++; 194 buildCounterCandidate++;
195 if (buildCounterCandidate < 3) { 195 if (buildCounterCandidate < 3) {
196 o.candidateUrl = "foo"; 196 o.candidateUrl = "foo";
197 o.channels = buildUnnamed621(); 197 o.channels = buildUnnamed2606();
198 o.email = "foo"; 198 o.email = "foo";
199 o.name = "foo"; 199 o.name = "foo";
200 o.orderOnBallot = "foo"; 200 o.orderOnBallot = "foo";
201 o.party = "foo"; 201 o.party = "foo";
202 o.phone = "foo"; 202 o.phone = "foo";
203 o.photoUrl = "foo"; 203 o.photoUrl = "foo";
204 } 204 }
205 buildCounterCandidate--; 205 buildCounterCandidate--;
206 return o; 206 return o;
207 } 207 }
208 208
209 checkCandidate(api.Candidate o) { 209 checkCandidate(api.Candidate o) {
210 buildCounterCandidate++; 210 buildCounterCandidate++;
211 if (buildCounterCandidate < 3) { 211 if (buildCounterCandidate < 3) {
212 unittest.expect(o.candidateUrl, unittest.equals('foo')); 212 unittest.expect(o.candidateUrl, unittest.equals('foo'));
213 checkUnnamed621(o.channels); 213 checkUnnamed2606(o.channels);
214 unittest.expect(o.email, unittest.equals('foo')); 214 unittest.expect(o.email, unittest.equals('foo'));
215 unittest.expect(o.name, unittest.equals('foo')); 215 unittest.expect(o.name, unittest.equals('foo'));
216 unittest.expect(o.orderOnBallot, unittest.equals('foo')); 216 unittest.expect(o.orderOnBallot, unittest.equals('foo'));
217 unittest.expect(o.party, unittest.equals('foo')); 217 unittest.expect(o.party, unittest.equals('foo'));
218 unittest.expect(o.phone, unittest.equals('foo')); 218 unittest.expect(o.phone, unittest.equals('foo'));
219 unittest.expect(o.photoUrl, unittest.equals('foo')); 219 unittest.expect(o.photoUrl, unittest.equals('foo'));
220 } 220 }
221 buildCounterCandidate--; 221 buildCounterCandidate--;
222 } 222 }
223 223
(...skipping 11 matching lines...) Expand all
235 235
236 checkChannel(api.Channel o) { 236 checkChannel(api.Channel o) {
237 buildCounterChannel++; 237 buildCounterChannel++;
238 if (buildCounterChannel < 3) { 238 if (buildCounterChannel < 3) {
239 unittest.expect(o.id, unittest.equals('foo')); 239 unittest.expect(o.id, unittest.equals('foo'));
240 unittest.expect(o.type, unittest.equals('foo')); 240 unittest.expect(o.type, unittest.equals('foo'));
241 } 241 }
242 buildCounterChannel--; 242 buildCounterChannel--;
243 } 243 }
244 244
245 buildUnnamed622() { 245 buildUnnamed2607() {
246 var o = new core.List<api.Candidate>(); 246 var o = new core.List<api.Candidate>();
247 o.add(buildCandidate()); 247 o.add(buildCandidate());
248 o.add(buildCandidate()); 248 o.add(buildCandidate());
249 return o; 249 return o;
250 } 250 }
251 251
252 checkUnnamed622(core.List<api.Candidate> o) { 252 checkUnnamed2607(core.List<api.Candidate> o) {
253 unittest.expect(o, unittest.hasLength(2)); 253 unittest.expect(o, unittest.hasLength(2));
254 checkCandidate(o[0]); 254 checkCandidate(o[0]);
255 checkCandidate(o[1]); 255 checkCandidate(o[1]);
256 } 256 }
257 257
258 buildUnnamed623() { 258 buildUnnamed2608() {
259 var o = new core.List<core.String>(); 259 var o = new core.List<core.String>();
260 o.add("foo"); 260 o.add("foo");
261 o.add("foo"); 261 o.add("foo");
262 return o; 262 return o;
263 } 263 }
264 264
265 checkUnnamed623(core.List<core.String> o) { 265 checkUnnamed2608(core.List<core.String> o) {
266 unittest.expect(o, unittest.hasLength(2)); 266 unittest.expect(o, unittest.hasLength(2));
267 unittest.expect(o[0], unittest.equals('foo')); 267 unittest.expect(o[0], unittest.equals('foo'));
268 unittest.expect(o[1], unittest.equals('foo')); 268 unittest.expect(o[1], unittest.equals('foo'));
269 } 269 }
270 270
271 buildUnnamed624() { 271 buildUnnamed2609() {
272 var o = new core.List<core.String>(); 272 var o = new core.List<core.String>();
273 o.add("foo"); 273 o.add("foo");
274 o.add("foo"); 274 o.add("foo");
275 return o; 275 return o;
276 } 276 }
277 277
278 checkUnnamed624(core.List<core.String> o) { 278 checkUnnamed2609(core.List<core.String> o) {
279 unittest.expect(o, unittest.hasLength(2)); 279 unittest.expect(o, unittest.hasLength(2));
280 unittest.expect(o[0], unittest.equals('foo')); 280 unittest.expect(o[0], unittest.equals('foo'));
281 unittest.expect(o[1], unittest.equals('foo')); 281 unittest.expect(o[1], unittest.equals('foo'));
282 } 282 }
283 283
284 buildUnnamed625() { 284 buildUnnamed2610() {
285 var o = new core.List<core.String>(); 285 var o = new core.List<core.String>();
286 o.add("foo"); 286 o.add("foo");
287 o.add("foo"); 287 o.add("foo");
288 return o; 288 return o;
289 } 289 }
290 290
291 checkUnnamed625(core.List<core.String> o) { 291 checkUnnamed2610(core.List<core.String> o) {
292 unittest.expect(o, unittest.hasLength(2)); 292 unittest.expect(o, unittest.hasLength(2));
293 unittest.expect(o[0], unittest.equals('foo')); 293 unittest.expect(o[0], unittest.equals('foo'));
294 unittest.expect(o[1], unittest.equals('foo')); 294 unittest.expect(o[1], unittest.equals('foo'));
295 } 295 }
296 296
297 buildUnnamed626() { 297 buildUnnamed2611() {
298 var o = new core.List<api.Source>(); 298 var o = new core.List<api.Source>();
299 o.add(buildSource()); 299 o.add(buildSource());
300 o.add(buildSource()); 300 o.add(buildSource());
301 return o; 301 return o;
302 } 302 }
303 303
304 checkUnnamed626(core.List<api.Source> o) { 304 checkUnnamed2611(core.List<api.Source> o) {
305 unittest.expect(o, unittest.hasLength(2)); 305 unittest.expect(o, unittest.hasLength(2));
306 checkSource(o[0]); 306 checkSource(o[0]);
307 checkSource(o[1]); 307 checkSource(o[1]);
308 } 308 }
309 309
310 core.int buildCounterContest = 0; 310 core.int buildCounterContest = 0;
311 buildContest() { 311 buildContest() {
312 var o = new api.Contest(); 312 var o = new api.Contest();
313 buildCounterContest++; 313 buildCounterContest++;
314 if (buildCounterContest < 3) { 314 if (buildCounterContest < 3) {
315 o.ballotPlacement = "foo"; 315 o.ballotPlacement = "foo";
316 o.candidates = buildUnnamed622(); 316 o.candidates = buildUnnamed2607();
317 o.district = buildElectoralDistrict(); 317 o.district = buildElectoralDistrict();
318 o.electorateSpecifications = "foo"; 318 o.electorateSpecifications = "foo";
319 o.id = "foo"; 319 o.id = "foo";
320 o.level = buildUnnamed623(); 320 o.level = buildUnnamed2608();
321 o.numberElected = "foo"; 321 o.numberElected = "foo";
322 o.numberVotingFor = "foo"; 322 o.numberVotingFor = "foo";
323 o.office = "foo"; 323 o.office = "foo";
324 o.primaryParty = "foo"; 324 o.primaryParty = "foo";
325 o.referendumBallotResponses = buildUnnamed624(); 325 o.referendumBallotResponses = buildUnnamed2609();
326 o.referendumBrief = "foo"; 326 o.referendumBrief = "foo";
327 o.referendumConStatement = "foo"; 327 o.referendumConStatement = "foo";
328 o.referendumEffectOfAbstain = "foo"; 328 o.referendumEffectOfAbstain = "foo";
329 o.referendumPassageThreshold = "foo"; 329 o.referendumPassageThreshold = "foo";
330 o.referendumProStatement = "foo"; 330 o.referendumProStatement = "foo";
331 o.referendumSubtitle = "foo"; 331 o.referendumSubtitle = "foo";
332 o.referendumText = "foo"; 332 o.referendumText = "foo";
333 o.referendumTitle = "foo"; 333 o.referendumTitle = "foo";
334 o.referendumUrl = "foo"; 334 o.referendumUrl = "foo";
335 o.roles = buildUnnamed625(); 335 o.roles = buildUnnamed2610();
336 o.sources = buildUnnamed626(); 336 o.sources = buildUnnamed2611();
337 o.special = "foo"; 337 o.special = "foo";
338 o.type = "foo"; 338 o.type = "foo";
339 } 339 }
340 buildCounterContest--; 340 buildCounterContest--;
341 return o; 341 return o;
342 } 342 }
343 343
344 checkContest(api.Contest o) { 344 checkContest(api.Contest o) {
345 buildCounterContest++; 345 buildCounterContest++;
346 if (buildCounterContest < 3) { 346 if (buildCounterContest < 3) {
347 unittest.expect(o.ballotPlacement, unittest.equals('foo')); 347 unittest.expect(o.ballotPlacement, unittest.equals('foo'));
348 checkUnnamed622(o.candidates); 348 checkUnnamed2607(o.candidates);
349 checkElectoralDistrict(o.district); 349 checkElectoralDistrict(o.district);
350 unittest.expect(o.electorateSpecifications, unittest.equals('foo')); 350 unittest.expect(o.electorateSpecifications, unittest.equals('foo'));
351 unittest.expect(o.id, unittest.equals('foo')); 351 unittest.expect(o.id, unittest.equals('foo'));
352 checkUnnamed623(o.level); 352 checkUnnamed2608(o.level);
353 unittest.expect(o.numberElected, unittest.equals('foo')); 353 unittest.expect(o.numberElected, unittest.equals('foo'));
354 unittest.expect(o.numberVotingFor, unittest.equals('foo')); 354 unittest.expect(o.numberVotingFor, unittest.equals('foo'));
355 unittest.expect(o.office, unittest.equals('foo')); 355 unittest.expect(o.office, unittest.equals('foo'));
356 unittest.expect(o.primaryParty, unittest.equals('foo')); 356 unittest.expect(o.primaryParty, unittest.equals('foo'));
357 checkUnnamed624(o.referendumBallotResponses); 357 checkUnnamed2609(o.referendumBallotResponses);
358 unittest.expect(o.referendumBrief, unittest.equals('foo')); 358 unittest.expect(o.referendumBrief, unittest.equals('foo'));
359 unittest.expect(o.referendumConStatement, unittest.equals('foo')); 359 unittest.expect(o.referendumConStatement, unittest.equals('foo'));
360 unittest.expect(o.referendumEffectOfAbstain, unittest.equals('foo')); 360 unittest.expect(o.referendumEffectOfAbstain, unittest.equals('foo'));
361 unittest.expect(o.referendumPassageThreshold, unittest.equals('foo')); 361 unittest.expect(o.referendumPassageThreshold, unittest.equals('foo'));
362 unittest.expect(o.referendumProStatement, unittest.equals('foo')); 362 unittest.expect(o.referendumProStatement, unittest.equals('foo'));
363 unittest.expect(o.referendumSubtitle, unittest.equals('foo')); 363 unittest.expect(o.referendumSubtitle, unittest.equals('foo'));
364 unittest.expect(o.referendumText, unittest.equals('foo')); 364 unittest.expect(o.referendumText, unittest.equals('foo'));
365 unittest.expect(o.referendumTitle, unittest.equals('foo')); 365 unittest.expect(o.referendumTitle, unittest.equals('foo'));
366 unittest.expect(o.referendumUrl, unittest.equals('foo')); 366 unittest.expect(o.referendumUrl, unittest.equals('foo'));
367 checkUnnamed625(o.roles); 367 checkUnnamed2610(o.roles);
368 checkUnnamed626(o.sources); 368 checkUnnamed2611(o.sources);
369 unittest.expect(o.special, unittest.equals('foo')); 369 unittest.expect(o.special, unittest.equals('foo'));
370 unittest.expect(o.type, unittest.equals('foo')); 370 unittest.expect(o.type, unittest.equals('foo'));
371 } 371 }
372 buildCounterContest--; 372 buildCounterContest--;
373 } 373 }
374 374
375 buildUnnamed627() { 375 buildUnnamed2612() {
376 var o = new core.List<api.DivisionSearchResult>(); 376 var o = new core.List<api.DivisionSearchResult>();
377 o.add(buildDivisionSearchResult()); 377 o.add(buildDivisionSearchResult());
378 o.add(buildDivisionSearchResult()); 378 o.add(buildDivisionSearchResult());
379 return o; 379 return o;
380 } 380 }
381 381
382 checkUnnamed627(core.List<api.DivisionSearchResult> o) { 382 checkUnnamed2612(core.List<api.DivisionSearchResult> o) {
383 unittest.expect(o, unittest.hasLength(2)); 383 unittest.expect(o, unittest.hasLength(2));
384 checkDivisionSearchResult(o[0]); 384 checkDivisionSearchResult(o[0]);
385 checkDivisionSearchResult(o[1]); 385 checkDivisionSearchResult(o[1]);
386 } 386 }
387 387
388 core.int buildCounterDivisionSearchResponse = 0; 388 core.int buildCounterDivisionSearchResponse = 0;
389 buildDivisionSearchResponse() { 389 buildDivisionSearchResponse() {
390 var o = new api.DivisionSearchResponse(); 390 var o = new api.DivisionSearchResponse();
391 buildCounterDivisionSearchResponse++; 391 buildCounterDivisionSearchResponse++;
392 if (buildCounterDivisionSearchResponse < 3) { 392 if (buildCounterDivisionSearchResponse < 3) {
393 o.kind = "foo"; 393 o.kind = "foo";
394 o.results = buildUnnamed627(); 394 o.results = buildUnnamed2612();
395 } 395 }
396 buildCounterDivisionSearchResponse--; 396 buildCounterDivisionSearchResponse--;
397 return o; 397 return o;
398 } 398 }
399 399
400 checkDivisionSearchResponse(api.DivisionSearchResponse o) { 400 checkDivisionSearchResponse(api.DivisionSearchResponse o) {
401 buildCounterDivisionSearchResponse++; 401 buildCounterDivisionSearchResponse++;
402 if (buildCounterDivisionSearchResponse < 3) { 402 if (buildCounterDivisionSearchResponse < 3) {
403 unittest.expect(o.kind, unittest.equals('foo')); 403 unittest.expect(o.kind, unittest.equals('foo'));
404 checkUnnamed627(o.results); 404 checkUnnamed2612(o.results);
405 } 405 }
406 buildCounterDivisionSearchResponse--; 406 buildCounterDivisionSearchResponse--;
407 } 407 }
408 408
409 buildUnnamed628() { 409 buildUnnamed2613() {
410 var o = new core.List<core.String>(); 410 var o = new core.List<core.String>();
411 o.add("foo"); 411 o.add("foo");
412 o.add("foo"); 412 o.add("foo");
413 return o; 413 return o;
414 } 414 }
415 415
416 checkUnnamed628(core.List<core.String> o) { 416 checkUnnamed2613(core.List<core.String> o) {
417 unittest.expect(o, unittest.hasLength(2)); 417 unittest.expect(o, unittest.hasLength(2));
418 unittest.expect(o[0], unittest.equals('foo')); 418 unittest.expect(o[0], unittest.equals('foo'));
419 unittest.expect(o[1], unittest.equals('foo')); 419 unittest.expect(o[1], unittest.equals('foo'));
420 } 420 }
421 421
422 core.int buildCounterDivisionSearchResult = 0; 422 core.int buildCounterDivisionSearchResult = 0;
423 buildDivisionSearchResult() { 423 buildDivisionSearchResult() {
424 var o = new api.DivisionSearchResult(); 424 var o = new api.DivisionSearchResult();
425 buildCounterDivisionSearchResult++; 425 buildCounterDivisionSearchResult++;
426 if (buildCounterDivisionSearchResult < 3) { 426 if (buildCounterDivisionSearchResult < 3) {
427 o.aliases = buildUnnamed628(); 427 o.aliases = buildUnnamed2613();
428 o.name = "foo"; 428 o.name = "foo";
429 o.ocdId = "foo"; 429 o.ocdId = "foo";
430 } 430 }
431 buildCounterDivisionSearchResult--; 431 buildCounterDivisionSearchResult--;
432 return o; 432 return o;
433 } 433 }
434 434
435 checkDivisionSearchResult(api.DivisionSearchResult o) { 435 checkDivisionSearchResult(api.DivisionSearchResult o) {
436 buildCounterDivisionSearchResult++; 436 buildCounterDivisionSearchResult++;
437 if (buildCounterDivisionSearchResult < 3) { 437 if (buildCounterDivisionSearchResult < 3) {
438 checkUnnamed628(o.aliases); 438 checkUnnamed2613(o.aliases);
439 unittest.expect(o.name, unittest.equals('foo')); 439 unittest.expect(o.name, unittest.equals('foo'));
440 unittest.expect(o.ocdId, unittest.equals('foo')); 440 unittest.expect(o.ocdId, unittest.equals('foo'));
441 } 441 }
442 buildCounterDivisionSearchResult--; 442 buildCounterDivisionSearchResult--;
443 } 443 }
444 444
445 core.int buildCounterElection = 0; 445 core.int buildCounterElection = 0;
446 buildElection() { 446 buildElection() {
447 var o = new api.Election(); 447 var o = new api.Election();
448 buildCounterElection++; 448 buildCounterElection++;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 if (buildCounterElectionOfficial < 3) { 487 if (buildCounterElectionOfficial < 3) {
488 unittest.expect(o.emailAddress, unittest.equals('foo')); 488 unittest.expect(o.emailAddress, unittest.equals('foo'));
489 unittest.expect(o.faxNumber, unittest.equals('foo')); 489 unittest.expect(o.faxNumber, unittest.equals('foo'));
490 unittest.expect(o.name, unittest.equals('foo')); 490 unittest.expect(o.name, unittest.equals('foo'));
491 unittest.expect(o.officePhoneNumber, unittest.equals('foo')); 491 unittest.expect(o.officePhoneNumber, unittest.equals('foo'));
492 unittest.expect(o.title, unittest.equals('foo')); 492 unittest.expect(o.title, unittest.equals('foo'));
493 } 493 }
494 buildCounterElectionOfficial--; 494 buildCounterElectionOfficial--;
495 } 495 }
496 496
497 buildUnnamed629() { 497 buildUnnamed2614() {
498 var o = new core.List<api.Election>(); 498 var o = new core.List<api.Election>();
499 o.add(buildElection()); 499 o.add(buildElection());
500 o.add(buildElection()); 500 o.add(buildElection());
501 return o; 501 return o;
502 } 502 }
503 503
504 checkUnnamed629(core.List<api.Election> o) { 504 checkUnnamed2614(core.List<api.Election> o) {
505 unittest.expect(o, unittest.hasLength(2)); 505 unittest.expect(o, unittest.hasLength(2));
506 checkElection(o[0]); 506 checkElection(o[0]);
507 checkElection(o[1]); 507 checkElection(o[1]);
508 } 508 }
509 509
510 core.int buildCounterElectionsQueryResponse = 0; 510 core.int buildCounterElectionsQueryResponse = 0;
511 buildElectionsQueryResponse() { 511 buildElectionsQueryResponse() {
512 var o = new api.ElectionsQueryResponse(); 512 var o = new api.ElectionsQueryResponse();
513 buildCounterElectionsQueryResponse++; 513 buildCounterElectionsQueryResponse++;
514 if (buildCounterElectionsQueryResponse < 3) { 514 if (buildCounterElectionsQueryResponse < 3) {
515 o.elections = buildUnnamed629(); 515 o.elections = buildUnnamed2614();
516 o.kind = "foo"; 516 o.kind = "foo";
517 } 517 }
518 buildCounterElectionsQueryResponse--; 518 buildCounterElectionsQueryResponse--;
519 return o; 519 return o;
520 } 520 }
521 521
522 checkElectionsQueryResponse(api.ElectionsQueryResponse o) { 522 checkElectionsQueryResponse(api.ElectionsQueryResponse o) {
523 buildCounterElectionsQueryResponse++; 523 buildCounterElectionsQueryResponse++;
524 if (buildCounterElectionsQueryResponse < 3) { 524 if (buildCounterElectionsQueryResponse < 3) {
525 checkUnnamed629(o.elections); 525 checkUnnamed2614(o.elections);
526 unittest.expect(o.kind, unittest.equals('foo')); 526 unittest.expect(o.kind, unittest.equals('foo'));
527 } 527 }
528 buildCounterElectionsQueryResponse--; 528 buildCounterElectionsQueryResponse--;
529 } 529 }
530 530
531 core.int buildCounterElectoralDistrict = 0; 531 core.int buildCounterElectoralDistrict = 0;
532 buildElectoralDistrict() { 532 buildElectoralDistrict() {
533 var o = new api.ElectoralDistrict(); 533 var o = new api.ElectoralDistrict();
534 buildCounterElectoralDistrict++; 534 buildCounterElectoralDistrict++;
535 if (buildCounterElectoralDistrict < 3) { 535 if (buildCounterElectoralDistrict < 3) {
536 o.id = "foo"; 536 o.id = "foo";
537 o.kgForeignKey = "foo";
537 o.name = "foo"; 538 o.name = "foo";
538 o.scope = "foo"; 539 o.scope = "foo";
539 } 540 }
540 buildCounterElectoralDistrict--; 541 buildCounterElectoralDistrict--;
541 return o; 542 return o;
542 } 543 }
543 544
544 checkElectoralDistrict(api.ElectoralDistrict o) { 545 checkElectoralDistrict(api.ElectoralDistrict o) {
545 buildCounterElectoralDistrict++; 546 buildCounterElectoralDistrict++;
546 if (buildCounterElectoralDistrict < 3) { 547 if (buildCounterElectoralDistrict < 3) {
547 unittest.expect(o.id, unittest.equals('foo')); 548 unittest.expect(o.id, unittest.equals('foo'));
549 unittest.expect(o.kgForeignKey, unittest.equals('foo'));
548 unittest.expect(o.name, unittest.equals('foo')); 550 unittest.expect(o.name, unittest.equals('foo'));
549 unittest.expect(o.scope, unittest.equals('foo')); 551 unittest.expect(o.scope, unittest.equals('foo'));
550 } 552 }
551 buildCounterElectoralDistrict--; 553 buildCounterElectoralDistrict--;
552 } 554 }
553 555
554 buildUnnamed630() { 556 buildUnnamed2615() {
555 var o = new core.List<core.String>(); 557 var o = new core.List<core.String>();
556 o.add("foo"); 558 o.add("foo");
557 o.add("foo"); 559 o.add("foo");
558 return o; 560 return o;
559 } 561 }
560 562
561 checkUnnamed630(core.List<core.String> o) { 563 checkUnnamed2615(core.List<core.String> o) {
562 unittest.expect(o, unittest.hasLength(2)); 564 unittest.expect(o, unittest.hasLength(2));
563 unittest.expect(o[0], unittest.equals('foo')); 565 unittest.expect(o[0], unittest.equals('foo'));
564 unittest.expect(o[1], unittest.equals('foo')); 566 unittest.expect(o[1], unittest.equals('foo'));
565 } 567 }
566 568
567 buildUnnamed631() { 569 buildUnnamed2616() {
568 var o = new core.List<core.int>(); 570 var o = new core.List<core.int>();
569 o.add(42); 571 o.add(42);
570 o.add(42); 572 o.add(42);
571 return o; 573 return o;
572 } 574 }
573 575
574 checkUnnamed631(core.List<core.int> o) { 576 checkUnnamed2616(core.List<core.int> o) {
575 unittest.expect(o, unittest.hasLength(2)); 577 unittest.expect(o, unittest.hasLength(2));
576 unittest.expect(o[0], unittest.equals(42)); 578 unittest.expect(o[0], unittest.equals(42));
577 unittest.expect(o[1], unittest.equals(42)); 579 unittest.expect(o[1], unittest.equals(42));
578 } 580 }
579 581
580 core.int buildCounterGeographicDivision = 0; 582 core.int buildCounterGeographicDivision = 0;
581 buildGeographicDivision() { 583 buildGeographicDivision() {
582 var o = new api.GeographicDivision(); 584 var o = new api.GeographicDivision();
583 buildCounterGeographicDivision++; 585 buildCounterGeographicDivision++;
584 if (buildCounterGeographicDivision < 3) { 586 if (buildCounterGeographicDivision < 3) {
585 o.alsoKnownAs = buildUnnamed630(); 587 o.alsoKnownAs = buildUnnamed2615();
586 o.name = "foo"; 588 o.name = "foo";
587 o.officeIndices = buildUnnamed631(); 589 o.officeIndices = buildUnnamed2616();
588 } 590 }
589 buildCounterGeographicDivision--; 591 buildCounterGeographicDivision--;
590 return o; 592 return o;
591 } 593 }
592 594
593 checkGeographicDivision(api.GeographicDivision o) { 595 checkGeographicDivision(api.GeographicDivision o) {
594 buildCounterGeographicDivision++; 596 buildCounterGeographicDivision++;
595 if (buildCounterGeographicDivision < 3) { 597 if (buildCounterGeographicDivision < 3) {
596 checkUnnamed630(o.alsoKnownAs); 598 checkUnnamed2615(o.alsoKnownAs);
597 unittest.expect(o.name, unittest.equals('foo')); 599 unittest.expect(o.name, unittest.equals('foo'));
598 checkUnnamed631(o.officeIndices); 600 checkUnnamed2616(o.officeIndices);
599 } 601 }
600 buildCounterGeographicDivision--; 602 buildCounterGeographicDivision--;
601 } 603 }
602 604
603 buildUnnamed632() { 605 buildUnnamed2617() {
604 var o = new core.List<core.String>(); 606 var o = new core.List<core.String>();
605 o.add("foo"); 607 o.add("foo");
606 o.add("foo"); 608 o.add("foo");
607 return o; 609 return o;
608 } 610 }
609 611
610 checkUnnamed632(core.List<core.String> o) { 612 checkUnnamed2617(core.List<core.String> o) {
611 unittest.expect(o, unittest.hasLength(2)); 613 unittest.expect(o, unittest.hasLength(2));
612 unittest.expect(o[0], unittest.equals('foo')); 614 unittest.expect(o[0], unittest.equals('foo'));
613 unittest.expect(o[1], unittest.equals('foo')); 615 unittest.expect(o[1], unittest.equals('foo'));
614 } 616 }
615 617
616 buildUnnamed633() { 618 buildUnnamed2618() {
617 var o = new core.List<core.int>(); 619 var o = new core.List<core.int>();
618 o.add(42); 620 o.add(42);
619 o.add(42); 621 o.add(42);
620 return o; 622 return o;
621 } 623 }
622 624
623 checkUnnamed633(core.List<core.int> o) { 625 checkUnnamed2618(core.List<core.int> o) {
624 unittest.expect(o, unittest.hasLength(2)); 626 unittest.expect(o, unittest.hasLength(2));
625 unittest.expect(o[0], unittest.equals(42)); 627 unittest.expect(o[0], unittest.equals(42));
626 unittest.expect(o[1], unittest.equals(42)); 628 unittest.expect(o[1], unittest.equals(42));
627 } 629 }
628 630
629 buildUnnamed634() { 631 buildUnnamed2619() {
630 var o = new core.List<core.String>(); 632 var o = new core.List<core.String>();
631 o.add("foo"); 633 o.add("foo");
632 o.add("foo"); 634 o.add("foo");
633 return o; 635 return o;
634 } 636 }
635 637
636 checkUnnamed634(core.List<core.String> o) { 638 checkUnnamed2619(core.List<core.String> o) {
637 unittest.expect(o, unittest.hasLength(2)); 639 unittest.expect(o, unittest.hasLength(2));
638 unittest.expect(o[0], unittest.equals('foo')); 640 unittest.expect(o[0], unittest.equals('foo'));
639 unittest.expect(o[1], unittest.equals('foo')); 641 unittest.expect(o[1], unittest.equals('foo'));
640 } 642 }
641 643
642 buildUnnamed635() { 644 buildUnnamed2620() {
643 var o = new core.List<api.Source>(); 645 var o = new core.List<api.Source>();
644 o.add(buildSource()); 646 o.add(buildSource());
645 o.add(buildSource()); 647 o.add(buildSource());
646 return o; 648 return o;
647 } 649 }
648 650
649 checkUnnamed635(core.List<api.Source> o) { 651 checkUnnamed2620(core.List<api.Source> o) {
650 unittest.expect(o, unittest.hasLength(2)); 652 unittest.expect(o, unittest.hasLength(2));
651 checkSource(o[0]); 653 checkSource(o[0]);
652 checkSource(o[1]); 654 checkSource(o[1]);
653 } 655 }
654 656
655 core.int buildCounterOffice = 0; 657 core.int buildCounterOffice = 0;
656 buildOffice() { 658 buildOffice() {
657 var o = new api.Office(); 659 var o = new api.Office();
658 buildCounterOffice++; 660 buildCounterOffice++;
659 if (buildCounterOffice < 3) { 661 if (buildCounterOffice < 3) {
660 o.divisionId = "foo"; 662 o.divisionId = "foo";
661 o.levels = buildUnnamed632(); 663 o.levels = buildUnnamed2617();
662 o.name = "foo"; 664 o.name = "foo";
663 o.officialIndices = buildUnnamed633(); 665 o.officialIndices = buildUnnamed2618();
664 o.roles = buildUnnamed634(); 666 o.roles = buildUnnamed2619();
665 o.sources = buildUnnamed635(); 667 o.sources = buildUnnamed2620();
666 } 668 }
667 buildCounterOffice--; 669 buildCounterOffice--;
668 return o; 670 return o;
669 } 671 }
670 672
671 checkOffice(api.Office o) { 673 checkOffice(api.Office o) {
672 buildCounterOffice++; 674 buildCounterOffice++;
673 if (buildCounterOffice < 3) { 675 if (buildCounterOffice < 3) {
674 unittest.expect(o.divisionId, unittest.equals('foo')); 676 unittest.expect(o.divisionId, unittest.equals('foo'));
675 checkUnnamed632(o.levels); 677 checkUnnamed2617(o.levels);
676 unittest.expect(o.name, unittest.equals('foo')); 678 unittest.expect(o.name, unittest.equals('foo'));
677 checkUnnamed633(o.officialIndices); 679 checkUnnamed2618(o.officialIndices);
678 checkUnnamed634(o.roles); 680 checkUnnamed2619(o.roles);
679 checkUnnamed635(o.sources); 681 checkUnnamed2620(o.sources);
680 } 682 }
681 buildCounterOffice--; 683 buildCounterOffice--;
682 } 684 }
683 685
684 buildUnnamed636() { 686 buildUnnamed2621() {
685 var o = new core.List<api.SimpleAddressType>(); 687 var o = new core.List<api.SimpleAddressType>();
686 o.add(buildSimpleAddressType()); 688 o.add(buildSimpleAddressType());
687 o.add(buildSimpleAddressType()); 689 o.add(buildSimpleAddressType());
688 return o; 690 return o;
689 } 691 }
690 692
691 checkUnnamed636(core.List<api.SimpleAddressType> o) { 693 checkUnnamed2621(core.List<api.SimpleAddressType> o) {
692 unittest.expect(o, unittest.hasLength(2)); 694 unittest.expect(o, unittest.hasLength(2));
693 checkSimpleAddressType(o[0]); 695 checkSimpleAddressType(o[0]);
694 checkSimpleAddressType(o[1]); 696 checkSimpleAddressType(o[1]);
695 } 697 }
696 698
697 buildUnnamed637() { 699 buildUnnamed2622() {
698 var o = new core.List<api.Channel>(); 700 var o = new core.List<api.Channel>();
699 o.add(buildChannel()); 701 o.add(buildChannel());
700 o.add(buildChannel()); 702 o.add(buildChannel());
701 return o; 703 return o;
702 } 704 }
703 705
704 checkUnnamed637(core.List<api.Channel> o) { 706 checkUnnamed2622(core.List<api.Channel> o) {
705 unittest.expect(o, unittest.hasLength(2)); 707 unittest.expect(o, unittest.hasLength(2));
706 checkChannel(o[0]); 708 checkChannel(o[0]);
707 checkChannel(o[1]); 709 checkChannel(o[1]);
708 } 710 }
709 711
710 buildUnnamed638() { 712 buildUnnamed2623() {
711 var o = new core.List<core.String>(); 713 var o = new core.List<core.String>();
712 o.add("foo"); 714 o.add("foo");
713 o.add("foo"); 715 o.add("foo");
714 return o; 716 return o;
715 } 717 }
716 718
717 checkUnnamed638(core.List<core.String> o) { 719 checkUnnamed2623(core.List<core.String> o) {
718 unittest.expect(o, unittest.hasLength(2)); 720 unittest.expect(o, unittest.hasLength(2));
719 unittest.expect(o[0], unittest.equals('foo')); 721 unittest.expect(o[0], unittest.equals('foo'));
720 unittest.expect(o[1], unittest.equals('foo')); 722 unittest.expect(o[1], unittest.equals('foo'));
721 } 723 }
722 724
723 buildUnnamed639() { 725 buildUnnamed2624() {
724 var o = new core.List<core.String>(); 726 var o = new core.List<core.String>();
725 o.add("foo"); 727 o.add("foo");
726 o.add("foo"); 728 o.add("foo");
727 return o; 729 return o;
728 } 730 }
729 731
730 checkUnnamed639(core.List<core.String> o) { 732 checkUnnamed2624(core.List<core.String> o) {
731 unittest.expect(o, unittest.hasLength(2)); 733 unittest.expect(o, unittest.hasLength(2));
732 unittest.expect(o[0], unittest.equals('foo')); 734 unittest.expect(o[0], unittest.equals('foo'));
733 unittest.expect(o[1], unittest.equals('foo')); 735 unittest.expect(o[1], unittest.equals('foo'));
734 } 736 }
735 737
736 buildUnnamed640() { 738 buildUnnamed2625() {
737 var o = new core.List<core.String>(); 739 var o = new core.List<core.String>();
738 o.add("foo"); 740 o.add("foo");
739 o.add("foo"); 741 o.add("foo");
740 return o; 742 return o;
741 } 743 }
742 744
743 checkUnnamed640(core.List<core.String> o) { 745 checkUnnamed2625(core.List<core.String> o) {
744 unittest.expect(o, unittest.hasLength(2)); 746 unittest.expect(o, unittest.hasLength(2));
745 unittest.expect(o[0], unittest.equals('foo')); 747 unittest.expect(o[0], unittest.equals('foo'));
746 unittest.expect(o[1], unittest.equals('foo')); 748 unittest.expect(o[1], unittest.equals('foo'));
747 } 749 }
748 750
749 core.int buildCounterOfficial = 0; 751 core.int buildCounterOfficial = 0;
750 buildOfficial() { 752 buildOfficial() {
751 var o = new api.Official(); 753 var o = new api.Official();
752 buildCounterOfficial++; 754 buildCounterOfficial++;
753 if (buildCounterOfficial < 3) { 755 if (buildCounterOfficial < 3) {
754 o.address = buildUnnamed636(); 756 o.address = buildUnnamed2621();
755 o.channels = buildUnnamed637(); 757 o.channels = buildUnnamed2622();
756 o.emails = buildUnnamed638(); 758 o.emails = buildUnnamed2623();
757 o.name = "foo"; 759 o.name = "foo";
758 o.party = "foo"; 760 o.party = "foo";
759 o.phones = buildUnnamed639(); 761 o.phones = buildUnnamed2624();
760 o.photoUrl = "foo"; 762 o.photoUrl = "foo";
761 o.urls = buildUnnamed640(); 763 o.urls = buildUnnamed2625();
762 } 764 }
763 buildCounterOfficial--; 765 buildCounterOfficial--;
764 return o; 766 return o;
765 } 767 }
766 768
767 checkOfficial(api.Official o) { 769 checkOfficial(api.Official o) {
768 buildCounterOfficial++; 770 buildCounterOfficial++;
769 if (buildCounterOfficial < 3) { 771 if (buildCounterOfficial < 3) {
770 checkUnnamed636(o.address); 772 checkUnnamed2621(o.address);
771 checkUnnamed637(o.channels); 773 checkUnnamed2622(o.channels);
772 checkUnnamed638(o.emails); 774 checkUnnamed2623(o.emails);
773 unittest.expect(o.name, unittest.equals('foo')); 775 unittest.expect(o.name, unittest.equals('foo'));
774 unittest.expect(o.party, unittest.equals('foo')); 776 unittest.expect(o.party, unittest.equals('foo'));
775 checkUnnamed639(o.phones); 777 checkUnnamed2624(o.phones);
776 unittest.expect(o.photoUrl, unittest.equals('foo')); 778 unittest.expect(o.photoUrl, unittest.equals('foo'));
777 checkUnnamed640(o.urls); 779 checkUnnamed2625(o.urls);
778 } 780 }
779 buildCounterOfficial--; 781 buildCounterOfficial--;
780 } 782 }
781 783
782 buildUnnamed641() { 784 buildUnnamed2626() {
783 var o = new core.List<api.Source>(); 785 var o = new core.List<api.Source>();
784 o.add(buildSource()); 786 o.add(buildSource());
785 o.add(buildSource()); 787 o.add(buildSource());
786 return o; 788 return o;
787 } 789 }
788 790
789 checkUnnamed641(core.List<api.Source> o) { 791 checkUnnamed2626(core.List<api.Source> o) {
790 unittest.expect(o, unittest.hasLength(2)); 792 unittest.expect(o, unittest.hasLength(2));
791 checkSource(o[0]); 793 checkSource(o[0]);
792 checkSource(o[1]); 794 checkSource(o[1]);
793 } 795 }
794 796
795 core.int buildCounterPollingLocation = 0; 797 core.int buildCounterPollingLocation = 0;
796 buildPollingLocation() { 798 buildPollingLocation() {
797 var o = new api.PollingLocation(); 799 var o = new api.PollingLocation();
798 buildCounterPollingLocation++; 800 buildCounterPollingLocation++;
799 if (buildCounterPollingLocation < 3) { 801 if (buildCounterPollingLocation < 3) {
800 o.address = buildSimpleAddressType(); 802 o.address = buildSimpleAddressType();
801 o.endDate = "foo"; 803 o.endDate = "foo";
802 o.id = "foo"; 804 o.id = "foo";
803 o.name = "foo"; 805 o.name = "foo";
804 o.notes = "foo"; 806 o.notes = "foo";
805 o.pollingHours = "foo"; 807 o.pollingHours = "foo";
806 o.sources = buildUnnamed641(); 808 o.sources = buildUnnamed2626();
807 o.startDate = "foo"; 809 o.startDate = "foo";
808 o.voterServices = "foo"; 810 o.voterServices = "foo";
809 } 811 }
810 buildCounterPollingLocation--; 812 buildCounterPollingLocation--;
811 return o; 813 return o;
812 } 814 }
813 815
814 checkPollingLocation(api.PollingLocation o) { 816 checkPollingLocation(api.PollingLocation o) {
815 buildCounterPollingLocation++; 817 buildCounterPollingLocation++;
816 if (buildCounterPollingLocation < 3) { 818 if (buildCounterPollingLocation < 3) {
817 checkSimpleAddressType(o.address); 819 checkSimpleAddressType(o.address);
818 unittest.expect(o.endDate, unittest.equals('foo')); 820 unittest.expect(o.endDate, unittest.equals('foo'));
819 unittest.expect(o.id, unittest.equals('foo')); 821 unittest.expect(o.id, unittest.equals('foo'));
820 unittest.expect(o.name, unittest.equals('foo')); 822 unittest.expect(o.name, unittest.equals('foo'));
821 unittest.expect(o.notes, unittest.equals('foo')); 823 unittest.expect(o.notes, unittest.equals('foo'));
822 unittest.expect(o.pollingHours, unittest.equals('foo')); 824 unittest.expect(o.pollingHours, unittest.equals('foo'));
823 checkUnnamed641(o.sources); 825 checkUnnamed2626(o.sources);
824 unittest.expect(o.startDate, unittest.equals('foo')); 826 unittest.expect(o.startDate, unittest.equals('foo'));
825 unittest.expect(o.voterServices, unittest.equals('foo')); 827 unittest.expect(o.voterServices, unittest.equals('foo'));
826 } 828 }
827 buildCounterPollingLocation--; 829 buildCounterPollingLocation--;
828 } 830 }
829 831
830 buildUnnamed642() { 832 buildUnnamed2627() {
831 var o = new core.Map<core.String, api.GeographicDivision>(); 833 var o = new core.Map<core.String, api.GeographicDivision>();
832 o["x"] = buildGeographicDivision(); 834 o["x"] = buildGeographicDivision();
833 o["y"] = buildGeographicDivision(); 835 o["y"] = buildGeographicDivision();
834 return o; 836 return o;
835 } 837 }
836 838
837 checkUnnamed642(core.Map<core.String, api.GeographicDivision> o) { 839 checkUnnamed2627(core.Map<core.String, api.GeographicDivision> o) {
838 unittest.expect(o, unittest.hasLength(2)); 840 unittest.expect(o, unittest.hasLength(2));
839 checkGeographicDivision(o["x"]); 841 checkGeographicDivision(o["x"]);
840 checkGeographicDivision(o["y"]); 842 checkGeographicDivision(o["y"]);
841 } 843 }
842 844
843 buildUnnamed643() { 845 buildUnnamed2628() {
844 var o = new core.List<api.Office>(); 846 var o = new core.List<api.Office>();
845 o.add(buildOffice()); 847 o.add(buildOffice());
846 o.add(buildOffice()); 848 o.add(buildOffice());
847 return o; 849 return o;
848 } 850 }
849 851
850 checkUnnamed643(core.List<api.Office> o) { 852 checkUnnamed2628(core.List<api.Office> o) {
851 unittest.expect(o, unittest.hasLength(2)); 853 unittest.expect(o, unittest.hasLength(2));
852 checkOffice(o[0]); 854 checkOffice(o[0]);
853 checkOffice(o[1]); 855 checkOffice(o[1]);
854 } 856 }
855 857
856 buildUnnamed644() { 858 buildUnnamed2629() {
857 var o = new core.List<api.Official>(); 859 var o = new core.List<api.Official>();
858 o.add(buildOfficial()); 860 o.add(buildOfficial());
859 o.add(buildOfficial()); 861 o.add(buildOfficial());
860 return o; 862 return o;
861 } 863 }
862 864
863 checkUnnamed644(core.List<api.Official> o) { 865 checkUnnamed2629(core.List<api.Official> o) {
864 unittest.expect(o, unittest.hasLength(2)); 866 unittest.expect(o, unittest.hasLength(2));
865 checkOfficial(o[0]); 867 checkOfficial(o[0]);
866 checkOfficial(o[1]); 868 checkOfficial(o[1]);
867 } 869 }
868 870
869 core.int buildCounterRepresentativeInfoData = 0; 871 core.int buildCounterRepresentativeInfoData = 0;
870 buildRepresentativeInfoData() { 872 buildRepresentativeInfoData() {
871 var o = new api.RepresentativeInfoData(); 873 var o = new api.RepresentativeInfoData();
872 buildCounterRepresentativeInfoData++; 874 buildCounterRepresentativeInfoData++;
873 if (buildCounterRepresentativeInfoData < 3) { 875 if (buildCounterRepresentativeInfoData < 3) {
874 o.divisions = buildUnnamed642(); 876 o.divisions = buildUnnamed2627();
875 o.offices = buildUnnamed643(); 877 o.offices = buildUnnamed2628();
876 o.officials = buildUnnamed644(); 878 o.officials = buildUnnamed2629();
877 } 879 }
878 buildCounterRepresentativeInfoData--; 880 buildCounterRepresentativeInfoData--;
879 return o; 881 return o;
880 } 882 }
881 883
882 checkRepresentativeInfoData(api.RepresentativeInfoData o) { 884 checkRepresentativeInfoData(api.RepresentativeInfoData o) {
883 buildCounterRepresentativeInfoData++; 885 buildCounterRepresentativeInfoData++;
884 if (buildCounterRepresentativeInfoData < 3) { 886 if (buildCounterRepresentativeInfoData < 3) {
885 checkUnnamed642(o.divisions); 887 checkUnnamed2627(o.divisions);
886 checkUnnamed643(o.offices); 888 checkUnnamed2628(o.offices);
887 checkUnnamed644(o.officials); 889 checkUnnamed2629(o.officials);
888 } 890 }
889 buildCounterRepresentativeInfoData--; 891 buildCounterRepresentativeInfoData--;
890 } 892 }
891 893
892 buildUnnamed645() { 894 buildUnnamed2630() {
893 var o = new core.Map<core.String, api.GeographicDivision>(); 895 var o = new core.Map<core.String, api.GeographicDivision>();
894 o["x"] = buildGeographicDivision(); 896 o["x"] = buildGeographicDivision();
895 o["y"] = buildGeographicDivision(); 897 o["y"] = buildGeographicDivision();
896 return o; 898 return o;
897 } 899 }
898 900
899 checkUnnamed645(core.Map<core.String, api.GeographicDivision> o) { 901 checkUnnamed2630(core.Map<core.String, api.GeographicDivision> o) {
900 unittest.expect(o, unittest.hasLength(2)); 902 unittest.expect(o, unittest.hasLength(2));
901 checkGeographicDivision(o["x"]); 903 checkGeographicDivision(o["x"]);
902 checkGeographicDivision(o["y"]); 904 checkGeographicDivision(o["y"]);
903 } 905 }
904 906
905 buildUnnamed646() { 907 buildUnnamed2631() {
906 var o = new core.List<api.Office>(); 908 var o = new core.List<api.Office>();
907 o.add(buildOffice()); 909 o.add(buildOffice());
908 o.add(buildOffice()); 910 o.add(buildOffice());
909 return o; 911 return o;
910 } 912 }
911 913
912 checkUnnamed646(core.List<api.Office> o) { 914 checkUnnamed2631(core.List<api.Office> o) {
913 unittest.expect(o, unittest.hasLength(2)); 915 unittest.expect(o, unittest.hasLength(2));
914 checkOffice(o[0]); 916 checkOffice(o[0]);
915 checkOffice(o[1]); 917 checkOffice(o[1]);
916 } 918 }
917 919
918 buildUnnamed647() { 920 buildUnnamed2632() {
919 var o = new core.List<api.Official>(); 921 var o = new core.List<api.Official>();
920 o.add(buildOfficial()); 922 o.add(buildOfficial());
921 o.add(buildOfficial()); 923 o.add(buildOfficial());
922 return o; 924 return o;
923 } 925 }
924 926
925 checkUnnamed647(core.List<api.Official> o) { 927 checkUnnamed2632(core.List<api.Official> o) {
926 unittest.expect(o, unittest.hasLength(2)); 928 unittest.expect(o, unittest.hasLength(2));
927 checkOfficial(o[0]); 929 checkOfficial(o[0]);
928 checkOfficial(o[1]); 930 checkOfficial(o[1]);
929 } 931 }
930 932
931 core.int buildCounterRepresentativeInfoResponse = 0; 933 core.int buildCounterRepresentativeInfoResponse = 0;
932 buildRepresentativeInfoResponse() { 934 buildRepresentativeInfoResponse() {
933 var o = new api.RepresentativeInfoResponse(); 935 var o = new api.RepresentativeInfoResponse();
934 buildCounterRepresentativeInfoResponse++; 936 buildCounterRepresentativeInfoResponse++;
935 if (buildCounterRepresentativeInfoResponse < 3) { 937 if (buildCounterRepresentativeInfoResponse < 3) {
936 o.divisions = buildUnnamed645(); 938 o.divisions = buildUnnamed2630();
937 o.kind = "foo"; 939 o.kind = "foo";
938 o.normalizedInput = buildSimpleAddressType(); 940 o.normalizedInput = buildSimpleAddressType();
939 o.offices = buildUnnamed646(); 941 o.offices = buildUnnamed2631();
940 o.officials = buildUnnamed647(); 942 o.officials = buildUnnamed2632();
941 } 943 }
942 buildCounterRepresentativeInfoResponse--; 944 buildCounterRepresentativeInfoResponse--;
943 return o; 945 return o;
944 } 946 }
945 947
946 checkRepresentativeInfoResponse(api.RepresentativeInfoResponse o) { 948 checkRepresentativeInfoResponse(api.RepresentativeInfoResponse o) {
947 buildCounterRepresentativeInfoResponse++; 949 buildCounterRepresentativeInfoResponse++;
948 if (buildCounterRepresentativeInfoResponse < 3) { 950 if (buildCounterRepresentativeInfoResponse < 3) {
949 checkUnnamed645(o.divisions); 951 checkUnnamed2630(o.divisions);
950 unittest.expect(o.kind, unittest.equals('foo')); 952 unittest.expect(o.kind, unittest.equals('foo'));
951 checkSimpleAddressType(o.normalizedInput); 953 checkSimpleAddressType(o.normalizedInput);
952 checkUnnamed646(o.offices); 954 checkUnnamed2631(o.offices);
953 checkUnnamed647(o.officials); 955 checkUnnamed2632(o.officials);
954 } 956 }
955 buildCounterRepresentativeInfoResponse--; 957 buildCounterRepresentativeInfoResponse--;
956 } 958 }
957 959
958 core.int buildCounterSimpleAddressType = 0; 960 core.int buildCounterSimpleAddressType = 0;
959 buildSimpleAddressType() { 961 buildSimpleAddressType() {
960 var o = new api.SimpleAddressType(); 962 var o = new api.SimpleAddressType();
961 buildCounterSimpleAddressType++; 963 buildCounterSimpleAddressType++;
962 if (buildCounterSimpleAddressType < 3) { 964 if (buildCounterSimpleAddressType < 3) {
963 o.city = "foo"; 965 o.city = "foo";
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
1000 1002
1001 checkSource(api.Source o) { 1003 checkSource(api.Source o) {
1002 buildCounterSource++; 1004 buildCounterSource++;
1003 if (buildCounterSource < 3) { 1005 if (buildCounterSource < 3) {
1004 unittest.expect(o.name, unittest.equals('foo')); 1006 unittest.expect(o.name, unittest.equals('foo'));
1005 unittest.expect(o.official, unittest.isTrue); 1007 unittest.expect(o.official, unittest.isTrue);
1006 } 1008 }
1007 buildCounterSource--; 1009 buildCounterSource--;
1008 } 1010 }
1009 1011
1010 buildUnnamed648() { 1012 buildUnnamed2633() {
1011 var o = new core.List<api.Contest>(); 1013 var o = new core.List<api.Contest>();
1012 o.add(buildContest()); 1014 o.add(buildContest());
1013 o.add(buildContest()); 1015 o.add(buildContest());
1014 return o; 1016 return o;
1015 } 1017 }
1016 1018
1017 checkUnnamed648(core.List<api.Contest> o) { 1019 checkUnnamed2633(core.List<api.Contest> o) {
1018 unittest.expect(o, unittest.hasLength(2)); 1020 unittest.expect(o, unittest.hasLength(2));
1019 checkContest(o[0]); 1021 checkContest(o[0]);
1020 checkContest(o[1]); 1022 checkContest(o[1]);
1021 } 1023 }
1022 1024
1023 buildUnnamed649() { 1025 buildUnnamed2634() {
1024 var o = new core.List<api.PollingLocation>(); 1026 var o = new core.List<api.PollingLocation>();
1025 o.add(buildPollingLocation()); 1027 o.add(buildPollingLocation());
1026 o.add(buildPollingLocation()); 1028 o.add(buildPollingLocation());
1027 return o; 1029 return o;
1028 } 1030 }
1029 1031
1030 checkUnnamed649(core.List<api.PollingLocation> o) { 1032 checkUnnamed2634(core.List<api.PollingLocation> o) {
1031 unittest.expect(o, unittest.hasLength(2)); 1033 unittest.expect(o, unittest.hasLength(2));
1032 checkPollingLocation(o[0]); 1034 checkPollingLocation(o[0]);
1033 checkPollingLocation(o[1]); 1035 checkPollingLocation(o[1]);
1034 } 1036 }
1035 1037
1036 buildUnnamed650() { 1038 buildUnnamed2635() {
1037 var o = new core.List<api.PollingLocation>(); 1039 var o = new core.List<api.PollingLocation>();
1038 o.add(buildPollingLocation()); 1040 o.add(buildPollingLocation());
1039 o.add(buildPollingLocation()); 1041 o.add(buildPollingLocation());
1040 return o; 1042 return o;
1041 } 1043 }
1042 1044
1043 checkUnnamed650(core.List<api.PollingLocation> o) { 1045 checkUnnamed2635(core.List<api.PollingLocation> o) {
1044 unittest.expect(o, unittest.hasLength(2)); 1046 unittest.expect(o, unittest.hasLength(2));
1045 checkPollingLocation(o[0]); 1047 checkPollingLocation(o[0]);
1046 checkPollingLocation(o[1]); 1048 checkPollingLocation(o[1]);
1047 } 1049 }
1048 1050
1049 buildUnnamed651() { 1051 buildUnnamed2636() {
1050 var o = new core.List<api.Election>(); 1052 var o = new core.List<api.Election>();
1051 o.add(buildElection()); 1053 o.add(buildElection());
1052 o.add(buildElection()); 1054 o.add(buildElection());
1053 return o; 1055 return o;
1054 } 1056 }
1055 1057
1056 checkUnnamed651(core.List<api.Election> o) { 1058 checkUnnamed2636(core.List<api.Election> o) {
1057 unittest.expect(o, unittest.hasLength(2)); 1059 unittest.expect(o, unittest.hasLength(2));
1058 checkElection(o[0]); 1060 checkElection(o[0]);
1059 checkElection(o[1]); 1061 checkElection(o[1]);
1060 } 1062 }
1061 1063
1062 buildUnnamed652() { 1064 buildUnnamed2637() {
1063 var o = new core.List<api.PollingLocation>(); 1065 var o = new core.List<api.PollingLocation>();
1064 o.add(buildPollingLocation()); 1066 o.add(buildPollingLocation());
1065 o.add(buildPollingLocation()); 1067 o.add(buildPollingLocation());
1066 return o; 1068 return o;
1067 } 1069 }
1068 1070
1069 checkUnnamed652(core.List<api.PollingLocation> o) { 1071 checkUnnamed2637(core.List<api.PollingLocation> o) {
1070 unittest.expect(o, unittest.hasLength(2)); 1072 unittest.expect(o, unittest.hasLength(2));
1071 checkPollingLocation(o[0]); 1073 checkPollingLocation(o[0]);
1072 checkPollingLocation(o[1]); 1074 checkPollingLocation(o[1]);
1073 } 1075 }
1074 1076
1075 buildUnnamed653() { 1077 buildUnnamed2638() {
1076 var o = new core.List<api.AdministrationRegion>(); 1078 var o = new core.List<api.AdministrationRegion>();
1077 o.add(buildAdministrationRegion()); 1079 o.add(buildAdministrationRegion());
1078 o.add(buildAdministrationRegion()); 1080 o.add(buildAdministrationRegion());
1079 return o; 1081 return o;
1080 } 1082 }
1081 1083
1082 checkUnnamed653(core.List<api.AdministrationRegion> o) { 1084 checkUnnamed2638(core.List<api.AdministrationRegion> o) {
1083 unittest.expect(o, unittest.hasLength(2)); 1085 unittest.expect(o, unittest.hasLength(2));
1084 checkAdministrationRegion(o[0]); 1086 checkAdministrationRegion(o[0]);
1085 checkAdministrationRegion(o[1]); 1087 checkAdministrationRegion(o[1]);
1086 } 1088 }
1087 1089
1088 core.int buildCounterVoterInfoResponse = 0; 1090 core.int buildCounterVoterInfoResponse = 0;
1089 buildVoterInfoResponse() { 1091 buildVoterInfoResponse() {
1090 var o = new api.VoterInfoResponse(); 1092 var o = new api.VoterInfoResponse();
1091 buildCounterVoterInfoResponse++; 1093 buildCounterVoterInfoResponse++;
1092 if (buildCounterVoterInfoResponse < 3) { 1094 if (buildCounterVoterInfoResponse < 3) {
1093 o.contests = buildUnnamed648(); 1095 o.contests = buildUnnamed2633();
1094 o.dropOffLocations = buildUnnamed649(); 1096 o.dropOffLocations = buildUnnamed2634();
1095 o.earlyVoteSites = buildUnnamed650(); 1097 o.earlyVoteSites = buildUnnamed2635();
1096 o.election = buildElection(); 1098 o.election = buildElection();
1097 o.kind = "foo"; 1099 o.kind = "foo";
1098 o.mailOnly = true; 1100 o.mailOnly = true;
1099 o.normalizedInput = buildSimpleAddressType(); 1101 o.normalizedInput = buildSimpleAddressType();
1100 o.otherElections = buildUnnamed651(); 1102 o.otherElections = buildUnnamed2636();
1101 o.pollingLocations = buildUnnamed652(); 1103 o.pollingLocations = buildUnnamed2637();
1102 o.precinctId = "foo"; 1104 o.precinctId = "foo";
1103 o.state = buildUnnamed653(); 1105 o.state = buildUnnamed2638();
1104 } 1106 }
1105 buildCounterVoterInfoResponse--; 1107 buildCounterVoterInfoResponse--;
1106 return o; 1108 return o;
1107 } 1109 }
1108 1110
1109 checkVoterInfoResponse(api.VoterInfoResponse o) { 1111 checkVoterInfoResponse(api.VoterInfoResponse o) {
1110 buildCounterVoterInfoResponse++; 1112 buildCounterVoterInfoResponse++;
1111 if (buildCounterVoterInfoResponse < 3) { 1113 if (buildCounterVoterInfoResponse < 3) {
1112 checkUnnamed648(o.contests); 1114 checkUnnamed2633(o.contests);
1113 checkUnnamed649(o.dropOffLocations); 1115 checkUnnamed2634(o.dropOffLocations);
1114 checkUnnamed650(o.earlyVoteSites); 1116 checkUnnamed2635(o.earlyVoteSites);
1115 checkElection(o.election); 1117 checkElection(o.election);
1116 unittest.expect(o.kind, unittest.equals('foo')); 1118 unittest.expect(o.kind, unittest.equals('foo'));
1117 unittest.expect(o.mailOnly, unittest.isTrue); 1119 unittest.expect(o.mailOnly, unittest.isTrue);
1118 checkSimpleAddressType(o.normalizedInput); 1120 checkSimpleAddressType(o.normalizedInput);
1119 checkUnnamed651(o.otherElections); 1121 checkUnnamed2636(o.otherElections);
1120 checkUnnamed652(o.pollingLocations); 1122 checkUnnamed2637(o.pollingLocations);
1121 unittest.expect(o.precinctId, unittest.equals('foo')); 1123 unittest.expect(o.precinctId, unittest.equals('foo'));
1122 checkUnnamed653(o.state); 1124 checkUnnamed2638(o.state);
1123 } 1125 }
1124 buildCounterVoterInfoResponse--; 1126 buildCounterVoterInfoResponse--;
1125 } 1127 }
1126 1128
1127 buildUnnamed654() { 1129 buildUnnamed2639() {
1128 var o = new core.List<core.String>(); 1130 var o = new core.List<core.String>();
1129 o.add("foo"); 1131 o.add("foo");
1130 o.add("foo"); 1132 o.add("foo");
1131 return o; 1133 return o;
1132 } 1134 }
1133 1135
1134 checkUnnamed654(core.List<core.String> o) { 1136 checkUnnamed2639(core.List<core.String> o) {
1135 unittest.expect(o, unittest.hasLength(2)); 1137 unittest.expect(o, unittest.hasLength(2));
1136 unittest.expect(o[0], unittest.equals('foo')); 1138 unittest.expect(o[0], unittest.equals('foo'));
1137 unittest.expect(o[1], unittest.equals('foo')); 1139 unittest.expect(o[1], unittest.equals('foo'));
1138 } 1140 }
1139 1141
1140 buildUnnamed655() { 1142 buildUnnamed2640() {
1141 var o = new core.List<core.String>(); 1143 var o = new core.List<core.String>();
1142 o.add("foo"); 1144 o.add("foo");
1143 o.add("foo"); 1145 o.add("foo");
1144 return o; 1146 return o;
1145 } 1147 }
1146 1148
1147 checkUnnamed655(core.List<core.String> o) { 1149 checkUnnamed2640(core.List<core.String> o) {
1148 unittest.expect(o, unittest.hasLength(2)); 1150 unittest.expect(o, unittest.hasLength(2));
1149 unittest.expect(o[0], unittest.equals('foo')); 1151 unittest.expect(o[0], unittest.equals('foo'));
1150 unittest.expect(o[1], unittest.equals('foo')); 1152 unittest.expect(o[1], unittest.equals('foo'));
1151 } 1153 }
1152 1154
1153 buildUnnamed656() { 1155 buildUnnamed2641() {
1154 var o = new core.List<core.String>(); 1156 var o = new core.List<core.String>();
1155 o.add("foo"); 1157 o.add("foo");
1156 o.add("foo"); 1158 o.add("foo");
1157 return o; 1159 return o;
1158 } 1160 }
1159 1161
1160 checkUnnamed656(core.List<core.String> o) { 1162 checkUnnamed2641(core.List<core.String> o) {
1161 unittest.expect(o, unittest.hasLength(2)); 1163 unittest.expect(o, unittest.hasLength(2));
1162 unittest.expect(o[0], unittest.equals('foo')); 1164 unittest.expect(o[0], unittest.equals('foo'));
1163 unittest.expect(o[1], unittest.equals('foo')); 1165 unittest.expect(o[1], unittest.equals('foo'));
1164 } 1166 }
1165 1167
1166 buildUnnamed657() { 1168 buildUnnamed2642() {
1167 var o = new core.List<core.String>(); 1169 var o = new core.List<core.String>();
1168 o.add("foo"); 1170 o.add("foo");
1169 o.add("foo"); 1171 o.add("foo");
1170 return o; 1172 return o;
1171 } 1173 }
1172 1174
1173 checkUnnamed657(core.List<core.String> o) { 1175 checkUnnamed2642(core.List<core.String> o) {
1174 unittest.expect(o, unittest.hasLength(2)); 1176 unittest.expect(o, unittest.hasLength(2));
1175 unittest.expect(o[0], unittest.equals('foo')); 1177 unittest.expect(o[0], unittest.equals('foo'));
1176 unittest.expect(o[1], unittest.equals('foo')); 1178 unittest.expect(o[1], unittest.equals('foo'));
1177 } 1179 }
1178 1180
1179 1181
1180 main() { 1182 main() {
1181 unittest.group("obj-schema-AdministrationRegion", () { 1183 unittest.group("obj-schema-AdministrationRegion", () {
1182 unittest.test("to-json--from-json", () { 1184 unittest.test("to-json--from-json", () {
1183 var o = buildAdministrationRegion(); 1185 var o = buildAdministrationRegion();
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
1455 }))); 1457 })));
1456 }); 1458 });
1457 1459
1458 unittest.test("method--voterInfoQuery", () { 1460 unittest.test("method--voterInfoQuery", () {
1459 1461
1460 var mock = new HttpServerMock(); 1462 var mock = new HttpServerMock();
1461 api.ElectionsResourceApi res = new api.CivicinfoApi(mock).elections; 1463 api.ElectionsResourceApi res = new api.CivicinfoApi(mock).elections;
1462 var arg_address = "foo"; 1464 var arg_address = "foo";
1463 var arg_electionId = "foo"; 1465 var arg_electionId = "foo";
1464 var arg_officialOnly = true; 1466 var arg_officialOnly = true;
1467 var arg_returnAllAvailableData = true;
1465 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1468 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1466 var path = (req.url).path; 1469 var path = (req.url).path;
1467 var pathOffset = 0; 1470 var pathOffset = 0;
1468 var index; 1471 var index;
1469 var subPart; 1472 var subPart;
1470 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1473 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1471 pathOffset += 1; 1474 pathOffset += 1;
1472 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("civicinfo/v2/")); 1475 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("civicinfo/v2/"));
1473 pathOffset += 13; 1476 pathOffset += 13;
1474 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("voterinfo")); 1477 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("voterinfo"));
(...skipping 11 matching lines...) Expand all
1486 } 1489 }
1487 if (query.length > 0) { 1490 if (query.length > 0) {
1488 for (var part in query.split("&")) { 1491 for (var part in query.split("&")) {
1489 var keyvalue = part.split("="); 1492 var keyvalue = part.split("=");
1490 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 1493 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1491 } 1494 }
1492 } 1495 }
1493 unittest.expect(queryMap["address"].first, unittest.equals(arg_address)) ; 1496 unittest.expect(queryMap["address"].first, unittest.equals(arg_address)) ;
1494 unittest.expect(queryMap["electionId"].first, unittest.equals(arg_electi onId)); 1497 unittest.expect(queryMap["electionId"].first, unittest.equals(arg_electi onId));
1495 unittest.expect(queryMap["officialOnly"].first, unittest.equals("$arg_of ficialOnly")); 1498 unittest.expect(queryMap["officialOnly"].first, unittest.equals("$arg_of ficialOnly"));
1499 unittest.expect(queryMap["returnAllAvailableData"].first, unittest.equal s("$arg_returnAllAvailableData"));
1496 1500
1497 1501
1498 var h = { 1502 var h = {
1499 "content-type" : "application/json; charset=utf-8", 1503 "content-type" : "application/json; charset=utf-8",
1500 }; 1504 };
1501 var resp = convert.JSON.encode(buildVoterInfoResponse()); 1505 var resp = convert.JSON.encode(buildVoterInfoResponse());
1502 return new async.Future.value(stringResponse(200, h, resp)); 1506 return new async.Future.value(stringResponse(200, h, resp));
1503 }), true); 1507 }), true);
1504 res.voterInfoQuery(arg_address, electionId: arg_electionId, officialOnly: arg_officialOnly).then(unittest.expectAsync(((api.VoterInfoResponse response) { 1508 res.voterInfoQuery(arg_address, electionId: arg_electionId, officialOnly: arg_officialOnly, returnAllAvailableData: arg_returnAllAvailableData).then(unitt est.expectAsync(((api.VoterInfoResponse response) {
1505 checkVoterInfoResponse(response); 1509 checkVoterInfoResponse(response);
1506 }))); 1510 })));
1507 }); 1511 });
1508 1512
1509 }); 1513 });
1510 1514
1511 1515
1512 unittest.group("resource-RepresentativesResourceApi", () { 1516 unittest.group("resource-RepresentativesResourceApi", () {
1513 unittest.test("method--representativeInfoByAddress", () { 1517 unittest.test("method--representativeInfoByAddress", () {
1514 1518
1515 var mock = new HttpServerMock(); 1519 var mock = new HttpServerMock();
1516 api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representa tives; 1520 api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representa tives;
1517 var arg_address = "foo"; 1521 var arg_address = "foo";
1518 var arg_includeOffices = true; 1522 var arg_includeOffices = true;
1519 var arg_levels = buildUnnamed654(); 1523 var arg_levels = buildUnnamed2639();
1520 var arg_roles = buildUnnamed655(); 1524 var arg_roles = buildUnnamed2640();
1521 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1525 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1522 var path = (req.url).path; 1526 var path = (req.url).path;
1523 var pathOffset = 0; 1527 var pathOffset = 0;
1524 var index; 1528 var index;
1525 var subPart; 1529 var subPart;
1526 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1530 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1527 pathOffset += 1; 1531 pathOffset += 1;
1528 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("civicinfo/v2/")); 1532 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("civicinfo/v2/"));
1529 pathOffset += 13; 1533 pathOffset += 13;
1530 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq uals("representatives")); 1534 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq uals("representatives"));
(...skipping 30 matching lines...) Expand all
1561 res.representativeInfoByAddress(address: arg_address, includeOffices: arg_ includeOffices, levels: arg_levels, roles: arg_roles).then(unittest.expectAsync( ((api.RepresentativeInfoResponse response) { 1565 res.representativeInfoByAddress(address: arg_address, includeOffices: arg_ includeOffices, levels: arg_levels, roles: arg_roles).then(unittest.expectAsync( ((api.RepresentativeInfoResponse response) {
1562 checkRepresentativeInfoResponse(response); 1566 checkRepresentativeInfoResponse(response);
1563 }))); 1567 })));
1564 }); 1568 });
1565 1569
1566 unittest.test("method--representativeInfoByDivision", () { 1570 unittest.test("method--representativeInfoByDivision", () {
1567 1571
1568 var mock = new HttpServerMock(); 1572 var mock = new HttpServerMock();
1569 api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representa tives; 1573 api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representa tives;
1570 var arg_ocdId = "foo"; 1574 var arg_ocdId = "foo";
1571 var arg_levels = buildUnnamed656(); 1575 var arg_levels = buildUnnamed2641();
1572 var arg_recursive = true; 1576 var arg_recursive = true;
1573 var arg_roles = buildUnnamed657(); 1577 var arg_roles = buildUnnamed2642();
1574 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1578 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1575 var path = (req.url).path; 1579 var path = (req.url).path;
1576 var pathOffset = 0; 1580 var pathOffset = 0;
1577 var index; 1581 var index;
1578 var subPart; 1582 var subPart;
1579 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1583 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1580 pathOffset += 1; 1584 pathOffset += 1;
1581 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("civicinfo/v2/")); 1585 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("civicinfo/v2/"));
1582 pathOffset += 13; 1586 pathOffset += 13;
1583 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("representatives/")); 1587 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("representatives/"));
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
1616 res.representativeInfoByDivision(arg_ocdId, levels: arg_levels, recursive: arg_recursive, roles: arg_roles).then(unittest.expectAsync(((api.Representative InfoData response) { 1620 res.representativeInfoByDivision(arg_ocdId, levels: arg_levels, recursive: arg_recursive, roles: arg_roles).then(unittest.expectAsync(((api.Representative InfoData response) {
1617 checkRepresentativeInfoData(response); 1621 checkRepresentativeInfoData(response);
1618 }))); 1622 })));
1619 }); 1623 });
1620 1624
1621 }); 1625 });
1622 1626
1623 1627
1624 } 1628 }
1625 1629
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