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

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

Issue 2159673002: Api-roll 39: 2016-07-18 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 4 years, 5 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 buildUnnamed599() { 54 buildUnnamed2449() {
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 checkUnnamed599(core.List<api.Source> o) { 61 checkUnnamed2449(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 = buildUnnamed599(); 76 o.sources = buildUnnamed2449();
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 checkUnnamed599(o.sources); 89 checkUnnamed2449(o.sources);
90 } 90 }
91 buildCounterAdministrationRegion--; 91 buildCounterAdministrationRegion--;
92 } 92 }
93 93
94 buildUnnamed600() { 94 buildUnnamed2450() {
95 var o = new core.List<core.String>();
96 o.add("foo");
97 o.add("foo");
98 return o;
99 }
100
101 checkUnnamed2450(core.List<core.String> o) {
102 unittest.expect(o, unittest.hasLength(2));
103 unittest.expect(o[0], unittest.equals('foo'));
104 unittest.expect(o[1], unittest.equals('foo'));
105 }
106
107 buildUnnamed2451() {
95 var o = new core.List<api.ElectionOfficial>(); 108 var o = new core.List<api.ElectionOfficial>();
96 o.add(buildElectionOfficial()); 109 o.add(buildElectionOfficial());
97 o.add(buildElectionOfficial()); 110 o.add(buildElectionOfficial());
98 return o; 111 return o;
99 } 112 }
100 113
101 checkUnnamed600(core.List<api.ElectionOfficial> o) { 114 checkUnnamed2451(core.List<api.ElectionOfficial> o) {
102 unittest.expect(o, unittest.hasLength(2)); 115 unittest.expect(o, unittest.hasLength(2));
103 checkElectionOfficial(o[0]); 116 checkElectionOfficial(o[0]);
104 checkElectionOfficial(o[1]); 117 checkElectionOfficial(o[1]);
105 } 118 }
106 119
107 buildUnnamed601() { 120 buildUnnamed2452() {
108 var o = new core.List<core.String>(); 121 var o = new core.List<core.String>();
109 o.add("foo"); 122 o.add("foo");
110 o.add("foo"); 123 o.add("foo");
111 return o; 124 return o;
112 } 125 }
113 126
114 checkUnnamed601(core.List<core.String> o) { 127 checkUnnamed2452(core.List<core.String> o) {
115 unittest.expect(o, unittest.hasLength(2)); 128 unittest.expect(o, unittest.hasLength(2));
116 unittest.expect(o[0], unittest.equals('foo')); 129 unittest.expect(o[0], unittest.equals('foo'));
117 unittest.expect(o[1], unittest.equals('foo')); 130 unittest.expect(o[1], unittest.equals('foo'));
118 } 131 }
119 132
120 core.int buildCounterAdministrativeBody = 0; 133 core.int buildCounterAdministrativeBody = 0;
121 buildAdministrativeBody() { 134 buildAdministrativeBody() {
122 var o = new api.AdministrativeBody(); 135 var o = new api.AdministrativeBody();
123 buildCounterAdministrativeBody++; 136 buildCounterAdministrativeBody++;
124 if (buildCounterAdministrativeBody < 3) { 137 if (buildCounterAdministrativeBody < 3) {
125 o.absenteeVotingInfoUrl = "foo"; 138 o.absenteeVotingInfoUrl = "foo";
139 o.addressLines = buildUnnamed2450();
126 o.ballotInfoUrl = "foo"; 140 o.ballotInfoUrl = "foo";
127 o.correspondenceAddress = buildSimpleAddressType(); 141 o.correspondenceAddress = buildSimpleAddressType();
128 o.electionInfoUrl = "foo"; 142 o.electionInfoUrl = "foo";
129 o.electionOfficials = buildUnnamed600(); 143 o.electionOfficials = buildUnnamed2451();
130 o.electionRegistrationConfirmationUrl = "foo"; 144 o.electionRegistrationConfirmationUrl = "foo";
131 o.electionRegistrationUrl = "foo"; 145 o.electionRegistrationUrl = "foo";
132 o.electionRulesUrl = "foo"; 146 o.electionRulesUrl = "foo";
133 o.hoursOfOperation = "foo"; 147 o.hoursOfOperation = "foo";
134 o.name = "foo"; 148 o.name = "foo";
135 o.physicalAddress = buildSimpleAddressType(); 149 o.physicalAddress = buildSimpleAddressType();
136 o.voterServices = buildUnnamed601(); 150 o.voterServices = buildUnnamed2452();
137 o.votingLocationFinderUrl = "foo"; 151 o.votingLocationFinderUrl = "foo";
138 } 152 }
139 buildCounterAdministrativeBody--; 153 buildCounterAdministrativeBody--;
140 return o; 154 return o;
141 } 155 }
142 156
143 checkAdministrativeBody(api.AdministrativeBody o) { 157 checkAdministrativeBody(api.AdministrativeBody o) {
144 buildCounterAdministrativeBody++; 158 buildCounterAdministrativeBody++;
145 if (buildCounterAdministrativeBody < 3) { 159 if (buildCounterAdministrativeBody < 3) {
146 unittest.expect(o.absenteeVotingInfoUrl, unittest.equals('foo')); 160 unittest.expect(o.absenteeVotingInfoUrl, unittest.equals('foo'));
161 checkUnnamed2450(o.addressLines);
147 unittest.expect(o.ballotInfoUrl, unittest.equals('foo')); 162 unittest.expect(o.ballotInfoUrl, unittest.equals('foo'));
148 checkSimpleAddressType(o.correspondenceAddress); 163 checkSimpleAddressType(o.correspondenceAddress);
149 unittest.expect(o.electionInfoUrl, unittest.equals('foo')); 164 unittest.expect(o.electionInfoUrl, unittest.equals('foo'));
150 checkUnnamed600(o.electionOfficials); 165 checkUnnamed2451(o.electionOfficials);
151 unittest.expect(o.electionRegistrationConfirmationUrl, unittest.equals('foo' )); 166 unittest.expect(o.electionRegistrationConfirmationUrl, unittest.equals('foo' ));
152 unittest.expect(o.electionRegistrationUrl, unittest.equals('foo')); 167 unittest.expect(o.electionRegistrationUrl, unittest.equals('foo'));
153 unittest.expect(o.electionRulesUrl, unittest.equals('foo')); 168 unittest.expect(o.electionRulesUrl, unittest.equals('foo'));
154 unittest.expect(o.hoursOfOperation, unittest.equals('foo')); 169 unittest.expect(o.hoursOfOperation, unittest.equals('foo'));
155 unittest.expect(o.name, unittest.equals('foo')); 170 unittest.expect(o.name, unittest.equals('foo'));
156 checkSimpleAddressType(o.physicalAddress); 171 checkSimpleAddressType(o.physicalAddress);
157 checkUnnamed601(o.voterServices); 172 checkUnnamed2452(o.voterServices);
158 unittest.expect(o.votingLocationFinderUrl, unittest.equals('foo')); 173 unittest.expect(o.votingLocationFinderUrl, unittest.equals('foo'));
159 } 174 }
160 buildCounterAdministrativeBody--; 175 buildCounterAdministrativeBody--;
161 } 176 }
162 177
163 buildUnnamed602() { 178 buildUnnamed2453() {
164 var o = new core.List<api.Channel>(); 179 var o = new core.List<api.Channel>();
165 o.add(buildChannel()); 180 o.add(buildChannel());
166 o.add(buildChannel()); 181 o.add(buildChannel());
167 return o; 182 return o;
168 } 183 }
169 184
170 checkUnnamed602(core.List<api.Channel> o) { 185 checkUnnamed2453(core.List<api.Channel> o) {
171 unittest.expect(o, unittest.hasLength(2)); 186 unittest.expect(o, unittest.hasLength(2));
172 checkChannel(o[0]); 187 checkChannel(o[0]);
173 checkChannel(o[1]); 188 checkChannel(o[1]);
174 } 189 }
175 190
176 core.int buildCounterCandidate = 0; 191 core.int buildCounterCandidate = 0;
177 buildCandidate() { 192 buildCandidate() {
178 var o = new api.Candidate(); 193 var o = new api.Candidate();
179 buildCounterCandidate++; 194 buildCounterCandidate++;
180 if (buildCounterCandidate < 3) { 195 if (buildCounterCandidate < 3) {
181 o.candidateUrl = "foo"; 196 o.candidateUrl = "foo";
182 o.channels = buildUnnamed602(); 197 o.channels = buildUnnamed2453();
183 o.email = "foo"; 198 o.email = "foo";
184 o.name = "foo"; 199 o.name = "foo";
185 o.orderOnBallot = "foo"; 200 o.orderOnBallot = "foo";
186 o.party = "foo"; 201 o.party = "foo";
187 o.phone = "foo"; 202 o.phone = "foo";
188 o.photoUrl = "foo"; 203 o.photoUrl = "foo";
189 } 204 }
190 buildCounterCandidate--; 205 buildCounterCandidate--;
191 return o; 206 return o;
192 } 207 }
193 208
194 checkCandidate(api.Candidate o) { 209 checkCandidate(api.Candidate o) {
195 buildCounterCandidate++; 210 buildCounterCandidate++;
196 if (buildCounterCandidate < 3) { 211 if (buildCounterCandidate < 3) {
197 unittest.expect(o.candidateUrl, unittest.equals('foo')); 212 unittest.expect(o.candidateUrl, unittest.equals('foo'));
198 checkUnnamed602(o.channels); 213 checkUnnamed2453(o.channels);
199 unittest.expect(o.email, unittest.equals('foo')); 214 unittest.expect(o.email, unittest.equals('foo'));
200 unittest.expect(o.name, unittest.equals('foo')); 215 unittest.expect(o.name, unittest.equals('foo'));
201 unittest.expect(o.orderOnBallot, unittest.equals('foo')); 216 unittest.expect(o.orderOnBallot, unittest.equals('foo'));
202 unittest.expect(o.party, unittest.equals('foo')); 217 unittest.expect(o.party, unittest.equals('foo'));
203 unittest.expect(o.phone, unittest.equals('foo')); 218 unittest.expect(o.phone, unittest.equals('foo'));
204 unittest.expect(o.photoUrl, unittest.equals('foo')); 219 unittest.expect(o.photoUrl, unittest.equals('foo'));
205 } 220 }
206 buildCounterCandidate--; 221 buildCounterCandidate--;
207 } 222 }
208 223
(...skipping 11 matching lines...) Expand all
220 235
221 checkChannel(api.Channel o) { 236 checkChannel(api.Channel o) {
222 buildCounterChannel++; 237 buildCounterChannel++;
223 if (buildCounterChannel < 3) { 238 if (buildCounterChannel < 3) {
224 unittest.expect(o.id, unittest.equals('foo')); 239 unittest.expect(o.id, unittest.equals('foo'));
225 unittest.expect(o.type, unittest.equals('foo')); 240 unittest.expect(o.type, unittest.equals('foo'));
226 } 241 }
227 buildCounterChannel--; 242 buildCounterChannel--;
228 } 243 }
229 244
230 buildUnnamed603() { 245 buildUnnamed2454() {
231 var o = new core.List<api.Candidate>(); 246 var o = new core.List<api.Candidate>();
232 o.add(buildCandidate()); 247 o.add(buildCandidate());
233 o.add(buildCandidate()); 248 o.add(buildCandidate());
234 return o; 249 return o;
235 } 250 }
236 251
237 checkUnnamed603(core.List<api.Candidate> o) { 252 checkUnnamed2454(core.List<api.Candidate> o) {
238 unittest.expect(o, unittest.hasLength(2)); 253 unittest.expect(o, unittest.hasLength(2));
239 checkCandidate(o[0]); 254 checkCandidate(o[0]);
240 checkCandidate(o[1]); 255 checkCandidate(o[1]);
241 } 256 }
242 257
243 buildUnnamed604() { 258 buildUnnamed2455() {
244 var o = new core.List<core.String>(); 259 var o = new core.List<core.String>();
245 o.add("foo"); 260 o.add("foo");
246 o.add("foo"); 261 o.add("foo");
247 return o; 262 return o;
248 } 263 }
249 264
250 checkUnnamed604(core.List<core.String> o) { 265 checkUnnamed2455(core.List<core.String> o) {
251 unittest.expect(o, unittest.hasLength(2)); 266 unittest.expect(o, unittest.hasLength(2));
252 unittest.expect(o[0], unittest.equals('foo')); 267 unittest.expect(o[0], unittest.equals('foo'));
253 unittest.expect(o[1], unittest.equals('foo')); 268 unittest.expect(o[1], unittest.equals('foo'));
254 } 269 }
255 270
256 buildUnnamed605() { 271 buildUnnamed2456() {
257 var o = new core.List<core.String>(); 272 var o = new core.List<core.String>();
258 o.add("foo"); 273 o.add("foo");
259 o.add("foo"); 274 o.add("foo");
260 return o; 275 return o;
261 } 276 }
262 277
263 checkUnnamed605(core.List<core.String> o) { 278 checkUnnamed2456(core.List<core.String> o) {
264 unittest.expect(o, unittest.hasLength(2)); 279 unittest.expect(o, unittest.hasLength(2));
265 unittest.expect(o[0], unittest.equals('foo')); 280 unittest.expect(o[0], unittest.equals('foo'));
266 unittest.expect(o[1], unittest.equals('foo')); 281 unittest.expect(o[1], unittest.equals('foo'));
267 } 282 }
268 283
269 buildUnnamed606() { 284 buildUnnamed2457() {
270 var o = new core.List<core.String>(); 285 var o = new core.List<core.String>();
271 o.add("foo"); 286 o.add("foo");
272 o.add("foo"); 287 o.add("foo");
273 return o; 288 return o;
274 } 289 }
275 290
276 checkUnnamed606(core.List<core.String> o) { 291 checkUnnamed2457(core.List<core.String> o) {
277 unittest.expect(o, unittest.hasLength(2)); 292 unittest.expect(o, unittest.hasLength(2));
278 unittest.expect(o[0], unittest.equals('foo')); 293 unittest.expect(o[0], unittest.equals('foo'));
279 unittest.expect(o[1], unittest.equals('foo')); 294 unittest.expect(o[1], unittest.equals('foo'));
280 } 295 }
281 296
282 buildUnnamed607() { 297 buildUnnamed2458() {
283 var o = new core.List<api.Source>(); 298 var o = new core.List<api.Source>();
284 o.add(buildSource()); 299 o.add(buildSource());
285 o.add(buildSource()); 300 o.add(buildSource());
286 return o; 301 return o;
287 } 302 }
288 303
289 checkUnnamed607(core.List<api.Source> o) { 304 checkUnnamed2458(core.List<api.Source> o) {
290 unittest.expect(o, unittest.hasLength(2)); 305 unittest.expect(o, unittest.hasLength(2));
291 checkSource(o[0]); 306 checkSource(o[0]);
292 checkSource(o[1]); 307 checkSource(o[1]);
293 } 308 }
294 309
295 core.int buildCounterContest = 0; 310 core.int buildCounterContest = 0;
296 buildContest() { 311 buildContest() {
297 var o = new api.Contest(); 312 var o = new api.Contest();
298 buildCounterContest++; 313 buildCounterContest++;
299 if (buildCounterContest < 3) { 314 if (buildCounterContest < 3) {
300 o.ballotPlacement = "foo"; 315 o.ballotPlacement = "foo";
301 o.candidates = buildUnnamed603(); 316 o.candidates = buildUnnamed2454();
302 o.district = buildElectoralDistrict(); 317 o.district = buildElectoralDistrict();
303 o.electorateSpecifications = "foo"; 318 o.electorateSpecifications = "foo";
304 o.id = "foo"; 319 o.id = "foo";
305 o.level = buildUnnamed604(); 320 o.level = buildUnnamed2455();
306 o.numberElected = "foo"; 321 o.numberElected = "foo";
307 o.numberVotingFor = "foo"; 322 o.numberVotingFor = "foo";
308 o.office = "foo"; 323 o.office = "foo";
309 o.primaryParty = "foo"; 324 o.primaryParty = "foo";
310 o.referendumBallotResponses = buildUnnamed605(); 325 o.referendumBallotResponses = buildUnnamed2456();
311 o.referendumBrief = "foo"; 326 o.referendumBrief = "foo";
312 o.referendumConStatement = "foo"; 327 o.referendumConStatement = "foo";
313 o.referendumEffectOfAbstain = "foo"; 328 o.referendumEffectOfAbstain = "foo";
314 o.referendumPassageThreshold = "foo"; 329 o.referendumPassageThreshold = "foo";
315 o.referendumProStatement = "foo"; 330 o.referendumProStatement = "foo";
316 o.referendumSubtitle = "foo"; 331 o.referendumSubtitle = "foo";
317 o.referendumText = "foo"; 332 o.referendumText = "foo";
318 o.referendumTitle = "foo"; 333 o.referendumTitle = "foo";
319 o.referendumUrl = "foo"; 334 o.referendumUrl = "foo";
320 o.roles = buildUnnamed606(); 335 o.roles = buildUnnamed2457();
321 o.sources = buildUnnamed607(); 336 o.sources = buildUnnamed2458();
322 o.special = "foo"; 337 o.special = "foo";
323 o.type = "foo"; 338 o.type = "foo";
324 } 339 }
325 buildCounterContest--; 340 buildCounterContest--;
326 return o; 341 return o;
327 } 342 }
328 343
329 checkContest(api.Contest o) { 344 checkContest(api.Contest o) {
330 buildCounterContest++; 345 buildCounterContest++;
331 if (buildCounterContest < 3) { 346 if (buildCounterContest < 3) {
332 unittest.expect(o.ballotPlacement, unittest.equals('foo')); 347 unittest.expect(o.ballotPlacement, unittest.equals('foo'));
333 checkUnnamed603(o.candidates); 348 checkUnnamed2454(o.candidates);
334 checkElectoralDistrict(o.district); 349 checkElectoralDistrict(o.district);
335 unittest.expect(o.electorateSpecifications, unittest.equals('foo')); 350 unittest.expect(o.electorateSpecifications, unittest.equals('foo'));
336 unittest.expect(o.id, unittest.equals('foo')); 351 unittest.expect(o.id, unittest.equals('foo'));
337 checkUnnamed604(o.level); 352 checkUnnamed2455(o.level);
338 unittest.expect(o.numberElected, unittest.equals('foo')); 353 unittest.expect(o.numberElected, unittest.equals('foo'));
339 unittest.expect(o.numberVotingFor, unittest.equals('foo')); 354 unittest.expect(o.numberVotingFor, unittest.equals('foo'));
340 unittest.expect(o.office, unittest.equals('foo')); 355 unittest.expect(o.office, unittest.equals('foo'));
341 unittest.expect(o.primaryParty, unittest.equals('foo')); 356 unittest.expect(o.primaryParty, unittest.equals('foo'));
342 checkUnnamed605(o.referendumBallotResponses); 357 checkUnnamed2456(o.referendumBallotResponses);
343 unittest.expect(o.referendumBrief, unittest.equals('foo')); 358 unittest.expect(o.referendumBrief, unittest.equals('foo'));
344 unittest.expect(o.referendumConStatement, unittest.equals('foo')); 359 unittest.expect(o.referendumConStatement, unittest.equals('foo'));
345 unittest.expect(o.referendumEffectOfAbstain, unittest.equals('foo')); 360 unittest.expect(o.referendumEffectOfAbstain, unittest.equals('foo'));
346 unittest.expect(o.referendumPassageThreshold, unittest.equals('foo')); 361 unittest.expect(o.referendumPassageThreshold, unittest.equals('foo'));
347 unittest.expect(o.referendumProStatement, unittest.equals('foo')); 362 unittest.expect(o.referendumProStatement, unittest.equals('foo'));
348 unittest.expect(o.referendumSubtitle, unittest.equals('foo')); 363 unittest.expect(o.referendumSubtitle, unittest.equals('foo'));
349 unittest.expect(o.referendumText, unittest.equals('foo')); 364 unittest.expect(o.referendumText, unittest.equals('foo'));
350 unittest.expect(o.referendumTitle, unittest.equals('foo')); 365 unittest.expect(o.referendumTitle, unittest.equals('foo'));
351 unittest.expect(o.referendumUrl, unittest.equals('foo')); 366 unittest.expect(o.referendumUrl, unittest.equals('foo'));
352 checkUnnamed606(o.roles); 367 checkUnnamed2457(o.roles);
353 checkUnnamed607(o.sources); 368 checkUnnamed2458(o.sources);
354 unittest.expect(o.special, unittest.equals('foo')); 369 unittest.expect(o.special, unittest.equals('foo'));
355 unittest.expect(o.type, unittest.equals('foo')); 370 unittest.expect(o.type, unittest.equals('foo'));
356 } 371 }
357 buildCounterContest--; 372 buildCounterContest--;
358 } 373 }
359 374
360 buildUnnamed608() { 375 buildUnnamed2459() {
361 var o = new core.List<api.DivisionSearchResult>(); 376 var o = new core.List<api.DivisionSearchResult>();
362 o.add(buildDivisionSearchResult()); 377 o.add(buildDivisionSearchResult());
363 o.add(buildDivisionSearchResult()); 378 o.add(buildDivisionSearchResult());
364 return o; 379 return o;
365 } 380 }
366 381
367 checkUnnamed608(core.List<api.DivisionSearchResult> o) { 382 checkUnnamed2459(core.List<api.DivisionSearchResult> o) {
368 unittest.expect(o, unittest.hasLength(2)); 383 unittest.expect(o, unittest.hasLength(2));
369 checkDivisionSearchResult(o[0]); 384 checkDivisionSearchResult(o[0]);
370 checkDivisionSearchResult(o[1]); 385 checkDivisionSearchResult(o[1]);
371 } 386 }
372 387
373 core.int buildCounterDivisionSearchResponse = 0; 388 core.int buildCounterDivisionSearchResponse = 0;
374 buildDivisionSearchResponse() { 389 buildDivisionSearchResponse() {
375 var o = new api.DivisionSearchResponse(); 390 var o = new api.DivisionSearchResponse();
376 buildCounterDivisionSearchResponse++; 391 buildCounterDivisionSearchResponse++;
377 if (buildCounterDivisionSearchResponse < 3) { 392 if (buildCounterDivisionSearchResponse < 3) {
378 o.kind = "foo"; 393 o.kind = "foo";
379 o.results = buildUnnamed608(); 394 o.results = buildUnnamed2459();
380 } 395 }
381 buildCounterDivisionSearchResponse--; 396 buildCounterDivisionSearchResponse--;
382 return o; 397 return o;
383 } 398 }
384 399
385 checkDivisionSearchResponse(api.DivisionSearchResponse o) { 400 checkDivisionSearchResponse(api.DivisionSearchResponse o) {
386 buildCounterDivisionSearchResponse++; 401 buildCounterDivisionSearchResponse++;
387 if (buildCounterDivisionSearchResponse < 3) { 402 if (buildCounterDivisionSearchResponse < 3) {
388 unittest.expect(o.kind, unittest.equals('foo')); 403 unittest.expect(o.kind, unittest.equals('foo'));
389 checkUnnamed608(o.results); 404 checkUnnamed2459(o.results);
390 } 405 }
391 buildCounterDivisionSearchResponse--; 406 buildCounterDivisionSearchResponse--;
392 } 407 }
393 408
394 buildUnnamed609() { 409 buildUnnamed2460() {
395 var o = new core.List<core.String>(); 410 var o = new core.List<core.String>();
396 o.add("foo"); 411 o.add("foo");
397 o.add("foo"); 412 o.add("foo");
398 return o; 413 return o;
399 } 414 }
400 415
401 checkUnnamed609(core.List<core.String> o) { 416 checkUnnamed2460(core.List<core.String> o) {
402 unittest.expect(o, unittest.hasLength(2)); 417 unittest.expect(o, unittest.hasLength(2));
403 unittest.expect(o[0], unittest.equals('foo')); 418 unittest.expect(o[0], unittest.equals('foo'));
404 unittest.expect(o[1], unittest.equals('foo')); 419 unittest.expect(o[1], unittest.equals('foo'));
405 } 420 }
406 421
407 core.int buildCounterDivisionSearchResult = 0; 422 core.int buildCounterDivisionSearchResult = 0;
408 buildDivisionSearchResult() { 423 buildDivisionSearchResult() {
409 var o = new api.DivisionSearchResult(); 424 var o = new api.DivisionSearchResult();
410 buildCounterDivisionSearchResult++; 425 buildCounterDivisionSearchResult++;
411 if (buildCounterDivisionSearchResult < 3) { 426 if (buildCounterDivisionSearchResult < 3) {
412 o.aliases = buildUnnamed609(); 427 o.aliases = buildUnnamed2460();
413 o.name = "foo"; 428 o.name = "foo";
414 o.ocdId = "foo"; 429 o.ocdId = "foo";
415 } 430 }
416 buildCounterDivisionSearchResult--; 431 buildCounterDivisionSearchResult--;
417 return o; 432 return o;
418 } 433 }
419 434
420 checkDivisionSearchResult(api.DivisionSearchResult o) { 435 checkDivisionSearchResult(api.DivisionSearchResult o) {
421 buildCounterDivisionSearchResult++; 436 buildCounterDivisionSearchResult++;
422 if (buildCounterDivisionSearchResult < 3) { 437 if (buildCounterDivisionSearchResult < 3) {
423 checkUnnamed609(o.aliases); 438 checkUnnamed2460(o.aliases);
424 unittest.expect(o.name, unittest.equals('foo')); 439 unittest.expect(o.name, unittest.equals('foo'));
425 unittest.expect(o.ocdId, unittest.equals('foo')); 440 unittest.expect(o.ocdId, unittest.equals('foo'));
426 } 441 }
427 buildCounterDivisionSearchResult--; 442 buildCounterDivisionSearchResult--;
428 } 443 }
429 444
430 core.int buildCounterElection = 0; 445 core.int buildCounterElection = 0;
431 buildElection() { 446 buildElection() {
432 var o = new api.Election(); 447 var o = new api.Election();
433 buildCounterElection++; 448 buildCounterElection++;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 if (buildCounterElectionOfficial < 3) { 487 if (buildCounterElectionOfficial < 3) {
473 unittest.expect(o.emailAddress, unittest.equals('foo')); 488 unittest.expect(o.emailAddress, unittest.equals('foo'));
474 unittest.expect(o.faxNumber, unittest.equals('foo')); 489 unittest.expect(o.faxNumber, unittest.equals('foo'));
475 unittest.expect(o.name, unittest.equals('foo')); 490 unittest.expect(o.name, unittest.equals('foo'));
476 unittest.expect(o.officePhoneNumber, unittest.equals('foo')); 491 unittest.expect(o.officePhoneNumber, unittest.equals('foo'));
477 unittest.expect(o.title, unittest.equals('foo')); 492 unittest.expect(o.title, unittest.equals('foo'));
478 } 493 }
479 buildCounterElectionOfficial--; 494 buildCounterElectionOfficial--;
480 } 495 }
481 496
482 buildUnnamed610() { 497 buildUnnamed2461() {
483 var o = new core.List<api.Election>(); 498 var o = new core.List<api.Election>();
484 o.add(buildElection()); 499 o.add(buildElection());
485 o.add(buildElection()); 500 o.add(buildElection());
486 return o; 501 return o;
487 } 502 }
488 503
489 checkUnnamed610(core.List<api.Election> o) { 504 checkUnnamed2461(core.List<api.Election> o) {
490 unittest.expect(o, unittest.hasLength(2)); 505 unittest.expect(o, unittest.hasLength(2));
491 checkElection(o[0]); 506 checkElection(o[0]);
492 checkElection(o[1]); 507 checkElection(o[1]);
493 } 508 }
494 509
495 core.int buildCounterElectionsQueryResponse = 0; 510 core.int buildCounterElectionsQueryResponse = 0;
496 buildElectionsQueryResponse() { 511 buildElectionsQueryResponse() {
497 var o = new api.ElectionsQueryResponse(); 512 var o = new api.ElectionsQueryResponse();
498 buildCounterElectionsQueryResponse++; 513 buildCounterElectionsQueryResponse++;
499 if (buildCounterElectionsQueryResponse < 3) { 514 if (buildCounterElectionsQueryResponse < 3) {
500 o.elections = buildUnnamed610(); 515 o.elections = buildUnnamed2461();
501 o.kind = "foo"; 516 o.kind = "foo";
502 } 517 }
503 buildCounterElectionsQueryResponse--; 518 buildCounterElectionsQueryResponse--;
504 return o; 519 return o;
505 } 520 }
506 521
507 checkElectionsQueryResponse(api.ElectionsQueryResponse o) { 522 checkElectionsQueryResponse(api.ElectionsQueryResponse o) {
508 buildCounterElectionsQueryResponse++; 523 buildCounterElectionsQueryResponse++;
509 if (buildCounterElectionsQueryResponse < 3) { 524 if (buildCounterElectionsQueryResponse < 3) {
510 checkUnnamed610(o.elections); 525 checkUnnamed2461(o.elections);
511 unittest.expect(o.kind, unittest.equals('foo')); 526 unittest.expect(o.kind, unittest.equals('foo'));
512 } 527 }
513 buildCounterElectionsQueryResponse--; 528 buildCounterElectionsQueryResponse--;
514 } 529 }
515 530
516 core.int buildCounterElectoralDistrict = 0; 531 core.int buildCounterElectoralDistrict = 0;
517 buildElectoralDistrict() { 532 buildElectoralDistrict() {
518 var o = new api.ElectoralDistrict(); 533 var o = new api.ElectoralDistrict();
519 buildCounterElectoralDistrict++; 534 buildCounterElectoralDistrict++;
520 if (buildCounterElectoralDistrict < 3) { 535 if (buildCounterElectoralDistrict < 3) {
521 o.id = "foo"; 536 o.id = "foo";
522 o.name = "foo"; 537 o.name = "foo";
523 o.scope = "foo"; 538 o.scope = "foo";
524 } 539 }
525 buildCounterElectoralDistrict--; 540 buildCounterElectoralDistrict--;
526 return o; 541 return o;
527 } 542 }
528 543
529 checkElectoralDistrict(api.ElectoralDistrict o) { 544 checkElectoralDistrict(api.ElectoralDistrict o) {
530 buildCounterElectoralDistrict++; 545 buildCounterElectoralDistrict++;
531 if (buildCounterElectoralDistrict < 3) { 546 if (buildCounterElectoralDistrict < 3) {
532 unittest.expect(o.id, unittest.equals('foo')); 547 unittest.expect(o.id, unittest.equals('foo'));
533 unittest.expect(o.name, unittest.equals('foo')); 548 unittest.expect(o.name, unittest.equals('foo'));
534 unittest.expect(o.scope, unittest.equals('foo')); 549 unittest.expect(o.scope, unittest.equals('foo'));
535 } 550 }
536 buildCounterElectoralDistrict--; 551 buildCounterElectoralDistrict--;
537 } 552 }
538 553
539 buildUnnamed611() { 554 buildUnnamed2462() {
540 var o = new core.List<core.String>(); 555 var o = new core.List<core.String>();
541 o.add("foo"); 556 o.add("foo");
542 o.add("foo"); 557 o.add("foo");
543 return o; 558 return o;
544 } 559 }
545 560
546 checkUnnamed611(core.List<core.String> o) { 561 checkUnnamed2462(core.List<core.String> o) {
547 unittest.expect(o, unittest.hasLength(2)); 562 unittest.expect(o, unittest.hasLength(2));
548 unittest.expect(o[0], unittest.equals('foo')); 563 unittest.expect(o[0], unittest.equals('foo'));
549 unittest.expect(o[1], unittest.equals('foo')); 564 unittest.expect(o[1], unittest.equals('foo'));
550 } 565 }
551 566
552 buildUnnamed612() { 567 buildUnnamed2463() {
553 var o = new core.List<core.int>(); 568 var o = new core.List<core.int>();
554 o.add(42); 569 o.add(42);
555 o.add(42); 570 o.add(42);
556 return o; 571 return o;
557 } 572 }
558 573
559 checkUnnamed612(core.List<core.int> o) { 574 checkUnnamed2463(core.List<core.int> o) {
560 unittest.expect(o, unittest.hasLength(2)); 575 unittest.expect(o, unittest.hasLength(2));
561 unittest.expect(o[0], unittest.equals(42)); 576 unittest.expect(o[0], unittest.equals(42));
562 unittest.expect(o[1], unittest.equals(42)); 577 unittest.expect(o[1], unittest.equals(42));
563 } 578 }
564 579
565 core.int buildCounterGeographicDivision = 0; 580 core.int buildCounterGeographicDivision = 0;
566 buildGeographicDivision() { 581 buildGeographicDivision() {
567 var o = new api.GeographicDivision(); 582 var o = new api.GeographicDivision();
568 buildCounterGeographicDivision++; 583 buildCounterGeographicDivision++;
569 if (buildCounterGeographicDivision < 3) { 584 if (buildCounterGeographicDivision < 3) {
570 o.alsoKnownAs = buildUnnamed611(); 585 o.alsoKnownAs = buildUnnamed2462();
571 o.name = "foo"; 586 o.name = "foo";
572 o.officeIndices = buildUnnamed612(); 587 o.officeIndices = buildUnnamed2463();
573 } 588 }
574 buildCounterGeographicDivision--; 589 buildCounterGeographicDivision--;
575 return o; 590 return o;
576 } 591 }
577 592
578 checkGeographicDivision(api.GeographicDivision o) { 593 checkGeographicDivision(api.GeographicDivision o) {
579 buildCounterGeographicDivision++; 594 buildCounterGeographicDivision++;
580 if (buildCounterGeographicDivision < 3) { 595 if (buildCounterGeographicDivision < 3) {
581 checkUnnamed611(o.alsoKnownAs); 596 checkUnnamed2462(o.alsoKnownAs);
582 unittest.expect(o.name, unittest.equals('foo')); 597 unittest.expect(o.name, unittest.equals('foo'));
583 checkUnnamed612(o.officeIndices); 598 checkUnnamed2463(o.officeIndices);
584 } 599 }
585 buildCounterGeographicDivision--; 600 buildCounterGeographicDivision--;
586 } 601 }
587 602
588 buildUnnamed613() { 603 buildUnnamed2464() {
589 var o = new core.List<core.String>(); 604 var o = new core.List<core.String>();
590 o.add("foo"); 605 o.add("foo");
591 o.add("foo"); 606 o.add("foo");
592 return o; 607 return o;
593 } 608 }
594 609
595 checkUnnamed613(core.List<core.String> o) { 610 checkUnnamed2464(core.List<core.String> o) {
596 unittest.expect(o, unittest.hasLength(2)); 611 unittest.expect(o, unittest.hasLength(2));
597 unittest.expect(o[0], unittest.equals('foo')); 612 unittest.expect(o[0], unittest.equals('foo'));
598 unittest.expect(o[1], unittest.equals('foo')); 613 unittest.expect(o[1], unittest.equals('foo'));
599 } 614 }
600 615
601 buildUnnamed614() { 616 buildUnnamed2465() {
602 var o = new core.List<core.int>(); 617 var o = new core.List<core.int>();
603 o.add(42); 618 o.add(42);
604 o.add(42); 619 o.add(42);
605 return o; 620 return o;
606 } 621 }
607 622
608 checkUnnamed614(core.List<core.int> o) { 623 checkUnnamed2465(core.List<core.int> o) {
609 unittest.expect(o, unittest.hasLength(2)); 624 unittest.expect(o, unittest.hasLength(2));
610 unittest.expect(o[0], unittest.equals(42)); 625 unittest.expect(o[0], unittest.equals(42));
611 unittest.expect(o[1], unittest.equals(42)); 626 unittest.expect(o[1], unittest.equals(42));
612 } 627 }
613 628
614 buildUnnamed615() { 629 buildUnnamed2466() {
615 var o = new core.List<core.String>(); 630 var o = new core.List<core.String>();
616 o.add("foo"); 631 o.add("foo");
617 o.add("foo"); 632 o.add("foo");
618 return o; 633 return o;
619 } 634 }
620 635
621 checkUnnamed615(core.List<core.String> o) { 636 checkUnnamed2466(core.List<core.String> o) {
622 unittest.expect(o, unittest.hasLength(2)); 637 unittest.expect(o, unittest.hasLength(2));
623 unittest.expect(o[0], unittest.equals('foo')); 638 unittest.expect(o[0], unittest.equals('foo'));
624 unittest.expect(o[1], unittest.equals('foo')); 639 unittest.expect(o[1], unittest.equals('foo'));
625 } 640 }
626 641
627 buildUnnamed616() { 642 buildUnnamed2467() {
628 var o = new core.List<api.Source>(); 643 var o = new core.List<api.Source>();
629 o.add(buildSource()); 644 o.add(buildSource());
630 o.add(buildSource()); 645 o.add(buildSource());
631 return o; 646 return o;
632 } 647 }
633 648
634 checkUnnamed616(core.List<api.Source> o) { 649 checkUnnamed2467(core.List<api.Source> o) {
635 unittest.expect(o, unittest.hasLength(2)); 650 unittest.expect(o, unittest.hasLength(2));
636 checkSource(o[0]); 651 checkSource(o[0]);
637 checkSource(o[1]); 652 checkSource(o[1]);
638 } 653 }
639 654
640 core.int buildCounterOffice = 0; 655 core.int buildCounterOffice = 0;
641 buildOffice() { 656 buildOffice() {
642 var o = new api.Office(); 657 var o = new api.Office();
643 buildCounterOffice++; 658 buildCounterOffice++;
644 if (buildCounterOffice < 3) { 659 if (buildCounterOffice < 3) {
645 o.divisionId = "foo"; 660 o.divisionId = "foo";
646 o.levels = buildUnnamed613(); 661 o.levels = buildUnnamed2464();
647 o.name = "foo"; 662 o.name = "foo";
648 o.officialIndices = buildUnnamed614(); 663 o.officialIndices = buildUnnamed2465();
649 o.roles = buildUnnamed615(); 664 o.roles = buildUnnamed2466();
650 o.sources = buildUnnamed616(); 665 o.sources = buildUnnamed2467();
651 } 666 }
652 buildCounterOffice--; 667 buildCounterOffice--;
653 return o; 668 return o;
654 } 669 }
655 670
656 checkOffice(api.Office o) { 671 checkOffice(api.Office o) {
657 buildCounterOffice++; 672 buildCounterOffice++;
658 if (buildCounterOffice < 3) { 673 if (buildCounterOffice < 3) {
659 unittest.expect(o.divisionId, unittest.equals('foo')); 674 unittest.expect(o.divisionId, unittest.equals('foo'));
660 checkUnnamed613(o.levels); 675 checkUnnamed2464(o.levels);
661 unittest.expect(o.name, unittest.equals('foo')); 676 unittest.expect(o.name, unittest.equals('foo'));
662 checkUnnamed614(o.officialIndices); 677 checkUnnamed2465(o.officialIndices);
663 checkUnnamed615(o.roles); 678 checkUnnamed2466(o.roles);
664 checkUnnamed616(o.sources); 679 checkUnnamed2467(o.sources);
665 } 680 }
666 buildCounterOffice--; 681 buildCounterOffice--;
667 } 682 }
668 683
669 buildUnnamed617() { 684 buildUnnamed2468() {
670 var o = new core.List<api.SimpleAddressType>(); 685 var o = new core.List<api.SimpleAddressType>();
671 o.add(buildSimpleAddressType()); 686 o.add(buildSimpleAddressType());
672 o.add(buildSimpleAddressType()); 687 o.add(buildSimpleAddressType());
673 return o; 688 return o;
674 } 689 }
675 690
676 checkUnnamed617(core.List<api.SimpleAddressType> o) { 691 checkUnnamed2468(core.List<api.SimpleAddressType> o) {
677 unittest.expect(o, unittest.hasLength(2)); 692 unittest.expect(o, unittest.hasLength(2));
678 checkSimpleAddressType(o[0]); 693 checkSimpleAddressType(o[0]);
679 checkSimpleAddressType(o[1]); 694 checkSimpleAddressType(o[1]);
680 } 695 }
681 696
682 buildUnnamed618() { 697 buildUnnamed2469() {
683 var o = new core.List<api.Channel>(); 698 var o = new core.List<api.Channel>();
684 o.add(buildChannel()); 699 o.add(buildChannel());
685 o.add(buildChannel()); 700 o.add(buildChannel());
686 return o; 701 return o;
687 } 702 }
688 703
689 checkUnnamed618(core.List<api.Channel> o) { 704 checkUnnamed2469(core.List<api.Channel> o) {
690 unittest.expect(o, unittest.hasLength(2)); 705 unittest.expect(o, unittest.hasLength(2));
691 checkChannel(o[0]); 706 checkChannel(o[0]);
692 checkChannel(o[1]); 707 checkChannel(o[1]);
693 } 708 }
694 709
695 buildUnnamed619() { 710 buildUnnamed2470() {
696 var o = new core.List<core.String>(); 711 var o = new core.List<core.String>();
697 o.add("foo"); 712 o.add("foo");
698 o.add("foo"); 713 o.add("foo");
699 return o; 714 return o;
700 } 715 }
701 716
702 checkUnnamed619(core.List<core.String> o) { 717 checkUnnamed2470(core.List<core.String> o) {
703 unittest.expect(o, unittest.hasLength(2)); 718 unittest.expect(o, unittest.hasLength(2));
704 unittest.expect(o[0], unittest.equals('foo')); 719 unittest.expect(o[0], unittest.equals('foo'));
705 unittest.expect(o[1], unittest.equals('foo')); 720 unittest.expect(o[1], unittest.equals('foo'));
706 } 721 }
707 722
708 buildUnnamed620() { 723 buildUnnamed2471() {
709 var o = new core.List<core.String>(); 724 var o = new core.List<core.String>();
710 o.add("foo"); 725 o.add("foo");
711 o.add("foo"); 726 o.add("foo");
712 return o; 727 return o;
713 } 728 }
714 729
715 checkUnnamed620(core.List<core.String> o) { 730 checkUnnamed2471(core.List<core.String> o) {
716 unittest.expect(o, unittest.hasLength(2)); 731 unittest.expect(o, unittest.hasLength(2));
717 unittest.expect(o[0], unittest.equals('foo')); 732 unittest.expect(o[0], unittest.equals('foo'));
718 unittest.expect(o[1], unittest.equals('foo')); 733 unittest.expect(o[1], unittest.equals('foo'));
719 } 734 }
720 735
721 buildUnnamed621() { 736 buildUnnamed2472() {
722 var o = new core.List<core.String>(); 737 var o = new core.List<core.String>();
723 o.add("foo"); 738 o.add("foo");
724 o.add("foo"); 739 o.add("foo");
725 return o; 740 return o;
726 } 741 }
727 742
728 checkUnnamed621(core.List<core.String> o) { 743 checkUnnamed2472(core.List<core.String> o) {
729 unittest.expect(o, unittest.hasLength(2)); 744 unittest.expect(o, unittest.hasLength(2));
730 unittest.expect(o[0], unittest.equals('foo')); 745 unittest.expect(o[0], unittest.equals('foo'));
731 unittest.expect(o[1], unittest.equals('foo')); 746 unittest.expect(o[1], unittest.equals('foo'));
732 } 747 }
733 748
734 core.int buildCounterOfficial = 0; 749 core.int buildCounterOfficial = 0;
735 buildOfficial() { 750 buildOfficial() {
736 var o = new api.Official(); 751 var o = new api.Official();
737 buildCounterOfficial++; 752 buildCounterOfficial++;
738 if (buildCounterOfficial < 3) { 753 if (buildCounterOfficial < 3) {
739 o.address = buildUnnamed617(); 754 o.address = buildUnnamed2468();
740 o.channels = buildUnnamed618(); 755 o.channels = buildUnnamed2469();
741 o.emails = buildUnnamed619(); 756 o.emails = buildUnnamed2470();
742 o.name = "foo"; 757 o.name = "foo";
743 o.party = "foo"; 758 o.party = "foo";
744 o.phones = buildUnnamed620(); 759 o.phones = buildUnnamed2471();
745 o.photoUrl = "foo"; 760 o.photoUrl = "foo";
746 o.urls = buildUnnamed621(); 761 o.urls = buildUnnamed2472();
747 } 762 }
748 buildCounterOfficial--; 763 buildCounterOfficial--;
749 return o; 764 return o;
750 } 765 }
751 766
752 checkOfficial(api.Official o) { 767 checkOfficial(api.Official o) {
753 buildCounterOfficial++; 768 buildCounterOfficial++;
754 if (buildCounterOfficial < 3) { 769 if (buildCounterOfficial < 3) {
755 checkUnnamed617(o.address); 770 checkUnnamed2468(o.address);
756 checkUnnamed618(o.channels); 771 checkUnnamed2469(o.channels);
757 checkUnnamed619(o.emails); 772 checkUnnamed2470(o.emails);
758 unittest.expect(o.name, unittest.equals('foo')); 773 unittest.expect(o.name, unittest.equals('foo'));
759 unittest.expect(o.party, unittest.equals('foo')); 774 unittest.expect(o.party, unittest.equals('foo'));
760 checkUnnamed620(o.phones); 775 checkUnnamed2471(o.phones);
761 unittest.expect(o.photoUrl, unittest.equals('foo')); 776 unittest.expect(o.photoUrl, unittest.equals('foo'));
762 checkUnnamed621(o.urls); 777 checkUnnamed2472(o.urls);
763 } 778 }
764 buildCounterOfficial--; 779 buildCounterOfficial--;
765 } 780 }
766 781
767 buildUnnamed622() { 782 buildUnnamed2473() {
768 var o = new core.List<api.Source>(); 783 var o = new core.List<api.Source>();
769 o.add(buildSource()); 784 o.add(buildSource());
770 o.add(buildSource()); 785 o.add(buildSource());
771 return o; 786 return o;
772 } 787 }
773 788
774 checkUnnamed622(core.List<api.Source> o) { 789 checkUnnamed2473(core.List<api.Source> o) {
775 unittest.expect(o, unittest.hasLength(2)); 790 unittest.expect(o, unittest.hasLength(2));
776 checkSource(o[0]); 791 checkSource(o[0]);
777 checkSource(o[1]); 792 checkSource(o[1]);
778 } 793 }
779 794
780 core.int buildCounterPollingLocation = 0; 795 core.int buildCounterPollingLocation = 0;
781 buildPollingLocation() { 796 buildPollingLocation() {
782 var o = new api.PollingLocation(); 797 var o = new api.PollingLocation();
783 buildCounterPollingLocation++; 798 buildCounterPollingLocation++;
784 if (buildCounterPollingLocation < 3) { 799 if (buildCounterPollingLocation < 3) {
785 o.address = buildSimpleAddressType(); 800 o.address = buildSimpleAddressType();
786 o.endDate = "foo"; 801 o.endDate = "foo";
787 o.id = "foo"; 802 o.id = "foo";
788 o.name = "foo"; 803 o.name = "foo";
789 o.notes = "foo"; 804 o.notes = "foo";
790 o.pollingHours = "foo"; 805 o.pollingHours = "foo";
791 o.sources = buildUnnamed622(); 806 o.sources = buildUnnamed2473();
792 o.startDate = "foo"; 807 o.startDate = "foo";
793 o.voterServices = "foo"; 808 o.voterServices = "foo";
794 } 809 }
795 buildCounterPollingLocation--; 810 buildCounterPollingLocation--;
796 return o; 811 return o;
797 } 812 }
798 813
799 checkPollingLocation(api.PollingLocation o) { 814 checkPollingLocation(api.PollingLocation o) {
800 buildCounterPollingLocation++; 815 buildCounterPollingLocation++;
801 if (buildCounterPollingLocation < 3) { 816 if (buildCounterPollingLocation < 3) {
802 checkSimpleAddressType(o.address); 817 checkSimpleAddressType(o.address);
803 unittest.expect(o.endDate, unittest.equals('foo')); 818 unittest.expect(o.endDate, unittest.equals('foo'));
804 unittest.expect(o.id, unittest.equals('foo')); 819 unittest.expect(o.id, unittest.equals('foo'));
805 unittest.expect(o.name, unittest.equals('foo')); 820 unittest.expect(o.name, unittest.equals('foo'));
806 unittest.expect(o.notes, unittest.equals('foo')); 821 unittest.expect(o.notes, unittest.equals('foo'));
807 unittest.expect(o.pollingHours, unittest.equals('foo')); 822 unittest.expect(o.pollingHours, unittest.equals('foo'));
808 checkUnnamed622(o.sources); 823 checkUnnamed2473(o.sources);
809 unittest.expect(o.startDate, unittest.equals('foo')); 824 unittest.expect(o.startDate, unittest.equals('foo'));
810 unittest.expect(o.voterServices, unittest.equals('foo')); 825 unittest.expect(o.voterServices, unittest.equals('foo'));
811 } 826 }
812 buildCounterPollingLocation--; 827 buildCounterPollingLocation--;
813 } 828 }
814 829
815 buildUnnamed623() { 830 buildUnnamed2474() {
816 var o = new core.Map<core.String, api.GeographicDivision>(); 831 var o = new core.Map<core.String, api.GeographicDivision>();
817 o["x"] = buildGeographicDivision(); 832 o["x"] = buildGeographicDivision();
818 o["y"] = buildGeographicDivision(); 833 o["y"] = buildGeographicDivision();
819 return o; 834 return o;
820 } 835 }
821 836
822 checkUnnamed623(core.Map<core.String, api.GeographicDivision> o) { 837 checkUnnamed2474(core.Map<core.String, api.GeographicDivision> o) {
823 unittest.expect(o, unittest.hasLength(2)); 838 unittest.expect(o, unittest.hasLength(2));
824 checkGeographicDivision(o["x"]); 839 checkGeographicDivision(o["x"]);
825 checkGeographicDivision(o["y"]); 840 checkGeographicDivision(o["y"]);
826 } 841 }
827 842
828 buildUnnamed624() { 843 buildUnnamed2475() {
829 var o = new core.List<api.Office>(); 844 var o = new core.List<api.Office>();
830 o.add(buildOffice()); 845 o.add(buildOffice());
831 o.add(buildOffice()); 846 o.add(buildOffice());
832 return o; 847 return o;
833 } 848 }
834 849
835 checkUnnamed624(core.List<api.Office> o) { 850 checkUnnamed2475(core.List<api.Office> o) {
836 unittest.expect(o, unittest.hasLength(2)); 851 unittest.expect(o, unittest.hasLength(2));
837 checkOffice(o[0]); 852 checkOffice(o[0]);
838 checkOffice(o[1]); 853 checkOffice(o[1]);
839 } 854 }
840 855
841 buildUnnamed625() { 856 buildUnnamed2476() {
842 var o = new core.List<api.Official>(); 857 var o = new core.List<api.Official>();
843 o.add(buildOfficial()); 858 o.add(buildOfficial());
844 o.add(buildOfficial()); 859 o.add(buildOfficial());
845 return o; 860 return o;
846 } 861 }
847 862
848 checkUnnamed625(core.List<api.Official> o) { 863 checkUnnamed2476(core.List<api.Official> o) {
849 unittest.expect(o, unittest.hasLength(2)); 864 unittest.expect(o, unittest.hasLength(2));
850 checkOfficial(o[0]); 865 checkOfficial(o[0]);
851 checkOfficial(o[1]); 866 checkOfficial(o[1]);
852 } 867 }
853 868
854 core.int buildCounterRepresentativeInfoData = 0; 869 core.int buildCounterRepresentativeInfoData = 0;
855 buildRepresentativeInfoData() { 870 buildRepresentativeInfoData() {
856 var o = new api.RepresentativeInfoData(); 871 var o = new api.RepresentativeInfoData();
857 buildCounterRepresentativeInfoData++; 872 buildCounterRepresentativeInfoData++;
858 if (buildCounterRepresentativeInfoData < 3) { 873 if (buildCounterRepresentativeInfoData < 3) {
859 o.divisions = buildUnnamed623(); 874 o.divisions = buildUnnamed2474();
860 o.offices = buildUnnamed624(); 875 o.offices = buildUnnamed2475();
861 o.officials = buildUnnamed625(); 876 o.officials = buildUnnamed2476();
862 } 877 }
863 buildCounterRepresentativeInfoData--; 878 buildCounterRepresentativeInfoData--;
864 return o; 879 return o;
865 } 880 }
866 881
867 checkRepresentativeInfoData(api.RepresentativeInfoData o) { 882 checkRepresentativeInfoData(api.RepresentativeInfoData o) {
868 buildCounterRepresentativeInfoData++; 883 buildCounterRepresentativeInfoData++;
869 if (buildCounterRepresentativeInfoData < 3) { 884 if (buildCounterRepresentativeInfoData < 3) {
870 checkUnnamed623(o.divisions); 885 checkUnnamed2474(o.divisions);
871 checkUnnamed624(o.offices); 886 checkUnnamed2475(o.offices);
872 checkUnnamed625(o.officials); 887 checkUnnamed2476(o.officials);
873 } 888 }
874 buildCounterRepresentativeInfoData--; 889 buildCounterRepresentativeInfoData--;
875 } 890 }
876 891
877 buildUnnamed626() { 892 buildUnnamed2477() {
878 var o = new core.Map<core.String, api.GeographicDivision>(); 893 var o = new core.Map<core.String, api.GeographicDivision>();
879 o["x"] = buildGeographicDivision(); 894 o["x"] = buildGeographicDivision();
880 o["y"] = buildGeographicDivision(); 895 o["y"] = buildGeographicDivision();
881 return o; 896 return o;
882 } 897 }
883 898
884 checkUnnamed626(core.Map<core.String, api.GeographicDivision> o) { 899 checkUnnamed2477(core.Map<core.String, api.GeographicDivision> o) {
885 unittest.expect(o, unittest.hasLength(2)); 900 unittest.expect(o, unittest.hasLength(2));
886 checkGeographicDivision(o["x"]); 901 checkGeographicDivision(o["x"]);
887 checkGeographicDivision(o["y"]); 902 checkGeographicDivision(o["y"]);
888 } 903 }
889 904
890 buildUnnamed627() { 905 buildUnnamed2478() {
891 var o = new core.List<api.Office>(); 906 var o = new core.List<api.Office>();
892 o.add(buildOffice()); 907 o.add(buildOffice());
893 o.add(buildOffice()); 908 o.add(buildOffice());
894 return o; 909 return o;
895 } 910 }
896 911
897 checkUnnamed627(core.List<api.Office> o) { 912 checkUnnamed2478(core.List<api.Office> o) {
898 unittest.expect(o, unittest.hasLength(2)); 913 unittest.expect(o, unittest.hasLength(2));
899 checkOffice(o[0]); 914 checkOffice(o[0]);
900 checkOffice(o[1]); 915 checkOffice(o[1]);
901 } 916 }
902 917
903 buildUnnamed628() { 918 buildUnnamed2479() {
904 var o = new core.List<api.Official>(); 919 var o = new core.List<api.Official>();
905 o.add(buildOfficial()); 920 o.add(buildOfficial());
906 o.add(buildOfficial()); 921 o.add(buildOfficial());
907 return o; 922 return o;
908 } 923 }
909 924
910 checkUnnamed628(core.List<api.Official> o) { 925 checkUnnamed2479(core.List<api.Official> o) {
911 unittest.expect(o, unittest.hasLength(2)); 926 unittest.expect(o, unittest.hasLength(2));
912 checkOfficial(o[0]); 927 checkOfficial(o[0]);
913 checkOfficial(o[1]); 928 checkOfficial(o[1]);
914 } 929 }
915 930
916 core.int buildCounterRepresentativeInfoResponse = 0; 931 core.int buildCounterRepresentativeInfoResponse = 0;
917 buildRepresentativeInfoResponse() { 932 buildRepresentativeInfoResponse() {
918 var o = new api.RepresentativeInfoResponse(); 933 var o = new api.RepresentativeInfoResponse();
919 buildCounterRepresentativeInfoResponse++; 934 buildCounterRepresentativeInfoResponse++;
920 if (buildCounterRepresentativeInfoResponse < 3) { 935 if (buildCounterRepresentativeInfoResponse < 3) {
921 o.divisions = buildUnnamed626(); 936 o.divisions = buildUnnamed2477();
922 o.kind = "foo"; 937 o.kind = "foo";
923 o.normalizedInput = buildSimpleAddressType(); 938 o.normalizedInput = buildSimpleAddressType();
924 o.offices = buildUnnamed627(); 939 o.offices = buildUnnamed2478();
925 o.officials = buildUnnamed628(); 940 o.officials = buildUnnamed2479();
926 } 941 }
927 buildCounterRepresentativeInfoResponse--; 942 buildCounterRepresentativeInfoResponse--;
928 return o; 943 return o;
929 } 944 }
930 945
931 checkRepresentativeInfoResponse(api.RepresentativeInfoResponse o) { 946 checkRepresentativeInfoResponse(api.RepresentativeInfoResponse o) {
932 buildCounterRepresentativeInfoResponse++; 947 buildCounterRepresentativeInfoResponse++;
933 if (buildCounterRepresentativeInfoResponse < 3) { 948 if (buildCounterRepresentativeInfoResponse < 3) {
934 checkUnnamed626(o.divisions); 949 checkUnnamed2477(o.divisions);
935 unittest.expect(o.kind, unittest.equals('foo')); 950 unittest.expect(o.kind, unittest.equals('foo'));
936 checkSimpleAddressType(o.normalizedInput); 951 checkSimpleAddressType(o.normalizedInput);
937 checkUnnamed627(o.offices); 952 checkUnnamed2478(o.offices);
938 checkUnnamed628(o.officials); 953 checkUnnamed2479(o.officials);
939 } 954 }
940 buildCounterRepresentativeInfoResponse--; 955 buildCounterRepresentativeInfoResponse--;
941 } 956 }
942 957
943 core.int buildCounterSimpleAddressType = 0; 958 core.int buildCounterSimpleAddressType = 0;
944 buildSimpleAddressType() { 959 buildSimpleAddressType() {
945 var o = new api.SimpleAddressType(); 960 var o = new api.SimpleAddressType();
946 buildCounterSimpleAddressType++; 961 buildCounterSimpleAddressType++;
947 if (buildCounterSimpleAddressType < 3) { 962 if (buildCounterSimpleAddressType < 3) {
948 o.city = "foo"; 963 o.city = "foo";
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
985 1000
986 checkSource(api.Source o) { 1001 checkSource(api.Source o) {
987 buildCounterSource++; 1002 buildCounterSource++;
988 if (buildCounterSource < 3) { 1003 if (buildCounterSource < 3) {
989 unittest.expect(o.name, unittest.equals('foo')); 1004 unittest.expect(o.name, unittest.equals('foo'));
990 unittest.expect(o.official, unittest.isTrue); 1005 unittest.expect(o.official, unittest.isTrue);
991 } 1006 }
992 buildCounterSource--; 1007 buildCounterSource--;
993 } 1008 }
994 1009
995 buildUnnamed629() { 1010 buildUnnamed2480() {
996 var o = new core.List<api.Contest>(); 1011 var o = new core.List<api.Contest>();
997 o.add(buildContest()); 1012 o.add(buildContest());
998 o.add(buildContest()); 1013 o.add(buildContest());
999 return o; 1014 return o;
1000 } 1015 }
1001 1016
1002 checkUnnamed629(core.List<api.Contest> o) { 1017 checkUnnamed2480(core.List<api.Contest> o) {
1003 unittest.expect(o, unittest.hasLength(2)); 1018 unittest.expect(o, unittest.hasLength(2));
1004 checkContest(o[0]); 1019 checkContest(o[0]);
1005 checkContest(o[1]); 1020 checkContest(o[1]);
1006 } 1021 }
1007 1022
1008 buildUnnamed630() { 1023 buildUnnamed2481() {
1009 var o = new core.List<api.PollingLocation>(); 1024 var o = new core.List<api.PollingLocation>();
1010 o.add(buildPollingLocation()); 1025 o.add(buildPollingLocation());
1011 o.add(buildPollingLocation()); 1026 o.add(buildPollingLocation());
1012 return o; 1027 return o;
1013 } 1028 }
1014 1029
1015 checkUnnamed630(core.List<api.PollingLocation> o) { 1030 checkUnnamed2481(core.List<api.PollingLocation> o) {
1016 unittest.expect(o, unittest.hasLength(2)); 1031 unittest.expect(o, unittest.hasLength(2));
1017 checkPollingLocation(o[0]); 1032 checkPollingLocation(o[0]);
1018 checkPollingLocation(o[1]); 1033 checkPollingLocation(o[1]);
1019 } 1034 }
1020 1035
1021 buildUnnamed631() { 1036 buildUnnamed2482() {
1022 var o = new core.List<api.PollingLocation>(); 1037 var o = new core.List<api.PollingLocation>();
1023 o.add(buildPollingLocation()); 1038 o.add(buildPollingLocation());
1024 o.add(buildPollingLocation()); 1039 o.add(buildPollingLocation());
1025 return o; 1040 return o;
1026 } 1041 }
1027 1042
1028 checkUnnamed631(core.List<api.PollingLocation> o) { 1043 checkUnnamed2482(core.List<api.PollingLocation> o) {
1029 unittest.expect(o, unittest.hasLength(2)); 1044 unittest.expect(o, unittest.hasLength(2));
1030 checkPollingLocation(o[0]); 1045 checkPollingLocation(o[0]);
1031 checkPollingLocation(o[1]); 1046 checkPollingLocation(o[1]);
1032 } 1047 }
1033 1048
1034 buildUnnamed632() { 1049 buildUnnamed2483() {
1035 var o = new core.List<api.Election>(); 1050 var o = new core.List<api.Election>();
1036 o.add(buildElection()); 1051 o.add(buildElection());
1037 o.add(buildElection()); 1052 o.add(buildElection());
1038 return o; 1053 return o;
1039 } 1054 }
1040 1055
1041 checkUnnamed632(core.List<api.Election> o) { 1056 checkUnnamed2483(core.List<api.Election> o) {
1042 unittest.expect(o, unittest.hasLength(2)); 1057 unittest.expect(o, unittest.hasLength(2));
1043 checkElection(o[0]); 1058 checkElection(o[0]);
1044 checkElection(o[1]); 1059 checkElection(o[1]);
1045 } 1060 }
1046 1061
1047 buildUnnamed633() { 1062 buildUnnamed2484() {
1048 var o = new core.List<api.PollingLocation>(); 1063 var o = new core.List<api.PollingLocation>();
1049 o.add(buildPollingLocation()); 1064 o.add(buildPollingLocation());
1050 o.add(buildPollingLocation()); 1065 o.add(buildPollingLocation());
1051 return o; 1066 return o;
1052 } 1067 }
1053 1068
1054 checkUnnamed633(core.List<api.PollingLocation> o) { 1069 checkUnnamed2484(core.List<api.PollingLocation> o) {
1055 unittest.expect(o, unittest.hasLength(2)); 1070 unittest.expect(o, unittest.hasLength(2));
1056 checkPollingLocation(o[0]); 1071 checkPollingLocation(o[0]);
1057 checkPollingLocation(o[1]); 1072 checkPollingLocation(o[1]);
1058 } 1073 }
1059 1074
1060 buildUnnamed634() { 1075 buildUnnamed2485() {
1061 var o = new core.List<api.AdministrationRegion>(); 1076 var o = new core.List<api.AdministrationRegion>();
1062 o.add(buildAdministrationRegion()); 1077 o.add(buildAdministrationRegion());
1063 o.add(buildAdministrationRegion()); 1078 o.add(buildAdministrationRegion());
1064 return o; 1079 return o;
1065 } 1080 }
1066 1081
1067 checkUnnamed634(core.List<api.AdministrationRegion> o) { 1082 checkUnnamed2485(core.List<api.AdministrationRegion> o) {
1068 unittest.expect(o, unittest.hasLength(2)); 1083 unittest.expect(o, unittest.hasLength(2));
1069 checkAdministrationRegion(o[0]); 1084 checkAdministrationRegion(o[0]);
1070 checkAdministrationRegion(o[1]); 1085 checkAdministrationRegion(o[1]);
1071 } 1086 }
1072 1087
1073 core.int buildCounterVoterInfoResponse = 0; 1088 core.int buildCounterVoterInfoResponse = 0;
1074 buildVoterInfoResponse() { 1089 buildVoterInfoResponse() {
1075 var o = new api.VoterInfoResponse(); 1090 var o = new api.VoterInfoResponse();
1076 buildCounterVoterInfoResponse++; 1091 buildCounterVoterInfoResponse++;
1077 if (buildCounterVoterInfoResponse < 3) { 1092 if (buildCounterVoterInfoResponse < 3) {
1078 o.contests = buildUnnamed629(); 1093 o.contests = buildUnnamed2480();
1079 o.dropOffLocations = buildUnnamed630(); 1094 o.dropOffLocations = buildUnnamed2481();
1080 o.earlyVoteSites = buildUnnamed631(); 1095 o.earlyVoteSites = buildUnnamed2482();
1081 o.election = buildElection(); 1096 o.election = buildElection();
1082 o.kind = "foo"; 1097 o.kind = "foo";
1083 o.mailOnly = true; 1098 o.mailOnly = true;
1084 o.normalizedInput = buildSimpleAddressType(); 1099 o.normalizedInput = buildSimpleAddressType();
1085 o.otherElections = buildUnnamed632(); 1100 o.otherElections = buildUnnamed2483();
1086 o.pollingLocations = buildUnnamed633(); 1101 o.pollingLocations = buildUnnamed2484();
1087 o.precinctId = "foo"; 1102 o.precinctId = "foo";
1088 o.state = buildUnnamed634(); 1103 o.state = buildUnnamed2485();
1089 } 1104 }
1090 buildCounterVoterInfoResponse--; 1105 buildCounterVoterInfoResponse--;
1091 return o; 1106 return o;
1092 } 1107 }
1093 1108
1094 checkVoterInfoResponse(api.VoterInfoResponse o) { 1109 checkVoterInfoResponse(api.VoterInfoResponse o) {
1095 buildCounterVoterInfoResponse++; 1110 buildCounterVoterInfoResponse++;
1096 if (buildCounterVoterInfoResponse < 3) { 1111 if (buildCounterVoterInfoResponse < 3) {
1097 checkUnnamed629(o.contests); 1112 checkUnnamed2480(o.contests);
1098 checkUnnamed630(o.dropOffLocations); 1113 checkUnnamed2481(o.dropOffLocations);
1099 checkUnnamed631(o.earlyVoteSites); 1114 checkUnnamed2482(o.earlyVoteSites);
1100 checkElection(o.election); 1115 checkElection(o.election);
1101 unittest.expect(o.kind, unittest.equals('foo')); 1116 unittest.expect(o.kind, unittest.equals('foo'));
1102 unittest.expect(o.mailOnly, unittest.isTrue); 1117 unittest.expect(o.mailOnly, unittest.isTrue);
1103 checkSimpleAddressType(o.normalizedInput); 1118 checkSimpleAddressType(o.normalizedInput);
1104 checkUnnamed632(o.otherElections); 1119 checkUnnamed2483(o.otherElections);
1105 checkUnnamed633(o.pollingLocations); 1120 checkUnnamed2484(o.pollingLocations);
1106 unittest.expect(o.precinctId, unittest.equals('foo')); 1121 unittest.expect(o.precinctId, unittest.equals('foo'));
1107 checkUnnamed634(o.state); 1122 checkUnnamed2485(o.state);
1108 } 1123 }
1109 buildCounterVoterInfoResponse--; 1124 buildCounterVoterInfoResponse--;
1110 } 1125 }
1111 1126
1112 buildUnnamed635() { 1127 buildUnnamed2486() {
1113 var o = new core.List<core.String>(); 1128 var o = new core.List<core.String>();
1114 o.add("foo"); 1129 o.add("foo");
1115 o.add("foo"); 1130 o.add("foo");
1116 return o; 1131 return o;
1117 } 1132 }
1118 1133
1119 checkUnnamed635(core.List<core.String> o) { 1134 checkUnnamed2486(core.List<core.String> o) {
1120 unittest.expect(o, unittest.hasLength(2)); 1135 unittest.expect(o, unittest.hasLength(2));
1121 unittest.expect(o[0], unittest.equals('foo')); 1136 unittest.expect(o[0], unittest.equals('foo'));
1122 unittest.expect(o[1], unittest.equals('foo')); 1137 unittest.expect(o[1], unittest.equals('foo'));
1123 } 1138 }
1124 1139
1125 buildUnnamed636() { 1140 buildUnnamed2487() {
1126 var o = new core.List<core.String>(); 1141 var o = new core.List<core.String>();
1127 o.add("foo"); 1142 o.add("foo");
1128 o.add("foo"); 1143 o.add("foo");
1129 return o; 1144 return o;
1130 } 1145 }
1131 1146
1132 checkUnnamed636(core.List<core.String> o) { 1147 checkUnnamed2487(core.List<core.String> o) {
1133 unittest.expect(o, unittest.hasLength(2)); 1148 unittest.expect(o, unittest.hasLength(2));
1134 unittest.expect(o[0], unittest.equals('foo')); 1149 unittest.expect(o[0], unittest.equals('foo'));
1135 unittest.expect(o[1], unittest.equals('foo')); 1150 unittest.expect(o[1], unittest.equals('foo'));
1136 } 1151 }
1137 1152
1138 buildUnnamed637() { 1153 buildUnnamed2488() {
1139 var o = new core.List<core.String>(); 1154 var o = new core.List<core.String>();
1140 o.add("foo"); 1155 o.add("foo");
1141 o.add("foo"); 1156 o.add("foo");
1142 return o; 1157 return o;
1143 } 1158 }
1144 1159
1145 checkUnnamed637(core.List<core.String> o) { 1160 checkUnnamed2488(core.List<core.String> o) {
1146 unittest.expect(o, unittest.hasLength(2)); 1161 unittest.expect(o, unittest.hasLength(2));
1147 unittest.expect(o[0], unittest.equals('foo')); 1162 unittest.expect(o[0], unittest.equals('foo'));
1148 unittest.expect(o[1], unittest.equals('foo')); 1163 unittest.expect(o[1], unittest.equals('foo'));
1149 } 1164 }
1150 1165
1151 buildUnnamed638() { 1166 buildUnnamed2489() {
1152 var o = new core.List<core.String>(); 1167 var o = new core.List<core.String>();
1153 o.add("foo"); 1168 o.add("foo");
1154 o.add("foo"); 1169 o.add("foo");
1155 return o; 1170 return o;
1156 } 1171 }
1157 1172
1158 checkUnnamed638(core.List<core.String> o) { 1173 checkUnnamed2489(core.List<core.String> o) {
1159 unittest.expect(o, unittest.hasLength(2)); 1174 unittest.expect(o, unittest.hasLength(2));
1160 unittest.expect(o[0], unittest.equals('foo')); 1175 unittest.expect(o[0], unittest.equals('foo'));
1161 unittest.expect(o[1], unittest.equals('foo')); 1176 unittest.expect(o[1], unittest.equals('foo'));
1162 } 1177 }
1163 1178
1164 1179
1165 main() { 1180 main() {
1166 unittest.group("obj-schema-AdministrationRegion", () { 1181 unittest.group("obj-schema-AdministrationRegion", () {
1167 unittest.test("to-json--from-json", () { 1182 unittest.test("to-json--from-json", () {
1168 var o = buildAdministrationRegion(); 1183 var o = buildAdministrationRegion();
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
1494 }); 1509 });
1495 1510
1496 1511
1497 unittest.group("resource-RepresentativesResourceApi", () { 1512 unittest.group("resource-RepresentativesResourceApi", () {
1498 unittest.test("method--representativeInfoByAddress", () { 1513 unittest.test("method--representativeInfoByAddress", () {
1499 1514
1500 var mock = new HttpServerMock(); 1515 var mock = new HttpServerMock();
1501 api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representa tives; 1516 api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representa tives;
1502 var arg_address = "foo"; 1517 var arg_address = "foo";
1503 var arg_includeOffices = true; 1518 var arg_includeOffices = true;
1504 var arg_levels = buildUnnamed635(); 1519 var arg_levels = buildUnnamed2486();
1505 var arg_roles = buildUnnamed636(); 1520 var arg_roles = buildUnnamed2487();
1506 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1521 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1507 var path = (req.url).path; 1522 var path = (req.url).path;
1508 var pathOffset = 0; 1523 var pathOffset = 0;
1509 var index; 1524 var index;
1510 var subPart; 1525 var subPart;
1511 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1526 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1512 pathOffset += 1; 1527 pathOffset += 1;
1513 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/"));
1514 pathOffset += 13; 1529 pathOffset += 13;
1515 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
1546 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) {
1547 checkRepresentativeInfoResponse(response); 1562 checkRepresentativeInfoResponse(response);
1548 }))); 1563 })));
1549 }); 1564 });
1550 1565
1551 unittest.test("method--representativeInfoByDivision", () { 1566 unittest.test("method--representativeInfoByDivision", () {
1552 1567
1553 var mock = new HttpServerMock(); 1568 var mock = new HttpServerMock();
1554 api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representa tives; 1569 api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representa tives;
1555 var arg_ocdId = "foo"; 1570 var arg_ocdId = "foo";
1556 var arg_levels = buildUnnamed637(); 1571 var arg_levels = buildUnnamed2488();
1557 var arg_recursive = true; 1572 var arg_recursive = true;
1558 var arg_roles = buildUnnamed638(); 1573 var arg_roles = buildUnnamed2489();
1559 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1574 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1560 var path = (req.url).path; 1575 var path = (req.url).path;
1561 var pathOffset = 0; 1576 var pathOffset = 0;
1562 var index; 1577 var index;
1563 var subPart; 1578 var subPart;
1564 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1579 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1565 pathOffset += 1; 1580 pathOffset += 1;
1566 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/"));
1567 pathOffset += 13; 1582 pathOffset += 13;
1568 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
1601 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) {
1602 checkRepresentativeInfoData(response); 1617 checkRepresentativeInfoData(response);
1603 }))); 1618 })));
1604 }); 1619 });
1605 1620
1606 }); 1621 });
1607 1622
1608 1623
1609 } 1624 }
1610 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