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

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

Issue 2226653002: Api-roll 40: 2016-08-08 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Addressed review comments Created 4 years, 4 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 buildUnnamed2449() { 54 buildUnnamed617() {
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 checkUnnamed2449(core.List<api.Source> o) { 61 checkUnnamed617(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 = buildUnnamed2449(); 76 o.sources = buildUnnamed617();
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 checkUnnamed2449(o.sources); 89 checkUnnamed617(o.sources);
90 } 90 }
91 buildCounterAdministrationRegion--; 91 buildCounterAdministrationRegion--;
92 } 92 }
93 93
94 buildUnnamed2450() { 94 buildUnnamed618() {
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 checkUnnamed2450(core.List<core.String> o) { 101 checkUnnamed618(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 buildUnnamed2451() { 107 buildUnnamed619() {
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 checkUnnamed2451(core.List<api.ElectionOfficial> o) { 114 checkUnnamed619(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 buildUnnamed2452() { 120 buildUnnamed620() {
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 checkUnnamed2452(core.List<core.String> o) { 127 checkUnnamed620(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 = buildUnnamed2450(); 139 o.addressLines = buildUnnamed618();
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 = buildUnnamed2451(); 143 o.electionOfficials = buildUnnamed619();
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 = buildUnnamed2452(); 150 o.voterServices = buildUnnamed620();
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 checkUnnamed2450(o.addressLines); 161 checkUnnamed618(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 checkUnnamed2451(o.electionOfficials); 165 checkUnnamed619(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 checkUnnamed2452(o.voterServices); 172 checkUnnamed620(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 buildUnnamed2453() { 178 buildUnnamed621() {
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 checkUnnamed2453(core.List<api.Channel> o) { 185 checkUnnamed621(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 = buildUnnamed2453(); 197 o.channels = buildUnnamed621();
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 checkUnnamed2453(o.channels); 213 checkUnnamed621(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 buildUnnamed2454() { 245 buildUnnamed622() {
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 checkUnnamed2454(core.List<api.Candidate> o) { 252 checkUnnamed622(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 buildUnnamed2455() { 258 buildUnnamed623() {
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 checkUnnamed2455(core.List<core.String> o) { 265 checkUnnamed623(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 buildUnnamed2456() { 271 buildUnnamed624() {
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 checkUnnamed2456(core.List<core.String> o) { 278 checkUnnamed624(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 buildUnnamed2457() { 284 buildUnnamed625() {
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 checkUnnamed2457(core.List<core.String> o) { 291 checkUnnamed625(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 buildUnnamed2458() { 297 buildUnnamed626() {
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 checkUnnamed2458(core.List<api.Source> o) { 304 checkUnnamed626(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 = buildUnnamed2454(); 316 o.candidates = buildUnnamed622();
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 = buildUnnamed2455(); 320 o.level = buildUnnamed623();
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 = buildUnnamed2456(); 325 o.referendumBallotResponses = buildUnnamed624();
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 = buildUnnamed2457(); 335 o.roles = buildUnnamed625();
336 o.sources = buildUnnamed2458(); 336 o.sources = buildUnnamed626();
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 checkUnnamed2454(o.candidates); 348 checkUnnamed622(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 checkUnnamed2455(o.level); 352 checkUnnamed623(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 checkUnnamed2456(o.referendumBallotResponses); 357 checkUnnamed624(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 checkUnnamed2457(o.roles); 367 checkUnnamed625(o.roles);
368 checkUnnamed2458(o.sources); 368 checkUnnamed626(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 buildUnnamed2459() { 375 buildUnnamed627() {
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 checkUnnamed2459(core.List<api.DivisionSearchResult> o) { 382 checkUnnamed627(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 = buildUnnamed2459(); 394 o.results = buildUnnamed627();
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 checkUnnamed2459(o.results); 404 checkUnnamed627(o.results);
405 } 405 }
406 buildCounterDivisionSearchResponse--; 406 buildCounterDivisionSearchResponse--;
407 } 407 }
408 408
409 buildUnnamed2460() { 409 buildUnnamed628() {
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 checkUnnamed2460(core.List<core.String> o) { 416 checkUnnamed628(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 = buildUnnamed2460(); 427 o.aliases = buildUnnamed628();
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 checkUnnamed2460(o.aliases); 438 checkUnnamed628(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 buildUnnamed2461() { 497 buildUnnamed629() {
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 checkUnnamed2461(core.List<api.Election> o) { 504 checkUnnamed629(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 = buildUnnamed2461(); 515 o.elections = buildUnnamed629();
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 checkUnnamed2461(o.elections); 525 checkUnnamed629(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.name = "foo"; 537 o.name = "foo";
538 o.scope = "foo"; 538 o.scope = "foo";
539 } 539 }
540 buildCounterElectoralDistrict--; 540 buildCounterElectoralDistrict--;
541 return o; 541 return o;
542 } 542 }
543 543
544 checkElectoralDistrict(api.ElectoralDistrict o) { 544 checkElectoralDistrict(api.ElectoralDistrict o) {
545 buildCounterElectoralDistrict++; 545 buildCounterElectoralDistrict++;
546 if (buildCounterElectoralDistrict < 3) { 546 if (buildCounterElectoralDistrict < 3) {
547 unittest.expect(o.id, unittest.equals('foo')); 547 unittest.expect(o.id, unittest.equals('foo'));
548 unittest.expect(o.name, unittest.equals('foo')); 548 unittest.expect(o.name, unittest.equals('foo'));
549 unittest.expect(o.scope, unittest.equals('foo')); 549 unittest.expect(o.scope, unittest.equals('foo'));
550 } 550 }
551 buildCounterElectoralDistrict--; 551 buildCounterElectoralDistrict--;
552 } 552 }
553 553
554 buildUnnamed2462() { 554 buildUnnamed630() {
555 var o = new core.List<core.String>(); 555 var o = new core.List<core.String>();
556 o.add("foo"); 556 o.add("foo");
557 o.add("foo"); 557 o.add("foo");
558 return o; 558 return o;
559 } 559 }
560 560
561 checkUnnamed2462(core.List<core.String> o) { 561 checkUnnamed630(core.List<core.String> o) {
562 unittest.expect(o, unittest.hasLength(2)); 562 unittest.expect(o, unittest.hasLength(2));
563 unittest.expect(o[0], unittest.equals('foo')); 563 unittest.expect(o[0], unittest.equals('foo'));
564 unittest.expect(o[1], unittest.equals('foo')); 564 unittest.expect(o[1], unittest.equals('foo'));
565 } 565 }
566 566
567 buildUnnamed2463() { 567 buildUnnamed631() {
568 var o = new core.List<core.int>(); 568 var o = new core.List<core.int>();
569 o.add(42); 569 o.add(42);
570 o.add(42); 570 o.add(42);
571 return o; 571 return o;
572 } 572 }
573 573
574 checkUnnamed2463(core.List<core.int> o) { 574 checkUnnamed631(core.List<core.int> o) {
575 unittest.expect(o, unittest.hasLength(2)); 575 unittest.expect(o, unittest.hasLength(2));
576 unittest.expect(o[0], unittest.equals(42)); 576 unittest.expect(o[0], unittest.equals(42));
577 unittest.expect(o[1], unittest.equals(42)); 577 unittest.expect(o[1], unittest.equals(42));
578 } 578 }
579 579
580 core.int buildCounterGeographicDivision = 0; 580 core.int buildCounterGeographicDivision = 0;
581 buildGeographicDivision() { 581 buildGeographicDivision() {
582 var o = new api.GeographicDivision(); 582 var o = new api.GeographicDivision();
583 buildCounterGeographicDivision++; 583 buildCounterGeographicDivision++;
584 if (buildCounterGeographicDivision < 3) { 584 if (buildCounterGeographicDivision < 3) {
585 o.alsoKnownAs = buildUnnamed2462(); 585 o.alsoKnownAs = buildUnnamed630();
586 o.name = "foo"; 586 o.name = "foo";
587 o.officeIndices = buildUnnamed2463(); 587 o.officeIndices = buildUnnamed631();
588 } 588 }
589 buildCounterGeographicDivision--; 589 buildCounterGeographicDivision--;
590 return o; 590 return o;
591 } 591 }
592 592
593 checkGeographicDivision(api.GeographicDivision o) { 593 checkGeographicDivision(api.GeographicDivision o) {
594 buildCounterGeographicDivision++; 594 buildCounterGeographicDivision++;
595 if (buildCounterGeographicDivision < 3) { 595 if (buildCounterGeographicDivision < 3) {
596 checkUnnamed2462(o.alsoKnownAs); 596 checkUnnamed630(o.alsoKnownAs);
597 unittest.expect(o.name, unittest.equals('foo')); 597 unittest.expect(o.name, unittest.equals('foo'));
598 checkUnnamed2463(o.officeIndices); 598 checkUnnamed631(o.officeIndices);
599 } 599 }
600 buildCounterGeographicDivision--; 600 buildCounterGeographicDivision--;
601 } 601 }
602 602
603 buildUnnamed2464() { 603 buildUnnamed632() {
604 var o = new core.List<core.String>(); 604 var o = new core.List<core.String>();
605 o.add("foo"); 605 o.add("foo");
606 o.add("foo"); 606 o.add("foo");
607 return o; 607 return o;
608 } 608 }
609 609
610 checkUnnamed2464(core.List<core.String> o) { 610 checkUnnamed632(core.List<core.String> o) {
611 unittest.expect(o, unittest.hasLength(2)); 611 unittest.expect(o, unittest.hasLength(2));
612 unittest.expect(o[0], unittest.equals('foo')); 612 unittest.expect(o[0], unittest.equals('foo'));
613 unittest.expect(o[1], unittest.equals('foo')); 613 unittest.expect(o[1], unittest.equals('foo'));
614 } 614 }
615 615
616 buildUnnamed2465() { 616 buildUnnamed633() {
617 var o = new core.List<core.int>(); 617 var o = new core.List<core.int>();
618 o.add(42); 618 o.add(42);
619 o.add(42); 619 o.add(42);
620 return o; 620 return o;
621 } 621 }
622 622
623 checkUnnamed2465(core.List<core.int> o) { 623 checkUnnamed633(core.List<core.int> o) {
624 unittest.expect(o, unittest.hasLength(2)); 624 unittest.expect(o, unittest.hasLength(2));
625 unittest.expect(o[0], unittest.equals(42)); 625 unittest.expect(o[0], unittest.equals(42));
626 unittest.expect(o[1], unittest.equals(42)); 626 unittest.expect(o[1], unittest.equals(42));
627 } 627 }
628 628
629 buildUnnamed2466() { 629 buildUnnamed634() {
630 var o = new core.List<core.String>(); 630 var o = new core.List<core.String>();
631 o.add("foo"); 631 o.add("foo");
632 o.add("foo"); 632 o.add("foo");
633 return o; 633 return o;
634 } 634 }
635 635
636 checkUnnamed2466(core.List<core.String> o) { 636 checkUnnamed634(core.List<core.String> o) {
637 unittest.expect(o, unittest.hasLength(2)); 637 unittest.expect(o, unittest.hasLength(2));
638 unittest.expect(o[0], unittest.equals('foo')); 638 unittest.expect(o[0], unittest.equals('foo'));
639 unittest.expect(o[1], unittest.equals('foo')); 639 unittest.expect(o[1], unittest.equals('foo'));
640 } 640 }
641 641
642 buildUnnamed2467() { 642 buildUnnamed635() {
643 var o = new core.List<api.Source>(); 643 var o = new core.List<api.Source>();
644 o.add(buildSource()); 644 o.add(buildSource());
645 o.add(buildSource()); 645 o.add(buildSource());
646 return o; 646 return o;
647 } 647 }
648 648
649 checkUnnamed2467(core.List<api.Source> o) { 649 checkUnnamed635(core.List<api.Source> o) {
650 unittest.expect(o, unittest.hasLength(2)); 650 unittest.expect(o, unittest.hasLength(2));
651 checkSource(o[0]); 651 checkSource(o[0]);
652 checkSource(o[1]); 652 checkSource(o[1]);
653 } 653 }
654 654
655 core.int buildCounterOffice = 0; 655 core.int buildCounterOffice = 0;
656 buildOffice() { 656 buildOffice() {
657 var o = new api.Office(); 657 var o = new api.Office();
658 buildCounterOffice++; 658 buildCounterOffice++;
659 if (buildCounterOffice < 3) { 659 if (buildCounterOffice < 3) {
660 o.divisionId = "foo"; 660 o.divisionId = "foo";
661 o.levels = buildUnnamed2464(); 661 o.levels = buildUnnamed632();
662 o.name = "foo"; 662 o.name = "foo";
663 o.officialIndices = buildUnnamed2465(); 663 o.officialIndices = buildUnnamed633();
664 o.roles = buildUnnamed2466(); 664 o.roles = buildUnnamed634();
665 o.sources = buildUnnamed2467(); 665 o.sources = buildUnnamed635();
666 } 666 }
667 buildCounterOffice--; 667 buildCounterOffice--;
668 return o; 668 return o;
669 } 669 }
670 670
671 checkOffice(api.Office o) { 671 checkOffice(api.Office o) {
672 buildCounterOffice++; 672 buildCounterOffice++;
673 if (buildCounterOffice < 3) { 673 if (buildCounterOffice < 3) {
674 unittest.expect(o.divisionId, unittest.equals('foo')); 674 unittest.expect(o.divisionId, unittest.equals('foo'));
675 checkUnnamed2464(o.levels); 675 checkUnnamed632(o.levels);
676 unittest.expect(o.name, unittest.equals('foo')); 676 unittest.expect(o.name, unittest.equals('foo'));
677 checkUnnamed2465(o.officialIndices); 677 checkUnnamed633(o.officialIndices);
678 checkUnnamed2466(o.roles); 678 checkUnnamed634(o.roles);
679 checkUnnamed2467(o.sources); 679 checkUnnamed635(o.sources);
680 } 680 }
681 buildCounterOffice--; 681 buildCounterOffice--;
682 } 682 }
683 683
684 buildUnnamed2468() { 684 buildUnnamed636() {
685 var o = new core.List<api.SimpleAddressType>(); 685 var o = new core.List<api.SimpleAddressType>();
686 o.add(buildSimpleAddressType()); 686 o.add(buildSimpleAddressType());
687 o.add(buildSimpleAddressType()); 687 o.add(buildSimpleAddressType());
688 return o; 688 return o;
689 } 689 }
690 690
691 checkUnnamed2468(core.List<api.SimpleAddressType> o) { 691 checkUnnamed636(core.List<api.SimpleAddressType> o) {
692 unittest.expect(o, unittest.hasLength(2)); 692 unittest.expect(o, unittest.hasLength(2));
693 checkSimpleAddressType(o[0]); 693 checkSimpleAddressType(o[0]);
694 checkSimpleAddressType(o[1]); 694 checkSimpleAddressType(o[1]);
695 } 695 }
696 696
697 buildUnnamed2469() { 697 buildUnnamed637() {
698 var o = new core.List<api.Channel>(); 698 var o = new core.List<api.Channel>();
699 o.add(buildChannel()); 699 o.add(buildChannel());
700 o.add(buildChannel()); 700 o.add(buildChannel());
701 return o; 701 return o;
702 } 702 }
703 703
704 checkUnnamed2469(core.List<api.Channel> o) { 704 checkUnnamed637(core.List<api.Channel> o) {
705 unittest.expect(o, unittest.hasLength(2)); 705 unittest.expect(o, unittest.hasLength(2));
706 checkChannel(o[0]); 706 checkChannel(o[0]);
707 checkChannel(o[1]); 707 checkChannel(o[1]);
708 } 708 }
709 709
710 buildUnnamed2470() { 710 buildUnnamed638() {
711 var o = new core.List<core.String>(); 711 var o = new core.List<core.String>();
712 o.add("foo"); 712 o.add("foo");
713 o.add("foo"); 713 o.add("foo");
714 return o; 714 return o;
715 } 715 }
716 716
717 checkUnnamed2470(core.List<core.String> o) { 717 checkUnnamed638(core.List<core.String> o) {
718 unittest.expect(o, unittest.hasLength(2)); 718 unittest.expect(o, unittest.hasLength(2));
719 unittest.expect(o[0], unittest.equals('foo')); 719 unittest.expect(o[0], unittest.equals('foo'));
720 unittest.expect(o[1], unittest.equals('foo')); 720 unittest.expect(o[1], unittest.equals('foo'));
721 } 721 }
722 722
723 buildUnnamed2471() { 723 buildUnnamed639() {
724 var o = new core.List<core.String>(); 724 var o = new core.List<core.String>();
725 o.add("foo"); 725 o.add("foo");
726 o.add("foo"); 726 o.add("foo");
727 return o; 727 return o;
728 } 728 }
729 729
730 checkUnnamed2471(core.List<core.String> o) { 730 checkUnnamed639(core.List<core.String> o) {
731 unittest.expect(o, unittest.hasLength(2)); 731 unittest.expect(o, unittest.hasLength(2));
732 unittest.expect(o[0], unittest.equals('foo')); 732 unittest.expect(o[0], unittest.equals('foo'));
733 unittest.expect(o[1], unittest.equals('foo')); 733 unittest.expect(o[1], unittest.equals('foo'));
734 } 734 }
735 735
736 buildUnnamed2472() { 736 buildUnnamed640() {
737 var o = new core.List<core.String>(); 737 var o = new core.List<core.String>();
738 o.add("foo"); 738 o.add("foo");
739 o.add("foo"); 739 o.add("foo");
740 return o; 740 return o;
741 } 741 }
742 742
743 checkUnnamed2472(core.List<core.String> o) { 743 checkUnnamed640(core.List<core.String> o) {
744 unittest.expect(o, unittest.hasLength(2)); 744 unittest.expect(o, unittest.hasLength(2));
745 unittest.expect(o[0], unittest.equals('foo')); 745 unittest.expect(o[0], unittest.equals('foo'));
746 unittest.expect(o[1], unittest.equals('foo')); 746 unittest.expect(o[1], unittest.equals('foo'));
747 } 747 }
748 748
749 core.int buildCounterOfficial = 0; 749 core.int buildCounterOfficial = 0;
750 buildOfficial() { 750 buildOfficial() {
751 var o = new api.Official(); 751 var o = new api.Official();
752 buildCounterOfficial++; 752 buildCounterOfficial++;
753 if (buildCounterOfficial < 3) { 753 if (buildCounterOfficial < 3) {
754 o.address = buildUnnamed2468(); 754 o.address = buildUnnamed636();
755 o.channels = buildUnnamed2469(); 755 o.channels = buildUnnamed637();
756 o.emails = buildUnnamed2470(); 756 o.emails = buildUnnamed638();
757 o.name = "foo"; 757 o.name = "foo";
758 o.party = "foo"; 758 o.party = "foo";
759 o.phones = buildUnnamed2471(); 759 o.phones = buildUnnamed639();
760 o.photoUrl = "foo"; 760 o.photoUrl = "foo";
761 o.urls = buildUnnamed2472(); 761 o.urls = buildUnnamed640();
762 } 762 }
763 buildCounterOfficial--; 763 buildCounterOfficial--;
764 return o; 764 return o;
765 } 765 }
766 766
767 checkOfficial(api.Official o) { 767 checkOfficial(api.Official o) {
768 buildCounterOfficial++; 768 buildCounterOfficial++;
769 if (buildCounterOfficial < 3) { 769 if (buildCounterOfficial < 3) {
770 checkUnnamed2468(o.address); 770 checkUnnamed636(o.address);
771 checkUnnamed2469(o.channels); 771 checkUnnamed637(o.channels);
772 checkUnnamed2470(o.emails); 772 checkUnnamed638(o.emails);
773 unittest.expect(o.name, unittest.equals('foo')); 773 unittest.expect(o.name, unittest.equals('foo'));
774 unittest.expect(o.party, unittest.equals('foo')); 774 unittest.expect(o.party, unittest.equals('foo'));
775 checkUnnamed2471(o.phones); 775 checkUnnamed639(o.phones);
776 unittest.expect(o.photoUrl, unittest.equals('foo')); 776 unittest.expect(o.photoUrl, unittest.equals('foo'));
777 checkUnnamed2472(o.urls); 777 checkUnnamed640(o.urls);
778 } 778 }
779 buildCounterOfficial--; 779 buildCounterOfficial--;
780 } 780 }
781 781
782 buildUnnamed2473() { 782 buildUnnamed641() {
783 var o = new core.List<api.Source>(); 783 var o = new core.List<api.Source>();
784 o.add(buildSource()); 784 o.add(buildSource());
785 o.add(buildSource()); 785 o.add(buildSource());
786 return o; 786 return o;
787 } 787 }
788 788
789 checkUnnamed2473(core.List<api.Source> o) { 789 checkUnnamed641(core.List<api.Source> o) {
790 unittest.expect(o, unittest.hasLength(2)); 790 unittest.expect(o, unittest.hasLength(2));
791 checkSource(o[0]); 791 checkSource(o[0]);
792 checkSource(o[1]); 792 checkSource(o[1]);
793 } 793 }
794 794
795 core.int buildCounterPollingLocation = 0; 795 core.int buildCounterPollingLocation = 0;
796 buildPollingLocation() { 796 buildPollingLocation() {
797 var o = new api.PollingLocation(); 797 var o = new api.PollingLocation();
798 buildCounterPollingLocation++; 798 buildCounterPollingLocation++;
799 if (buildCounterPollingLocation < 3) { 799 if (buildCounterPollingLocation < 3) {
800 o.address = buildSimpleAddressType(); 800 o.address = buildSimpleAddressType();
801 o.endDate = "foo"; 801 o.endDate = "foo";
802 o.id = "foo"; 802 o.id = "foo";
803 o.name = "foo"; 803 o.name = "foo";
804 o.notes = "foo"; 804 o.notes = "foo";
805 o.pollingHours = "foo"; 805 o.pollingHours = "foo";
806 o.sources = buildUnnamed2473(); 806 o.sources = buildUnnamed641();
807 o.startDate = "foo"; 807 o.startDate = "foo";
808 o.voterServices = "foo"; 808 o.voterServices = "foo";
809 } 809 }
810 buildCounterPollingLocation--; 810 buildCounterPollingLocation--;
811 return o; 811 return o;
812 } 812 }
813 813
814 checkPollingLocation(api.PollingLocation o) { 814 checkPollingLocation(api.PollingLocation o) {
815 buildCounterPollingLocation++; 815 buildCounterPollingLocation++;
816 if (buildCounterPollingLocation < 3) { 816 if (buildCounterPollingLocation < 3) {
817 checkSimpleAddressType(o.address); 817 checkSimpleAddressType(o.address);
818 unittest.expect(o.endDate, unittest.equals('foo')); 818 unittest.expect(o.endDate, unittest.equals('foo'));
819 unittest.expect(o.id, unittest.equals('foo')); 819 unittest.expect(o.id, unittest.equals('foo'));
820 unittest.expect(o.name, unittest.equals('foo')); 820 unittest.expect(o.name, unittest.equals('foo'));
821 unittest.expect(o.notes, unittest.equals('foo')); 821 unittest.expect(o.notes, unittest.equals('foo'));
822 unittest.expect(o.pollingHours, unittest.equals('foo')); 822 unittest.expect(o.pollingHours, unittest.equals('foo'));
823 checkUnnamed2473(o.sources); 823 checkUnnamed641(o.sources);
824 unittest.expect(o.startDate, unittest.equals('foo')); 824 unittest.expect(o.startDate, unittest.equals('foo'));
825 unittest.expect(o.voterServices, unittest.equals('foo')); 825 unittest.expect(o.voterServices, unittest.equals('foo'));
826 } 826 }
827 buildCounterPollingLocation--; 827 buildCounterPollingLocation--;
828 } 828 }
829 829
830 buildUnnamed2474() { 830 buildUnnamed642() {
831 var o = new core.Map<core.String, api.GeographicDivision>(); 831 var o = new core.Map<core.String, api.GeographicDivision>();
832 o["x"] = buildGeographicDivision(); 832 o["x"] = buildGeographicDivision();
833 o["y"] = buildGeographicDivision(); 833 o["y"] = buildGeographicDivision();
834 return o; 834 return o;
835 } 835 }
836 836
837 checkUnnamed2474(core.Map<core.String, api.GeographicDivision> o) { 837 checkUnnamed642(core.Map<core.String, api.GeographicDivision> o) {
838 unittest.expect(o, unittest.hasLength(2)); 838 unittest.expect(o, unittest.hasLength(2));
839 checkGeographicDivision(o["x"]); 839 checkGeographicDivision(o["x"]);
840 checkGeographicDivision(o["y"]); 840 checkGeographicDivision(o["y"]);
841 } 841 }
842 842
843 buildUnnamed2475() { 843 buildUnnamed643() {
844 var o = new core.List<api.Office>(); 844 var o = new core.List<api.Office>();
845 o.add(buildOffice()); 845 o.add(buildOffice());
846 o.add(buildOffice()); 846 o.add(buildOffice());
847 return o; 847 return o;
848 } 848 }
849 849
850 checkUnnamed2475(core.List<api.Office> o) { 850 checkUnnamed643(core.List<api.Office> o) {
851 unittest.expect(o, unittest.hasLength(2)); 851 unittest.expect(o, unittest.hasLength(2));
852 checkOffice(o[0]); 852 checkOffice(o[0]);
853 checkOffice(o[1]); 853 checkOffice(o[1]);
854 } 854 }
855 855
856 buildUnnamed2476() { 856 buildUnnamed644() {
857 var o = new core.List<api.Official>(); 857 var o = new core.List<api.Official>();
858 o.add(buildOfficial()); 858 o.add(buildOfficial());
859 o.add(buildOfficial()); 859 o.add(buildOfficial());
860 return o; 860 return o;
861 } 861 }
862 862
863 checkUnnamed2476(core.List<api.Official> o) { 863 checkUnnamed644(core.List<api.Official> o) {
864 unittest.expect(o, unittest.hasLength(2)); 864 unittest.expect(o, unittest.hasLength(2));
865 checkOfficial(o[0]); 865 checkOfficial(o[0]);
866 checkOfficial(o[1]); 866 checkOfficial(o[1]);
867 } 867 }
868 868
869 core.int buildCounterRepresentativeInfoData = 0; 869 core.int buildCounterRepresentativeInfoData = 0;
870 buildRepresentativeInfoData() { 870 buildRepresentativeInfoData() {
871 var o = new api.RepresentativeInfoData(); 871 var o = new api.RepresentativeInfoData();
872 buildCounterRepresentativeInfoData++; 872 buildCounterRepresentativeInfoData++;
873 if (buildCounterRepresentativeInfoData < 3) { 873 if (buildCounterRepresentativeInfoData < 3) {
874 o.divisions = buildUnnamed2474(); 874 o.divisions = buildUnnamed642();
875 o.offices = buildUnnamed2475(); 875 o.offices = buildUnnamed643();
876 o.officials = buildUnnamed2476(); 876 o.officials = buildUnnamed644();
877 } 877 }
878 buildCounterRepresentativeInfoData--; 878 buildCounterRepresentativeInfoData--;
879 return o; 879 return o;
880 } 880 }
881 881
882 checkRepresentativeInfoData(api.RepresentativeInfoData o) { 882 checkRepresentativeInfoData(api.RepresentativeInfoData o) {
883 buildCounterRepresentativeInfoData++; 883 buildCounterRepresentativeInfoData++;
884 if (buildCounterRepresentativeInfoData < 3) { 884 if (buildCounterRepresentativeInfoData < 3) {
885 checkUnnamed2474(o.divisions); 885 checkUnnamed642(o.divisions);
886 checkUnnamed2475(o.offices); 886 checkUnnamed643(o.offices);
887 checkUnnamed2476(o.officials); 887 checkUnnamed644(o.officials);
888 } 888 }
889 buildCounterRepresentativeInfoData--; 889 buildCounterRepresentativeInfoData--;
890 } 890 }
891 891
892 buildUnnamed2477() { 892 buildUnnamed645() {
893 var o = new core.Map<core.String, api.GeographicDivision>(); 893 var o = new core.Map<core.String, api.GeographicDivision>();
894 o["x"] = buildGeographicDivision(); 894 o["x"] = buildGeographicDivision();
895 o["y"] = buildGeographicDivision(); 895 o["y"] = buildGeographicDivision();
896 return o; 896 return o;
897 } 897 }
898 898
899 checkUnnamed2477(core.Map<core.String, api.GeographicDivision> o) { 899 checkUnnamed645(core.Map<core.String, api.GeographicDivision> o) {
900 unittest.expect(o, unittest.hasLength(2)); 900 unittest.expect(o, unittest.hasLength(2));
901 checkGeographicDivision(o["x"]); 901 checkGeographicDivision(o["x"]);
902 checkGeographicDivision(o["y"]); 902 checkGeographicDivision(o["y"]);
903 } 903 }
904 904
905 buildUnnamed2478() { 905 buildUnnamed646() {
906 var o = new core.List<api.Office>(); 906 var o = new core.List<api.Office>();
907 o.add(buildOffice()); 907 o.add(buildOffice());
908 o.add(buildOffice()); 908 o.add(buildOffice());
909 return o; 909 return o;
910 } 910 }
911 911
912 checkUnnamed2478(core.List<api.Office> o) { 912 checkUnnamed646(core.List<api.Office> o) {
913 unittest.expect(o, unittest.hasLength(2)); 913 unittest.expect(o, unittest.hasLength(2));
914 checkOffice(o[0]); 914 checkOffice(o[0]);
915 checkOffice(o[1]); 915 checkOffice(o[1]);
916 } 916 }
917 917
918 buildUnnamed2479() { 918 buildUnnamed647() {
919 var o = new core.List<api.Official>(); 919 var o = new core.List<api.Official>();
920 o.add(buildOfficial()); 920 o.add(buildOfficial());
921 o.add(buildOfficial()); 921 o.add(buildOfficial());
922 return o; 922 return o;
923 } 923 }
924 924
925 checkUnnamed2479(core.List<api.Official> o) { 925 checkUnnamed647(core.List<api.Official> o) {
926 unittest.expect(o, unittest.hasLength(2)); 926 unittest.expect(o, unittest.hasLength(2));
927 checkOfficial(o[0]); 927 checkOfficial(o[0]);
928 checkOfficial(o[1]); 928 checkOfficial(o[1]);
929 } 929 }
930 930
931 core.int buildCounterRepresentativeInfoResponse = 0; 931 core.int buildCounterRepresentativeInfoResponse = 0;
932 buildRepresentativeInfoResponse() { 932 buildRepresentativeInfoResponse() {
933 var o = new api.RepresentativeInfoResponse(); 933 var o = new api.RepresentativeInfoResponse();
934 buildCounterRepresentativeInfoResponse++; 934 buildCounterRepresentativeInfoResponse++;
935 if (buildCounterRepresentativeInfoResponse < 3) { 935 if (buildCounterRepresentativeInfoResponse < 3) {
936 o.divisions = buildUnnamed2477(); 936 o.divisions = buildUnnamed645();
937 o.kind = "foo"; 937 o.kind = "foo";
938 o.normalizedInput = buildSimpleAddressType(); 938 o.normalizedInput = buildSimpleAddressType();
939 o.offices = buildUnnamed2478(); 939 o.offices = buildUnnamed646();
940 o.officials = buildUnnamed2479(); 940 o.officials = buildUnnamed647();
941 } 941 }
942 buildCounterRepresentativeInfoResponse--; 942 buildCounterRepresentativeInfoResponse--;
943 return o; 943 return o;
944 } 944 }
945 945
946 checkRepresentativeInfoResponse(api.RepresentativeInfoResponse o) { 946 checkRepresentativeInfoResponse(api.RepresentativeInfoResponse o) {
947 buildCounterRepresentativeInfoResponse++; 947 buildCounterRepresentativeInfoResponse++;
948 if (buildCounterRepresentativeInfoResponse < 3) { 948 if (buildCounterRepresentativeInfoResponse < 3) {
949 checkUnnamed2477(o.divisions); 949 checkUnnamed645(o.divisions);
950 unittest.expect(o.kind, unittest.equals('foo')); 950 unittest.expect(o.kind, unittest.equals('foo'));
951 checkSimpleAddressType(o.normalizedInput); 951 checkSimpleAddressType(o.normalizedInput);
952 checkUnnamed2478(o.offices); 952 checkUnnamed646(o.offices);
953 checkUnnamed2479(o.officials); 953 checkUnnamed647(o.officials);
954 } 954 }
955 buildCounterRepresentativeInfoResponse--; 955 buildCounterRepresentativeInfoResponse--;
956 } 956 }
957 957
958 core.int buildCounterSimpleAddressType = 0; 958 core.int buildCounterSimpleAddressType = 0;
959 buildSimpleAddressType() { 959 buildSimpleAddressType() {
960 var o = new api.SimpleAddressType(); 960 var o = new api.SimpleAddressType();
961 buildCounterSimpleAddressType++; 961 buildCounterSimpleAddressType++;
962 if (buildCounterSimpleAddressType < 3) { 962 if (buildCounterSimpleAddressType < 3) {
963 o.city = "foo"; 963 o.city = "foo";
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
1000 1000
1001 checkSource(api.Source o) { 1001 checkSource(api.Source o) {
1002 buildCounterSource++; 1002 buildCounterSource++;
1003 if (buildCounterSource < 3) { 1003 if (buildCounterSource < 3) {
1004 unittest.expect(o.name, unittest.equals('foo')); 1004 unittest.expect(o.name, unittest.equals('foo'));
1005 unittest.expect(o.official, unittest.isTrue); 1005 unittest.expect(o.official, unittest.isTrue);
1006 } 1006 }
1007 buildCounterSource--; 1007 buildCounterSource--;
1008 } 1008 }
1009 1009
1010 buildUnnamed2480() { 1010 buildUnnamed648() {
1011 var o = new core.List<api.Contest>(); 1011 var o = new core.List<api.Contest>();
1012 o.add(buildContest()); 1012 o.add(buildContest());
1013 o.add(buildContest()); 1013 o.add(buildContest());
1014 return o; 1014 return o;
1015 } 1015 }
1016 1016
1017 checkUnnamed2480(core.List<api.Contest> o) { 1017 checkUnnamed648(core.List<api.Contest> o) {
1018 unittest.expect(o, unittest.hasLength(2)); 1018 unittest.expect(o, unittest.hasLength(2));
1019 checkContest(o[0]); 1019 checkContest(o[0]);
1020 checkContest(o[1]); 1020 checkContest(o[1]);
1021 } 1021 }
1022 1022
1023 buildUnnamed2481() { 1023 buildUnnamed649() {
1024 var o = new core.List<api.PollingLocation>(); 1024 var o = new core.List<api.PollingLocation>();
1025 o.add(buildPollingLocation()); 1025 o.add(buildPollingLocation());
1026 o.add(buildPollingLocation()); 1026 o.add(buildPollingLocation());
1027 return o; 1027 return o;
1028 } 1028 }
1029 1029
1030 checkUnnamed2481(core.List<api.PollingLocation> o) { 1030 checkUnnamed649(core.List<api.PollingLocation> o) {
1031 unittest.expect(o, unittest.hasLength(2)); 1031 unittest.expect(o, unittest.hasLength(2));
1032 checkPollingLocation(o[0]); 1032 checkPollingLocation(o[0]);
1033 checkPollingLocation(o[1]); 1033 checkPollingLocation(o[1]);
1034 } 1034 }
1035 1035
1036 buildUnnamed2482() { 1036 buildUnnamed650() {
1037 var o = new core.List<api.PollingLocation>(); 1037 var o = new core.List<api.PollingLocation>();
1038 o.add(buildPollingLocation()); 1038 o.add(buildPollingLocation());
1039 o.add(buildPollingLocation()); 1039 o.add(buildPollingLocation());
1040 return o; 1040 return o;
1041 } 1041 }
1042 1042
1043 checkUnnamed2482(core.List<api.PollingLocation> o) { 1043 checkUnnamed650(core.List<api.PollingLocation> o) {
1044 unittest.expect(o, unittest.hasLength(2)); 1044 unittest.expect(o, unittest.hasLength(2));
1045 checkPollingLocation(o[0]); 1045 checkPollingLocation(o[0]);
1046 checkPollingLocation(o[1]); 1046 checkPollingLocation(o[1]);
1047 } 1047 }
1048 1048
1049 buildUnnamed2483() { 1049 buildUnnamed651() {
1050 var o = new core.List<api.Election>(); 1050 var o = new core.List<api.Election>();
1051 o.add(buildElection()); 1051 o.add(buildElection());
1052 o.add(buildElection()); 1052 o.add(buildElection());
1053 return o; 1053 return o;
1054 } 1054 }
1055 1055
1056 checkUnnamed2483(core.List<api.Election> o) { 1056 checkUnnamed651(core.List<api.Election> o) {
1057 unittest.expect(o, unittest.hasLength(2)); 1057 unittest.expect(o, unittest.hasLength(2));
1058 checkElection(o[0]); 1058 checkElection(o[0]);
1059 checkElection(o[1]); 1059 checkElection(o[1]);
1060 } 1060 }
1061 1061
1062 buildUnnamed2484() { 1062 buildUnnamed652() {
1063 var o = new core.List<api.PollingLocation>(); 1063 var o = new core.List<api.PollingLocation>();
1064 o.add(buildPollingLocation()); 1064 o.add(buildPollingLocation());
1065 o.add(buildPollingLocation()); 1065 o.add(buildPollingLocation());
1066 return o; 1066 return o;
1067 } 1067 }
1068 1068
1069 checkUnnamed2484(core.List<api.PollingLocation> o) { 1069 checkUnnamed652(core.List<api.PollingLocation> o) {
1070 unittest.expect(o, unittest.hasLength(2)); 1070 unittest.expect(o, unittest.hasLength(2));
1071 checkPollingLocation(o[0]); 1071 checkPollingLocation(o[0]);
1072 checkPollingLocation(o[1]); 1072 checkPollingLocation(o[1]);
1073 } 1073 }
1074 1074
1075 buildUnnamed2485() { 1075 buildUnnamed653() {
1076 var o = new core.List<api.AdministrationRegion>(); 1076 var o = new core.List<api.AdministrationRegion>();
1077 o.add(buildAdministrationRegion()); 1077 o.add(buildAdministrationRegion());
1078 o.add(buildAdministrationRegion()); 1078 o.add(buildAdministrationRegion());
1079 return o; 1079 return o;
1080 } 1080 }
1081 1081
1082 checkUnnamed2485(core.List<api.AdministrationRegion> o) { 1082 checkUnnamed653(core.List<api.AdministrationRegion> o) {
1083 unittest.expect(o, unittest.hasLength(2)); 1083 unittest.expect(o, unittest.hasLength(2));
1084 checkAdministrationRegion(o[0]); 1084 checkAdministrationRegion(o[0]);
1085 checkAdministrationRegion(o[1]); 1085 checkAdministrationRegion(o[1]);
1086 } 1086 }
1087 1087
1088 core.int buildCounterVoterInfoResponse = 0; 1088 core.int buildCounterVoterInfoResponse = 0;
1089 buildVoterInfoResponse() { 1089 buildVoterInfoResponse() {
1090 var o = new api.VoterInfoResponse(); 1090 var o = new api.VoterInfoResponse();
1091 buildCounterVoterInfoResponse++; 1091 buildCounterVoterInfoResponse++;
1092 if (buildCounterVoterInfoResponse < 3) { 1092 if (buildCounterVoterInfoResponse < 3) {
1093 o.contests = buildUnnamed2480(); 1093 o.contests = buildUnnamed648();
1094 o.dropOffLocations = buildUnnamed2481(); 1094 o.dropOffLocations = buildUnnamed649();
1095 o.earlyVoteSites = buildUnnamed2482(); 1095 o.earlyVoteSites = buildUnnamed650();
1096 o.election = buildElection(); 1096 o.election = buildElection();
1097 o.kind = "foo"; 1097 o.kind = "foo";
1098 o.mailOnly = true; 1098 o.mailOnly = true;
1099 o.normalizedInput = buildSimpleAddressType(); 1099 o.normalizedInput = buildSimpleAddressType();
1100 o.otherElections = buildUnnamed2483(); 1100 o.otherElections = buildUnnamed651();
1101 o.pollingLocations = buildUnnamed2484(); 1101 o.pollingLocations = buildUnnamed652();
1102 o.precinctId = "foo"; 1102 o.precinctId = "foo";
1103 o.state = buildUnnamed2485(); 1103 o.state = buildUnnamed653();
1104 } 1104 }
1105 buildCounterVoterInfoResponse--; 1105 buildCounterVoterInfoResponse--;
1106 return o; 1106 return o;
1107 } 1107 }
1108 1108
1109 checkVoterInfoResponse(api.VoterInfoResponse o) { 1109 checkVoterInfoResponse(api.VoterInfoResponse o) {
1110 buildCounterVoterInfoResponse++; 1110 buildCounterVoterInfoResponse++;
1111 if (buildCounterVoterInfoResponse < 3) { 1111 if (buildCounterVoterInfoResponse < 3) {
1112 checkUnnamed2480(o.contests); 1112 checkUnnamed648(o.contests);
1113 checkUnnamed2481(o.dropOffLocations); 1113 checkUnnamed649(o.dropOffLocations);
1114 checkUnnamed2482(o.earlyVoteSites); 1114 checkUnnamed650(o.earlyVoteSites);
1115 checkElection(o.election); 1115 checkElection(o.election);
1116 unittest.expect(o.kind, unittest.equals('foo')); 1116 unittest.expect(o.kind, unittest.equals('foo'));
1117 unittest.expect(o.mailOnly, unittest.isTrue); 1117 unittest.expect(o.mailOnly, unittest.isTrue);
1118 checkSimpleAddressType(o.normalizedInput); 1118 checkSimpleAddressType(o.normalizedInput);
1119 checkUnnamed2483(o.otherElections); 1119 checkUnnamed651(o.otherElections);
1120 checkUnnamed2484(o.pollingLocations); 1120 checkUnnamed652(o.pollingLocations);
1121 unittest.expect(o.precinctId, unittest.equals('foo')); 1121 unittest.expect(o.precinctId, unittest.equals('foo'));
1122 checkUnnamed2485(o.state); 1122 checkUnnamed653(o.state);
1123 } 1123 }
1124 buildCounterVoterInfoResponse--; 1124 buildCounterVoterInfoResponse--;
1125 } 1125 }
1126 1126
1127 buildUnnamed2486() { 1127 buildUnnamed654() {
1128 var o = new core.List<core.String>(); 1128 var o = new core.List<core.String>();
1129 o.add("foo"); 1129 o.add("foo");
1130 o.add("foo"); 1130 o.add("foo");
1131 return o; 1131 return o;
1132 } 1132 }
1133 1133
1134 checkUnnamed2486(core.List<core.String> o) { 1134 checkUnnamed654(core.List<core.String> o) {
1135 unittest.expect(o, unittest.hasLength(2)); 1135 unittest.expect(o, unittest.hasLength(2));
1136 unittest.expect(o[0], unittest.equals('foo')); 1136 unittest.expect(o[0], unittest.equals('foo'));
1137 unittest.expect(o[1], unittest.equals('foo')); 1137 unittest.expect(o[1], unittest.equals('foo'));
1138 } 1138 }
1139 1139
1140 buildUnnamed2487() { 1140 buildUnnamed655() {
1141 var o = new core.List<core.String>(); 1141 var o = new core.List<core.String>();
1142 o.add("foo"); 1142 o.add("foo");
1143 o.add("foo"); 1143 o.add("foo");
1144 return o; 1144 return o;
1145 } 1145 }
1146 1146
1147 checkUnnamed2487(core.List<core.String> o) { 1147 checkUnnamed655(core.List<core.String> o) {
1148 unittest.expect(o, unittest.hasLength(2)); 1148 unittest.expect(o, unittest.hasLength(2));
1149 unittest.expect(o[0], unittest.equals('foo')); 1149 unittest.expect(o[0], unittest.equals('foo'));
1150 unittest.expect(o[1], unittest.equals('foo')); 1150 unittest.expect(o[1], unittest.equals('foo'));
1151 } 1151 }
1152 1152
1153 buildUnnamed2488() { 1153 buildUnnamed656() {
1154 var o = new core.List<core.String>(); 1154 var o = new core.List<core.String>();
1155 o.add("foo"); 1155 o.add("foo");
1156 o.add("foo"); 1156 o.add("foo");
1157 return o; 1157 return o;
1158 } 1158 }
1159 1159
1160 checkUnnamed2488(core.List<core.String> o) { 1160 checkUnnamed656(core.List<core.String> o) {
1161 unittest.expect(o, unittest.hasLength(2)); 1161 unittest.expect(o, unittest.hasLength(2));
1162 unittest.expect(o[0], unittest.equals('foo')); 1162 unittest.expect(o[0], unittest.equals('foo'));
1163 unittest.expect(o[1], unittest.equals('foo')); 1163 unittest.expect(o[1], unittest.equals('foo'));
1164 } 1164 }
1165 1165
1166 buildUnnamed2489() { 1166 buildUnnamed657() {
1167 var o = new core.List<core.String>(); 1167 var o = new core.List<core.String>();
1168 o.add("foo"); 1168 o.add("foo");
1169 o.add("foo"); 1169 o.add("foo");
1170 return o; 1170 return o;
1171 } 1171 }
1172 1172
1173 checkUnnamed2489(core.List<core.String> o) { 1173 checkUnnamed657(core.List<core.String> o) {
1174 unittest.expect(o, unittest.hasLength(2)); 1174 unittest.expect(o, unittest.hasLength(2));
1175 unittest.expect(o[0], unittest.equals('foo')); 1175 unittest.expect(o[0], unittest.equals('foo'));
1176 unittest.expect(o[1], unittest.equals('foo')); 1176 unittest.expect(o[1], unittest.equals('foo'));
1177 } 1177 }
1178 1178
1179 1179
1180 main() { 1180 main() {
1181 unittest.group("obj-schema-AdministrationRegion", () { 1181 unittest.group("obj-schema-AdministrationRegion", () {
1182 unittest.test("to-json--from-json", () { 1182 unittest.test("to-json--from-json", () {
1183 var o = buildAdministrationRegion(); 1183 var o = buildAdministrationRegion();
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
1509 }); 1509 });
1510 1510
1511 1511
1512 unittest.group("resource-RepresentativesResourceApi", () { 1512 unittest.group("resource-RepresentativesResourceApi", () {
1513 unittest.test("method--representativeInfoByAddress", () { 1513 unittest.test("method--representativeInfoByAddress", () {
1514 1514
1515 var mock = new HttpServerMock(); 1515 var mock = new HttpServerMock();
1516 api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representa tives; 1516 api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representa tives;
1517 var arg_address = "foo"; 1517 var arg_address = "foo";
1518 var arg_includeOffices = true; 1518 var arg_includeOffices = true;
1519 var arg_levels = buildUnnamed2486(); 1519 var arg_levels = buildUnnamed654();
1520 var arg_roles = buildUnnamed2487(); 1520 var arg_roles = buildUnnamed655();
1521 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1521 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1522 var path = (req.url).path; 1522 var path = (req.url).path;
1523 var pathOffset = 0; 1523 var pathOffset = 0;
1524 var index; 1524 var index;
1525 var subPart; 1525 var subPart;
1526 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1526 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1527 pathOffset += 1; 1527 pathOffset += 1;
1528 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("civicinfo/v2/")); 1528 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("civicinfo/v2/"));
1529 pathOffset += 13; 1529 pathOffset += 13;
1530 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq uals("representatives")); 1530 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) { 1561 res.representativeInfoByAddress(address: arg_address, includeOffices: arg_ includeOffices, levels: arg_levels, roles: arg_roles).then(unittest.expectAsync( ((api.RepresentativeInfoResponse response) {
1562 checkRepresentativeInfoResponse(response); 1562 checkRepresentativeInfoResponse(response);
1563 }))); 1563 })));
1564 }); 1564 });
1565 1565
1566 unittest.test("method--representativeInfoByDivision", () { 1566 unittest.test("method--representativeInfoByDivision", () {
1567 1567
1568 var mock = new HttpServerMock(); 1568 var mock = new HttpServerMock();
1569 api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representa tives; 1569 api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representa tives;
1570 var arg_ocdId = "foo"; 1570 var arg_ocdId = "foo";
1571 var arg_levels = buildUnnamed2488(); 1571 var arg_levels = buildUnnamed656();
1572 var arg_recursive = true; 1572 var arg_recursive = true;
1573 var arg_roles = buildUnnamed2489(); 1573 var arg_roles = buildUnnamed657();
1574 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1574 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1575 var path = (req.url).path; 1575 var path = (req.url).path;
1576 var pathOffset = 0; 1576 var pathOffset = 0;
1577 var index; 1577 var index;
1578 var subPart; 1578 var subPart;
1579 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1579 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1580 pathOffset += 1; 1580 pathOffset += 1;
1581 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("civicinfo/v2/")); 1581 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("civicinfo/v2/"));
1582 pathOffset += 13; 1582 pathOffset += 13;
1583 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("representatives/")); 1583 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) { 1616 res.representativeInfoByDivision(arg_ocdId, levels: arg_levels, recursive: arg_recursive, roles: arg_roles).then(unittest.expectAsync(((api.Representative InfoData response) {
1617 checkRepresentativeInfoData(response); 1617 checkRepresentativeInfoData(response);
1618 }))); 1618 })));
1619 }); 1619 });
1620 1620
1621 }); 1621 });
1622 1622
1623 1623
1624 } 1624 }
1625 1625
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