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

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

Issue 1296863002: Api-roll 22: 2015-08-17 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 5 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 buildUnnamed451() { 54 buildUnnamed1796() {
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 checkUnnamed451(core.List<api.Source> o) { 61 checkUnnamed1796(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 = buildUnnamed451(); 76 o.sources = buildUnnamed1796();
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 checkUnnamed451(o.sources); 89 checkUnnamed1796(o.sources);
90 } 90 }
91 buildCounterAdministrationRegion--; 91 buildCounterAdministrationRegion--;
92 } 92 }
93 93
94 buildUnnamed452() { 94 buildUnnamed1797() {
95 var o = new core.List<api.ElectionOfficial>(); 95 var o = new core.List<api.ElectionOfficial>();
96 o.add(buildElectionOfficial()); 96 o.add(buildElectionOfficial());
97 o.add(buildElectionOfficial()); 97 o.add(buildElectionOfficial());
98 return o; 98 return o;
99 } 99 }
100 100
101 checkUnnamed452(core.List<api.ElectionOfficial> o) { 101 checkUnnamed1797(core.List<api.ElectionOfficial> o) {
102 unittest.expect(o, unittest.hasLength(2)); 102 unittest.expect(o, unittest.hasLength(2));
103 checkElectionOfficial(o[0]); 103 checkElectionOfficial(o[0]);
104 checkElectionOfficial(o[1]); 104 checkElectionOfficial(o[1]);
105 } 105 }
106 106
107 buildUnnamed453() { 107 buildUnnamed1798() {
108 var o = new core.List<core.String>(); 108 var o = new core.List<core.String>();
109 o.add("foo"); 109 o.add("foo");
110 o.add("foo"); 110 o.add("foo");
111 return o; 111 return o;
112 } 112 }
113 113
114 checkUnnamed453(core.List<core.String> o) { 114 checkUnnamed1798(core.List<core.String> o) {
115 unittest.expect(o, unittest.hasLength(2)); 115 unittest.expect(o, unittest.hasLength(2));
116 unittest.expect(o[0], unittest.equals('foo')); 116 unittest.expect(o[0], unittest.equals('foo'));
117 unittest.expect(o[1], unittest.equals('foo')); 117 unittest.expect(o[1], unittest.equals('foo'));
118 } 118 }
119 119
120 core.int buildCounterAdministrativeBody = 0; 120 core.int buildCounterAdministrativeBody = 0;
121 buildAdministrativeBody() { 121 buildAdministrativeBody() {
122 var o = new api.AdministrativeBody(); 122 var o = new api.AdministrativeBody();
123 buildCounterAdministrativeBody++; 123 buildCounterAdministrativeBody++;
124 if (buildCounterAdministrativeBody < 3) { 124 if (buildCounterAdministrativeBody < 3) {
125 o.absenteeVotingInfoUrl = "foo"; 125 o.absenteeVotingInfoUrl = "foo";
126 o.ballotInfoUrl = "foo"; 126 o.ballotInfoUrl = "foo";
127 o.correspondenceAddress = buildSimpleAddressType(); 127 o.correspondenceAddress = buildSimpleAddressType();
128 o.electionInfoUrl = "foo"; 128 o.electionInfoUrl = "foo";
129 o.electionOfficials = buildUnnamed452(); 129 o.electionOfficials = buildUnnamed1797();
130 o.electionRegistrationConfirmationUrl = "foo"; 130 o.electionRegistrationConfirmationUrl = "foo";
131 o.electionRegistrationUrl = "foo"; 131 o.electionRegistrationUrl = "foo";
132 o.electionRulesUrl = "foo"; 132 o.electionRulesUrl = "foo";
133 o.hoursOfOperation = "foo"; 133 o.hoursOfOperation = "foo";
134 o.name = "foo"; 134 o.name = "foo";
135 o.physicalAddress = buildSimpleAddressType(); 135 o.physicalAddress = buildSimpleAddressType();
136 o.voterServices = buildUnnamed453(); 136 o.voterServices = buildUnnamed1798();
137 o.votingLocationFinderUrl = "foo"; 137 o.votingLocationFinderUrl = "foo";
138 } 138 }
139 buildCounterAdministrativeBody--; 139 buildCounterAdministrativeBody--;
140 return o; 140 return o;
141 } 141 }
142 142
143 checkAdministrativeBody(api.AdministrativeBody o) { 143 checkAdministrativeBody(api.AdministrativeBody o) {
144 buildCounterAdministrativeBody++; 144 buildCounterAdministrativeBody++;
145 if (buildCounterAdministrativeBody < 3) { 145 if (buildCounterAdministrativeBody < 3) {
146 unittest.expect(o.absenteeVotingInfoUrl, unittest.equals('foo')); 146 unittest.expect(o.absenteeVotingInfoUrl, unittest.equals('foo'));
147 unittest.expect(o.ballotInfoUrl, unittest.equals('foo')); 147 unittest.expect(o.ballotInfoUrl, unittest.equals('foo'));
148 checkSimpleAddressType(o.correspondenceAddress); 148 checkSimpleAddressType(o.correspondenceAddress);
149 unittest.expect(o.electionInfoUrl, unittest.equals('foo')); 149 unittest.expect(o.electionInfoUrl, unittest.equals('foo'));
150 checkUnnamed452(o.electionOfficials); 150 checkUnnamed1797(o.electionOfficials);
151 unittest.expect(o.electionRegistrationConfirmationUrl, unittest.equals('foo' )); 151 unittest.expect(o.electionRegistrationConfirmationUrl, unittest.equals('foo' ));
152 unittest.expect(o.electionRegistrationUrl, unittest.equals('foo')); 152 unittest.expect(o.electionRegistrationUrl, unittest.equals('foo'));
153 unittest.expect(o.electionRulesUrl, unittest.equals('foo')); 153 unittest.expect(o.electionRulesUrl, unittest.equals('foo'));
154 unittest.expect(o.hoursOfOperation, unittest.equals('foo')); 154 unittest.expect(o.hoursOfOperation, unittest.equals('foo'));
155 unittest.expect(o.name, unittest.equals('foo')); 155 unittest.expect(o.name, unittest.equals('foo'));
156 checkSimpleAddressType(o.physicalAddress); 156 checkSimpleAddressType(o.physicalAddress);
157 checkUnnamed453(o.voterServices); 157 checkUnnamed1798(o.voterServices);
158 unittest.expect(o.votingLocationFinderUrl, unittest.equals('foo')); 158 unittest.expect(o.votingLocationFinderUrl, unittest.equals('foo'));
159 } 159 }
160 buildCounterAdministrativeBody--; 160 buildCounterAdministrativeBody--;
161 } 161 }
162 162
163 buildUnnamed454() { 163 buildUnnamed1799() {
164 var o = new core.List<api.Channel>(); 164 var o = new core.List<api.Channel>();
165 o.add(buildChannel()); 165 o.add(buildChannel());
166 o.add(buildChannel()); 166 o.add(buildChannel());
167 return o; 167 return o;
168 } 168 }
169 169
170 checkUnnamed454(core.List<api.Channel> o) { 170 checkUnnamed1799(core.List<api.Channel> o) {
171 unittest.expect(o, unittest.hasLength(2)); 171 unittest.expect(o, unittest.hasLength(2));
172 checkChannel(o[0]); 172 checkChannel(o[0]);
173 checkChannel(o[1]); 173 checkChannel(o[1]);
174 } 174 }
175 175
176 core.int buildCounterCandidate = 0; 176 core.int buildCounterCandidate = 0;
177 buildCandidate() { 177 buildCandidate() {
178 var o = new api.Candidate(); 178 var o = new api.Candidate();
179 buildCounterCandidate++; 179 buildCounterCandidate++;
180 if (buildCounterCandidate < 3) { 180 if (buildCounterCandidate < 3) {
181 o.candidateUrl = "foo"; 181 o.candidateUrl = "foo";
182 o.channels = buildUnnamed454(); 182 o.channels = buildUnnamed1799();
183 o.email = "foo"; 183 o.email = "foo";
184 o.name = "foo"; 184 o.name = "foo";
185 o.orderOnBallot = "foo"; 185 o.orderOnBallot = "foo";
186 o.party = "foo"; 186 o.party = "foo";
187 o.phone = "foo"; 187 o.phone = "foo";
188 o.photoUrl = "foo"; 188 o.photoUrl = "foo";
189 } 189 }
190 buildCounterCandidate--; 190 buildCounterCandidate--;
191 return o; 191 return o;
192 } 192 }
193 193
194 checkCandidate(api.Candidate o) { 194 checkCandidate(api.Candidate o) {
195 buildCounterCandidate++; 195 buildCounterCandidate++;
196 if (buildCounterCandidate < 3) { 196 if (buildCounterCandidate < 3) {
197 unittest.expect(o.candidateUrl, unittest.equals('foo')); 197 unittest.expect(o.candidateUrl, unittest.equals('foo'));
198 checkUnnamed454(o.channels); 198 checkUnnamed1799(o.channels);
199 unittest.expect(o.email, unittest.equals('foo')); 199 unittest.expect(o.email, unittest.equals('foo'));
200 unittest.expect(o.name, unittest.equals('foo')); 200 unittest.expect(o.name, unittest.equals('foo'));
201 unittest.expect(o.orderOnBallot, unittest.equals('foo')); 201 unittest.expect(o.orderOnBallot, unittest.equals('foo'));
202 unittest.expect(o.party, unittest.equals('foo')); 202 unittest.expect(o.party, unittest.equals('foo'));
203 unittest.expect(o.phone, unittest.equals('foo')); 203 unittest.expect(o.phone, unittest.equals('foo'));
204 unittest.expect(o.photoUrl, unittest.equals('foo')); 204 unittest.expect(o.photoUrl, unittest.equals('foo'));
205 } 205 }
206 buildCounterCandidate--; 206 buildCounterCandidate--;
207 } 207 }
208 208
(...skipping 11 matching lines...) Expand all
220 220
221 checkChannel(api.Channel o) { 221 checkChannel(api.Channel o) {
222 buildCounterChannel++; 222 buildCounterChannel++;
223 if (buildCounterChannel < 3) { 223 if (buildCounterChannel < 3) {
224 unittest.expect(o.id, unittest.equals('foo')); 224 unittest.expect(o.id, unittest.equals('foo'));
225 unittest.expect(o.type, unittest.equals('foo')); 225 unittest.expect(o.type, unittest.equals('foo'));
226 } 226 }
227 buildCounterChannel--; 227 buildCounterChannel--;
228 } 228 }
229 229
230 buildUnnamed455() { 230 buildUnnamed1800() {
231 var o = new core.List<api.Candidate>(); 231 var o = new core.List<api.Candidate>();
232 o.add(buildCandidate()); 232 o.add(buildCandidate());
233 o.add(buildCandidate()); 233 o.add(buildCandidate());
234 return o; 234 return o;
235 } 235 }
236 236
237 checkUnnamed455(core.List<api.Candidate> o) { 237 checkUnnamed1800(core.List<api.Candidate> o) {
238 unittest.expect(o, unittest.hasLength(2)); 238 unittest.expect(o, unittest.hasLength(2));
239 checkCandidate(o[0]); 239 checkCandidate(o[0]);
240 checkCandidate(o[1]); 240 checkCandidate(o[1]);
241 } 241 }
242 242
243 buildUnnamed456() { 243 buildUnnamed1801() {
244 var o = new core.List<core.String>(); 244 var o = new core.List<core.String>();
245 o.add("foo"); 245 o.add("foo");
246 o.add("foo"); 246 o.add("foo");
247 return o; 247 return o;
248 } 248 }
249 249
250 checkUnnamed456(core.List<core.String> o) { 250 checkUnnamed1801(core.List<core.String> o) {
251 unittest.expect(o, unittest.hasLength(2)); 251 unittest.expect(o, unittest.hasLength(2));
252 unittest.expect(o[0], unittest.equals('foo')); 252 unittest.expect(o[0], unittest.equals('foo'));
253 unittest.expect(o[1], unittest.equals('foo')); 253 unittest.expect(o[1], unittest.equals('foo'));
254 } 254 }
255 255
256 buildUnnamed457() { 256 buildUnnamed1802() {
257 var o = new core.List<core.String>(); 257 var o = new core.List<core.String>();
258 o.add("foo"); 258 o.add("foo");
259 o.add("foo"); 259 o.add("foo");
260 return o; 260 return o;
261 } 261 }
262 262
263 checkUnnamed457(core.List<core.String> o) { 263 checkUnnamed1802(core.List<core.String> o) {
264 unittest.expect(o, unittest.hasLength(2)); 264 unittest.expect(o, unittest.hasLength(2));
265 unittest.expect(o[0], unittest.equals('foo')); 265 unittest.expect(o[0], unittest.equals('foo'));
266 unittest.expect(o[1], unittest.equals('foo')); 266 unittest.expect(o[1], unittest.equals('foo'));
267 } 267 }
268 268
269 buildUnnamed458() { 269 buildUnnamed1803() {
270 var o = new core.List<core.String>(); 270 var o = new core.List<core.String>();
271 o.add("foo"); 271 o.add("foo");
272 o.add("foo"); 272 o.add("foo");
273 return o; 273 return o;
274 } 274 }
275 275
276 checkUnnamed458(core.List<core.String> o) { 276 checkUnnamed1803(core.List<core.String> o) {
277 unittest.expect(o, unittest.hasLength(2)); 277 unittest.expect(o, unittest.hasLength(2));
278 unittest.expect(o[0], unittest.equals('foo')); 278 unittest.expect(o[0], unittest.equals('foo'));
279 unittest.expect(o[1], unittest.equals('foo')); 279 unittest.expect(o[1], unittest.equals('foo'));
280 } 280 }
281 281
282 buildUnnamed459() { 282 buildUnnamed1804() {
283 var o = new core.List<api.Source>(); 283 var o = new core.List<api.Source>();
284 o.add(buildSource()); 284 o.add(buildSource());
285 o.add(buildSource()); 285 o.add(buildSource());
286 return o; 286 return o;
287 } 287 }
288 288
289 checkUnnamed459(core.List<api.Source> o) { 289 checkUnnamed1804(core.List<api.Source> o) {
290 unittest.expect(o, unittest.hasLength(2)); 290 unittest.expect(o, unittest.hasLength(2));
291 checkSource(o[0]); 291 checkSource(o[0]);
292 checkSource(o[1]); 292 checkSource(o[1]);
293 } 293 }
294 294
295 core.int buildCounterContest = 0; 295 core.int buildCounterContest = 0;
296 buildContest() { 296 buildContest() {
297 var o = new api.Contest(); 297 var o = new api.Contest();
298 buildCounterContest++; 298 buildCounterContest++;
299 if (buildCounterContest < 3) { 299 if (buildCounterContest < 3) {
300 o.ballotPlacement = "foo"; 300 o.ballotPlacement = "foo";
301 o.candidates = buildUnnamed455(); 301 o.candidates = buildUnnamed1800();
302 o.district = buildElectoralDistrict(); 302 o.district = buildElectoralDistrict();
303 o.electorateSpecifications = "foo"; 303 o.electorateSpecifications = "foo";
304 o.id = "foo"; 304 o.id = "foo";
305 o.level = buildUnnamed456(); 305 o.level = buildUnnamed1801();
306 o.numberElected = "foo"; 306 o.numberElected = "foo";
307 o.numberVotingFor = "foo"; 307 o.numberVotingFor = "foo";
308 o.office = "foo"; 308 o.office = "foo";
309 o.primaryParty = "foo"; 309 o.primaryParty = "foo";
310 o.referendumBallotResponses = buildUnnamed457(); 310 o.referendumBallotResponses = buildUnnamed1802();
311 o.referendumBrief = "foo"; 311 o.referendumBrief = "foo";
312 o.referendumConStatement = "foo"; 312 o.referendumConStatement = "foo";
313 o.referendumEffectOfAbstain = "foo"; 313 o.referendumEffectOfAbstain = "foo";
314 o.referendumPassageThreshold = "foo"; 314 o.referendumPassageThreshold = "foo";
315 o.referendumProStatement = "foo"; 315 o.referendumProStatement = "foo";
316 o.referendumSubtitle = "foo"; 316 o.referendumSubtitle = "foo";
317 o.referendumText = "foo"; 317 o.referendumText = "foo";
318 o.referendumTitle = "foo"; 318 o.referendumTitle = "foo";
319 o.referendumUrl = "foo"; 319 o.referendumUrl = "foo";
320 o.roles = buildUnnamed458(); 320 o.roles = buildUnnamed1803();
321 o.sources = buildUnnamed459(); 321 o.sources = buildUnnamed1804();
322 o.special = "foo"; 322 o.special = "foo";
323 o.type = "foo"; 323 o.type = "foo";
324 } 324 }
325 buildCounterContest--; 325 buildCounterContest--;
326 return o; 326 return o;
327 } 327 }
328 328
329 checkContest(api.Contest o) { 329 checkContest(api.Contest o) {
330 buildCounterContest++; 330 buildCounterContest++;
331 if (buildCounterContest < 3) { 331 if (buildCounterContest < 3) {
332 unittest.expect(o.ballotPlacement, unittest.equals('foo')); 332 unittest.expect(o.ballotPlacement, unittest.equals('foo'));
333 checkUnnamed455(o.candidates); 333 checkUnnamed1800(o.candidates);
334 checkElectoralDistrict(o.district); 334 checkElectoralDistrict(o.district);
335 unittest.expect(o.electorateSpecifications, unittest.equals('foo')); 335 unittest.expect(o.electorateSpecifications, unittest.equals('foo'));
336 unittest.expect(o.id, unittest.equals('foo')); 336 unittest.expect(o.id, unittest.equals('foo'));
337 checkUnnamed456(o.level); 337 checkUnnamed1801(o.level);
338 unittest.expect(o.numberElected, unittest.equals('foo')); 338 unittest.expect(o.numberElected, unittest.equals('foo'));
339 unittest.expect(o.numberVotingFor, unittest.equals('foo')); 339 unittest.expect(o.numberVotingFor, unittest.equals('foo'));
340 unittest.expect(o.office, unittest.equals('foo')); 340 unittest.expect(o.office, unittest.equals('foo'));
341 unittest.expect(o.primaryParty, unittest.equals('foo')); 341 unittest.expect(o.primaryParty, unittest.equals('foo'));
342 checkUnnamed457(o.referendumBallotResponses); 342 checkUnnamed1802(o.referendumBallotResponses);
343 unittest.expect(o.referendumBrief, unittest.equals('foo')); 343 unittest.expect(o.referendumBrief, unittest.equals('foo'));
344 unittest.expect(o.referendumConStatement, unittest.equals('foo')); 344 unittest.expect(o.referendumConStatement, unittest.equals('foo'));
345 unittest.expect(o.referendumEffectOfAbstain, unittest.equals('foo')); 345 unittest.expect(o.referendumEffectOfAbstain, unittest.equals('foo'));
346 unittest.expect(o.referendumPassageThreshold, unittest.equals('foo')); 346 unittest.expect(o.referendumPassageThreshold, unittest.equals('foo'));
347 unittest.expect(o.referendumProStatement, unittest.equals('foo')); 347 unittest.expect(o.referendumProStatement, unittest.equals('foo'));
348 unittest.expect(o.referendumSubtitle, unittest.equals('foo')); 348 unittest.expect(o.referendumSubtitle, unittest.equals('foo'));
349 unittest.expect(o.referendumText, unittest.equals('foo')); 349 unittest.expect(o.referendumText, unittest.equals('foo'));
350 unittest.expect(o.referendumTitle, unittest.equals('foo')); 350 unittest.expect(o.referendumTitle, unittest.equals('foo'));
351 unittest.expect(o.referendumUrl, unittest.equals('foo')); 351 unittest.expect(o.referendumUrl, unittest.equals('foo'));
352 checkUnnamed458(o.roles); 352 checkUnnamed1803(o.roles);
353 checkUnnamed459(o.sources); 353 checkUnnamed1804(o.sources);
354 unittest.expect(o.special, unittest.equals('foo')); 354 unittest.expect(o.special, unittest.equals('foo'));
355 unittest.expect(o.type, unittest.equals('foo')); 355 unittest.expect(o.type, unittest.equals('foo'));
356 } 356 }
357 buildCounterContest--; 357 buildCounterContest--;
358 } 358 }
359 359
360 buildUnnamed460() { 360 buildUnnamed1805() {
361 var o = new core.List<api.DivisionSearchResult>(); 361 var o = new core.List<api.DivisionSearchResult>();
362 o.add(buildDivisionSearchResult()); 362 o.add(buildDivisionSearchResult());
363 o.add(buildDivisionSearchResult()); 363 o.add(buildDivisionSearchResult());
364 return o; 364 return o;
365 } 365 }
366 366
367 checkUnnamed460(core.List<api.DivisionSearchResult> o) { 367 checkUnnamed1805(core.List<api.DivisionSearchResult> o) {
368 unittest.expect(o, unittest.hasLength(2)); 368 unittest.expect(o, unittest.hasLength(2));
369 checkDivisionSearchResult(o[0]); 369 checkDivisionSearchResult(o[0]);
370 checkDivisionSearchResult(o[1]); 370 checkDivisionSearchResult(o[1]);
371 } 371 }
372 372
373 core.int buildCounterDivisionSearchResponse = 0; 373 core.int buildCounterDivisionSearchResponse = 0;
374 buildDivisionSearchResponse() { 374 buildDivisionSearchResponse() {
375 var o = new api.DivisionSearchResponse(); 375 var o = new api.DivisionSearchResponse();
376 buildCounterDivisionSearchResponse++; 376 buildCounterDivisionSearchResponse++;
377 if (buildCounterDivisionSearchResponse < 3) { 377 if (buildCounterDivisionSearchResponse < 3) {
378 o.kind = "foo"; 378 o.kind = "foo";
379 o.results = buildUnnamed460(); 379 o.results = buildUnnamed1805();
380 } 380 }
381 buildCounterDivisionSearchResponse--; 381 buildCounterDivisionSearchResponse--;
382 return o; 382 return o;
383 } 383 }
384 384
385 checkDivisionSearchResponse(api.DivisionSearchResponse o) { 385 checkDivisionSearchResponse(api.DivisionSearchResponse o) {
386 buildCounterDivisionSearchResponse++; 386 buildCounterDivisionSearchResponse++;
387 if (buildCounterDivisionSearchResponse < 3) { 387 if (buildCounterDivisionSearchResponse < 3) {
388 unittest.expect(o.kind, unittest.equals('foo')); 388 unittest.expect(o.kind, unittest.equals('foo'));
389 checkUnnamed460(o.results); 389 checkUnnamed1805(o.results);
390 } 390 }
391 buildCounterDivisionSearchResponse--; 391 buildCounterDivisionSearchResponse--;
392 } 392 }
393 393
394 buildUnnamed461() { 394 buildUnnamed1806() {
395 var o = new core.List<core.String>(); 395 var o = new core.List<core.String>();
396 o.add("foo"); 396 o.add("foo");
397 o.add("foo"); 397 o.add("foo");
398 return o; 398 return o;
399 } 399 }
400 400
401 checkUnnamed461(core.List<core.String> o) { 401 checkUnnamed1806(core.List<core.String> o) {
402 unittest.expect(o, unittest.hasLength(2)); 402 unittest.expect(o, unittest.hasLength(2));
403 unittest.expect(o[0], unittest.equals('foo')); 403 unittest.expect(o[0], unittest.equals('foo'));
404 unittest.expect(o[1], unittest.equals('foo')); 404 unittest.expect(o[1], unittest.equals('foo'));
405 } 405 }
406 406
407 core.int buildCounterDivisionSearchResult = 0; 407 core.int buildCounterDivisionSearchResult = 0;
408 buildDivisionSearchResult() { 408 buildDivisionSearchResult() {
409 var o = new api.DivisionSearchResult(); 409 var o = new api.DivisionSearchResult();
410 buildCounterDivisionSearchResult++; 410 buildCounterDivisionSearchResult++;
411 if (buildCounterDivisionSearchResult < 3) { 411 if (buildCounterDivisionSearchResult < 3) {
412 o.aliases = buildUnnamed461(); 412 o.aliases = buildUnnamed1806();
413 o.name = "foo"; 413 o.name = "foo";
414 o.ocdId = "foo"; 414 o.ocdId = "foo";
415 } 415 }
416 buildCounterDivisionSearchResult--; 416 buildCounterDivisionSearchResult--;
417 return o; 417 return o;
418 } 418 }
419 419
420 checkDivisionSearchResult(api.DivisionSearchResult o) { 420 checkDivisionSearchResult(api.DivisionSearchResult o) {
421 buildCounterDivisionSearchResult++; 421 buildCounterDivisionSearchResult++;
422 if (buildCounterDivisionSearchResult < 3) { 422 if (buildCounterDivisionSearchResult < 3) {
423 checkUnnamed461(o.aliases); 423 checkUnnamed1806(o.aliases);
424 unittest.expect(o.name, unittest.equals('foo')); 424 unittest.expect(o.name, unittest.equals('foo'));
425 unittest.expect(o.ocdId, unittest.equals('foo')); 425 unittest.expect(o.ocdId, unittest.equals('foo'));
426 } 426 }
427 buildCounterDivisionSearchResult--; 427 buildCounterDivisionSearchResult--;
428 } 428 }
429 429
430 core.int buildCounterElection = 0; 430 core.int buildCounterElection = 0;
431 buildElection() { 431 buildElection() {
432 var o = new api.Election(); 432 var o = new api.Election();
433 buildCounterElection++; 433 buildCounterElection++;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 if (buildCounterElectionOfficial < 3) { 470 if (buildCounterElectionOfficial < 3) {
471 unittest.expect(o.emailAddress, unittest.equals('foo')); 471 unittest.expect(o.emailAddress, unittest.equals('foo'));
472 unittest.expect(o.faxNumber, unittest.equals('foo')); 472 unittest.expect(o.faxNumber, unittest.equals('foo'));
473 unittest.expect(o.name, unittest.equals('foo')); 473 unittest.expect(o.name, unittest.equals('foo'));
474 unittest.expect(o.officePhoneNumber, unittest.equals('foo')); 474 unittest.expect(o.officePhoneNumber, unittest.equals('foo'));
475 unittest.expect(o.title, unittest.equals('foo')); 475 unittest.expect(o.title, unittest.equals('foo'));
476 } 476 }
477 buildCounterElectionOfficial--; 477 buildCounterElectionOfficial--;
478 } 478 }
479 479
480 buildUnnamed462() { 480 buildUnnamed1807() {
481 var o = new core.List<api.Election>(); 481 var o = new core.List<api.Election>();
482 o.add(buildElection()); 482 o.add(buildElection());
483 o.add(buildElection()); 483 o.add(buildElection());
484 return o; 484 return o;
485 } 485 }
486 486
487 checkUnnamed462(core.List<api.Election> o) { 487 checkUnnamed1807(core.List<api.Election> o) {
488 unittest.expect(o, unittest.hasLength(2)); 488 unittest.expect(o, unittest.hasLength(2));
489 checkElection(o[0]); 489 checkElection(o[0]);
490 checkElection(o[1]); 490 checkElection(o[1]);
491 } 491 }
492 492
493 core.int buildCounterElectionsQueryResponse = 0; 493 core.int buildCounterElectionsQueryResponse = 0;
494 buildElectionsQueryResponse() { 494 buildElectionsQueryResponse() {
495 var o = new api.ElectionsQueryResponse(); 495 var o = new api.ElectionsQueryResponse();
496 buildCounterElectionsQueryResponse++; 496 buildCounterElectionsQueryResponse++;
497 if (buildCounterElectionsQueryResponse < 3) { 497 if (buildCounterElectionsQueryResponse < 3) {
498 o.elections = buildUnnamed462(); 498 o.elections = buildUnnamed1807();
499 o.kind = "foo"; 499 o.kind = "foo";
500 } 500 }
501 buildCounterElectionsQueryResponse--; 501 buildCounterElectionsQueryResponse--;
502 return o; 502 return o;
503 } 503 }
504 504
505 checkElectionsQueryResponse(api.ElectionsQueryResponse o) { 505 checkElectionsQueryResponse(api.ElectionsQueryResponse o) {
506 buildCounterElectionsQueryResponse++; 506 buildCounterElectionsQueryResponse++;
507 if (buildCounterElectionsQueryResponse < 3) { 507 if (buildCounterElectionsQueryResponse < 3) {
508 checkUnnamed462(o.elections); 508 checkUnnamed1807(o.elections);
509 unittest.expect(o.kind, unittest.equals('foo')); 509 unittest.expect(o.kind, unittest.equals('foo'));
510 } 510 }
511 buildCounterElectionsQueryResponse--; 511 buildCounterElectionsQueryResponse--;
512 } 512 }
513 513
514 core.int buildCounterElectoralDistrict = 0; 514 core.int buildCounterElectoralDistrict = 0;
515 buildElectoralDistrict() { 515 buildElectoralDistrict() {
516 var o = new api.ElectoralDistrict(); 516 var o = new api.ElectoralDistrict();
517 buildCounterElectoralDistrict++; 517 buildCounterElectoralDistrict++;
518 if (buildCounterElectoralDistrict < 3) { 518 if (buildCounterElectoralDistrict < 3) {
519 o.id = "foo"; 519 o.id = "foo";
520 o.name = "foo"; 520 o.name = "foo";
521 o.scope = "foo"; 521 o.scope = "foo";
522 } 522 }
523 buildCounterElectoralDistrict--; 523 buildCounterElectoralDistrict--;
524 return o; 524 return o;
525 } 525 }
526 526
527 checkElectoralDistrict(api.ElectoralDistrict o) { 527 checkElectoralDistrict(api.ElectoralDistrict o) {
528 buildCounterElectoralDistrict++; 528 buildCounterElectoralDistrict++;
529 if (buildCounterElectoralDistrict < 3) { 529 if (buildCounterElectoralDistrict < 3) {
530 unittest.expect(o.id, unittest.equals('foo')); 530 unittest.expect(o.id, unittest.equals('foo'));
531 unittest.expect(o.name, unittest.equals('foo')); 531 unittest.expect(o.name, unittest.equals('foo'));
532 unittest.expect(o.scope, unittest.equals('foo')); 532 unittest.expect(o.scope, unittest.equals('foo'));
533 } 533 }
534 buildCounterElectoralDistrict--; 534 buildCounterElectoralDistrict--;
535 } 535 }
536 536
537 buildUnnamed463() { 537 buildUnnamed1808() {
538 var o = new core.List<core.String>(); 538 var o = new core.List<core.String>();
539 o.add("foo"); 539 o.add("foo");
540 o.add("foo"); 540 o.add("foo");
541 return o; 541 return o;
542 } 542 }
543 543
544 checkUnnamed463(core.List<core.String> o) { 544 checkUnnamed1808(core.List<core.String> o) {
545 unittest.expect(o, unittest.hasLength(2)); 545 unittest.expect(o, unittest.hasLength(2));
546 unittest.expect(o[0], unittest.equals('foo')); 546 unittest.expect(o[0], unittest.equals('foo'));
547 unittest.expect(o[1], unittest.equals('foo')); 547 unittest.expect(o[1], unittest.equals('foo'));
548 } 548 }
549 549
550 buildUnnamed464() { 550 buildUnnamed1809() {
551 var o = new core.List<core.int>(); 551 var o = new core.List<core.int>();
552 o.add(42); 552 o.add(42);
553 o.add(42); 553 o.add(42);
554 return o; 554 return o;
555 } 555 }
556 556
557 checkUnnamed464(core.List<core.int> o) { 557 checkUnnamed1809(core.List<core.int> o) {
558 unittest.expect(o, unittest.hasLength(2)); 558 unittest.expect(o, unittest.hasLength(2));
559 unittest.expect(o[0], unittest.equals(42)); 559 unittest.expect(o[0], unittest.equals(42));
560 unittest.expect(o[1], unittest.equals(42)); 560 unittest.expect(o[1], unittest.equals(42));
561 } 561 }
562 562
563 core.int buildCounterGeographicDivision = 0; 563 core.int buildCounterGeographicDivision = 0;
564 buildGeographicDivision() { 564 buildGeographicDivision() {
565 var o = new api.GeographicDivision(); 565 var o = new api.GeographicDivision();
566 buildCounterGeographicDivision++; 566 buildCounterGeographicDivision++;
567 if (buildCounterGeographicDivision < 3) { 567 if (buildCounterGeographicDivision < 3) {
568 o.alsoKnownAs = buildUnnamed463(); 568 o.alsoKnownAs = buildUnnamed1808();
569 o.name = "foo"; 569 o.name = "foo";
570 o.officeIndices = buildUnnamed464(); 570 o.officeIndices = buildUnnamed1809();
571 } 571 }
572 buildCounterGeographicDivision--; 572 buildCounterGeographicDivision--;
573 return o; 573 return o;
574 } 574 }
575 575
576 checkGeographicDivision(api.GeographicDivision o) { 576 checkGeographicDivision(api.GeographicDivision o) {
577 buildCounterGeographicDivision++; 577 buildCounterGeographicDivision++;
578 if (buildCounterGeographicDivision < 3) { 578 if (buildCounterGeographicDivision < 3) {
579 checkUnnamed463(o.alsoKnownAs); 579 checkUnnamed1808(o.alsoKnownAs);
580 unittest.expect(o.name, unittest.equals('foo')); 580 unittest.expect(o.name, unittest.equals('foo'));
581 checkUnnamed464(o.officeIndices); 581 checkUnnamed1809(o.officeIndices);
582 } 582 }
583 buildCounterGeographicDivision--; 583 buildCounterGeographicDivision--;
584 } 584 }
585 585
586 buildUnnamed465() { 586 buildUnnamed1810() {
587 var o = new core.List<core.String>(); 587 var o = new core.List<core.String>();
588 o.add("foo"); 588 o.add("foo");
589 o.add("foo"); 589 o.add("foo");
590 return o; 590 return o;
591 } 591 }
592 592
593 checkUnnamed465(core.List<core.String> o) { 593 checkUnnamed1810(core.List<core.String> o) {
594 unittest.expect(o, unittest.hasLength(2)); 594 unittest.expect(o, unittest.hasLength(2));
595 unittest.expect(o[0], unittest.equals('foo')); 595 unittest.expect(o[0], unittest.equals('foo'));
596 unittest.expect(o[1], unittest.equals('foo')); 596 unittest.expect(o[1], unittest.equals('foo'));
597 } 597 }
598 598
599 buildUnnamed466() { 599 buildUnnamed1811() {
600 var o = new core.List<core.int>(); 600 var o = new core.List<core.int>();
601 o.add(42); 601 o.add(42);
602 o.add(42); 602 o.add(42);
603 return o; 603 return o;
604 } 604 }
605 605
606 checkUnnamed466(core.List<core.int> o) { 606 checkUnnamed1811(core.List<core.int> o) {
607 unittest.expect(o, unittest.hasLength(2)); 607 unittest.expect(o, unittest.hasLength(2));
608 unittest.expect(o[0], unittest.equals(42)); 608 unittest.expect(o[0], unittest.equals(42));
609 unittest.expect(o[1], unittest.equals(42)); 609 unittest.expect(o[1], unittest.equals(42));
610 } 610 }
611 611
612 buildUnnamed467() { 612 buildUnnamed1812() {
613 var o = new core.List<core.String>(); 613 var o = new core.List<core.String>();
614 o.add("foo"); 614 o.add("foo");
615 o.add("foo"); 615 o.add("foo");
616 return o; 616 return o;
617 } 617 }
618 618
619 checkUnnamed467(core.List<core.String> o) { 619 checkUnnamed1812(core.List<core.String> o) {
620 unittest.expect(o, unittest.hasLength(2)); 620 unittest.expect(o, unittest.hasLength(2));
621 unittest.expect(o[0], unittest.equals('foo')); 621 unittest.expect(o[0], unittest.equals('foo'));
622 unittest.expect(o[1], unittest.equals('foo')); 622 unittest.expect(o[1], unittest.equals('foo'));
623 } 623 }
624 624
625 buildUnnamed468() { 625 buildUnnamed1813() {
626 var o = new core.List<api.Source>(); 626 var o = new core.List<api.Source>();
627 o.add(buildSource()); 627 o.add(buildSource());
628 o.add(buildSource()); 628 o.add(buildSource());
629 return o; 629 return o;
630 } 630 }
631 631
632 checkUnnamed468(core.List<api.Source> o) { 632 checkUnnamed1813(core.List<api.Source> o) {
633 unittest.expect(o, unittest.hasLength(2)); 633 unittest.expect(o, unittest.hasLength(2));
634 checkSource(o[0]); 634 checkSource(o[0]);
635 checkSource(o[1]); 635 checkSource(o[1]);
636 } 636 }
637 637
638 core.int buildCounterOffice = 0; 638 core.int buildCounterOffice = 0;
639 buildOffice() { 639 buildOffice() {
640 var o = new api.Office(); 640 var o = new api.Office();
641 buildCounterOffice++; 641 buildCounterOffice++;
642 if (buildCounterOffice < 3) { 642 if (buildCounterOffice < 3) {
643 o.divisionId = "foo"; 643 o.divisionId = "foo";
644 o.levels = buildUnnamed465(); 644 o.levels = buildUnnamed1810();
645 o.name = "foo"; 645 o.name = "foo";
646 o.officialIndices = buildUnnamed466(); 646 o.officialIndices = buildUnnamed1811();
647 o.roles = buildUnnamed467(); 647 o.roles = buildUnnamed1812();
648 o.sources = buildUnnamed468(); 648 o.sources = buildUnnamed1813();
649 } 649 }
650 buildCounterOffice--; 650 buildCounterOffice--;
651 return o; 651 return o;
652 } 652 }
653 653
654 checkOffice(api.Office o) { 654 checkOffice(api.Office o) {
655 buildCounterOffice++; 655 buildCounterOffice++;
656 if (buildCounterOffice < 3) { 656 if (buildCounterOffice < 3) {
657 unittest.expect(o.divisionId, unittest.equals('foo')); 657 unittest.expect(o.divisionId, unittest.equals('foo'));
658 checkUnnamed465(o.levels); 658 checkUnnamed1810(o.levels);
659 unittest.expect(o.name, unittest.equals('foo')); 659 unittest.expect(o.name, unittest.equals('foo'));
660 checkUnnamed466(o.officialIndices); 660 checkUnnamed1811(o.officialIndices);
661 checkUnnamed467(o.roles); 661 checkUnnamed1812(o.roles);
662 checkUnnamed468(o.sources); 662 checkUnnamed1813(o.sources);
663 } 663 }
664 buildCounterOffice--; 664 buildCounterOffice--;
665 } 665 }
666 666
667 buildUnnamed469() { 667 buildUnnamed1814() {
668 var o = new core.List<api.SimpleAddressType>(); 668 var o = new core.List<api.SimpleAddressType>();
669 o.add(buildSimpleAddressType()); 669 o.add(buildSimpleAddressType());
670 o.add(buildSimpleAddressType()); 670 o.add(buildSimpleAddressType());
671 return o; 671 return o;
672 } 672 }
673 673
674 checkUnnamed469(core.List<api.SimpleAddressType> o) { 674 checkUnnamed1814(core.List<api.SimpleAddressType> o) {
675 unittest.expect(o, unittest.hasLength(2)); 675 unittest.expect(o, unittest.hasLength(2));
676 checkSimpleAddressType(o[0]); 676 checkSimpleAddressType(o[0]);
677 checkSimpleAddressType(o[1]); 677 checkSimpleAddressType(o[1]);
678 } 678 }
679 679
680 buildUnnamed470() { 680 buildUnnamed1815() {
681 var o = new core.List<api.Channel>(); 681 var o = new core.List<api.Channel>();
682 o.add(buildChannel()); 682 o.add(buildChannel());
683 o.add(buildChannel()); 683 o.add(buildChannel());
684 return o; 684 return o;
685 } 685 }
686 686
687 checkUnnamed470(core.List<api.Channel> o) { 687 checkUnnamed1815(core.List<api.Channel> o) {
688 unittest.expect(o, unittest.hasLength(2)); 688 unittest.expect(o, unittest.hasLength(2));
689 checkChannel(o[0]); 689 checkChannel(o[0]);
690 checkChannel(o[1]); 690 checkChannel(o[1]);
691 } 691 }
692 692
693 buildUnnamed471() { 693 buildUnnamed1816() {
694 var o = new core.List<core.String>(); 694 var o = new core.List<core.String>();
695 o.add("foo"); 695 o.add("foo");
696 o.add("foo"); 696 o.add("foo");
697 return o; 697 return o;
698 } 698 }
699 699
700 checkUnnamed471(core.List<core.String> o) { 700 checkUnnamed1816(core.List<core.String> o) {
701 unittest.expect(o, unittest.hasLength(2)); 701 unittest.expect(o, unittest.hasLength(2));
702 unittest.expect(o[0], unittest.equals('foo')); 702 unittest.expect(o[0], unittest.equals('foo'));
703 unittest.expect(o[1], unittest.equals('foo')); 703 unittest.expect(o[1], unittest.equals('foo'));
704 } 704 }
705 705
706 buildUnnamed472() { 706 buildUnnamed1817() {
707 var o = new core.List<core.String>(); 707 var o = new core.List<core.String>();
708 o.add("foo"); 708 o.add("foo");
709 o.add("foo"); 709 o.add("foo");
710 return o; 710 return o;
711 } 711 }
712 712
713 checkUnnamed472(core.List<core.String> o) { 713 checkUnnamed1817(core.List<core.String> o) {
714 unittest.expect(o, unittest.hasLength(2)); 714 unittest.expect(o, unittest.hasLength(2));
715 unittest.expect(o[0], unittest.equals('foo')); 715 unittest.expect(o[0], unittest.equals('foo'));
716 unittest.expect(o[1], unittest.equals('foo')); 716 unittest.expect(o[1], unittest.equals('foo'));
717 } 717 }
718 718
719 buildUnnamed473() { 719 buildUnnamed1818() {
720 var o = new core.List<core.String>(); 720 var o = new core.List<core.String>();
721 o.add("foo"); 721 o.add("foo");
722 o.add("foo"); 722 o.add("foo");
723 return o; 723 return o;
724 } 724 }
725 725
726 checkUnnamed473(core.List<core.String> o) { 726 checkUnnamed1818(core.List<core.String> o) {
727 unittest.expect(o, unittest.hasLength(2)); 727 unittest.expect(o, unittest.hasLength(2));
728 unittest.expect(o[0], unittest.equals('foo')); 728 unittest.expect(o[0], unittest.equals('foo'));
729 unittest.expect(o[1], unittest.equals('foo')); 729 unittest.expect(o[1], unittest.equals('foo'));
730 } 730 }
731 731
732 core.int buildCounterOfficial = 0; 732 core.int buildCounterOfficial = 0;
733 buildOfficial() { 733 buildOfficial() {
734 var o = new api.Official(); 734 var o = new api.Official();
735 buildCounterOfficial++; 735 buildCounterOfficial++;
736 if (buildCounterOfficial < 3) { 736 if (buildCounterOfficial < 3) {
737 o.address = buildUnnamed469(); 737 o.address = buildUnnamed1814();
738 o.channels = buildUnnamed470(); 738 o.channels = buildUnnamed1815();
739 o.emails = buildUnnamed471(); 739 o.emails = buildUnnamed1816();
740 o.name = "foo"; 740 o.name = "foo";
741 o.party = "foo"; 741 o.party = "foo";
742 o.phones = buildUnnamed472(); 742 o.phones = buildUnnamed1817();
743 o.photoUrl = "foo"; 743 o.photoUrl = "foo";
744 o.urls = buildUnnamed473(); 744 o.urls = buildUnnamed1818();
745 } 745 }
746 buildCounterOfficial--; 746 buildCounterOfficial--;
747 return o; 747 return o;
748 } 748 }
749 749
750 checkOfficial(api.Official o) { 750 checkOfficial(api.Official o) {
751 buildCounterOfficial++; 751 buildCounterOfficial++;
752 if (buildCounterOfficial < 3) { 752 if (buildCounterOfficial < 3) {
753 checkUnnamed469(o.address); 753 checkUnnamed1814(o.address);
754 checkUnnamed470(o.channels); 754 checkUnnamed1815(o.channels);
755 checkUnnamed471(o.emails); 755 checkUnnamed1816(o.emails);
756 unittest.expect(o.name, unittest.equals('foo')); 756 unittest.expect(o.name, unittest.equals('foo'));
757 unittest.expect(o.party, unittest.equals('foo')); 757 unittest.expect(o.party, unittest.equals('foo'));
758 checkUnnamed472(o.phones); 758 checkUnnamed1817(o.phones);
759 unittest.expect(o.photoUrl, unittest.equals('foo')); 759 unittest.expect(o.photoUrl, unittest.equals('foo'));
760 checkUnnamed473(o.urls); 760 checkUnnamed1818(o.urls);
761 } 761 }
762 buildCounterOfficial--; 762 buildCounterOfficial--;
763 } 763 }
764 764
765 buildUnnamed474() { 765 buildUnnamed1819() {
766 var o = new core.List<api.Source>(); 766 var o = new core.List<api.Source>();
767 o.add(buildSource()); 767 o.add(buildSource());
768 o.add(buildSource()); 768 o.add(buildSource());
769 return o; 769 return o;
770 } 770 }
771 771
772 checkUnnamed474(core.List<api.Source> o) { 772 checkUnnamed1819(core.List<api.Source> o) {
773 unittest.expect(o, unittest.hasLength(2)); 773 unittest.expect(o, unittest.hasLength(2));
774 checkSource(o[0]); 774 checkSource(o[0]);
775 checkSource(o[1]); 775 checkSource(o[1]);
776 } 776 }
777 777
778 core.int buildCounterPollingLocation = 0; 778 core.int buildCounterPollingLocation = 0;
779 buildPollingLocation() { 779 buildPollingLocation() {
780 var o = new api.PollingLocation(); 780 var o = new api.PollingLocation();
781 buildCounterPollingLocation++; 781 buildCounterPollingLocation++;
782 if (buildCounterPollingLocation < 3) { 782 if (buildCounterPollingLocation < 3) {
783 o.address = buildSimpleAddressType(); 783 o.address = buildSimpleAddressType();
784 o.endDate = "foo"; 784 o.endDate = "foo";
785 o.id = "foo"; 785 o.id = "foo";
786 o.name = "foo"; 786 o.name = "foo";
787 o.notes = "foo"; 787 o.notes = "foo";
788 o.pollingHours = "foo"; 788 o.pollingHours = "foo";
789 o.sources = buildUnnamed474(); 789 o.sources = buildUnnamed1819();
790 o.startDate = "foo"; 790 o.startDate = "foo";
791 o.voterServices = "foo"; 791 o.voterServices = "foo";
792 } 792 }
793 buildCounterPollingLocation--; 793 buildCounterPollingLocation--;
794 return o; 794 return o;
795 } 795 }
796 796
797 checkPollingLocation(api.PollingLocation o) { 797 checkPollingLocation(api.PollingLocation o) {
798 buildCounterPollingLocation++; 798 buildCounterPollingLocation++;
799 if (buildCounterPollingLocation < 3) { 799 if (buildCounterPollingLocation < 3) {
800 checkSimpleAddressType(o.address); 800 checkSimpleAddressType(o.address);
801 unittest.expect(o.endDate, unittest.equals('foo')); 801 unittest.expect(o.endDate, unittest.equals('foo'));
802 unittest.expect(o.id, unittest.equals('foo')); 802 unittest.expect(o.id, unittest.equals('foo'));
803 unittest.expect(o.name, unittest.equals('foo')); 803 unittest.expect(o.name, unittest.equals('foo'));
804 unittest.expect(o.notes, unittest.equals('foo')); 804 unittest.expect(o.notes, unittest.equals('foo'));
805 unittest.expect(o.pollingHours, unittest.equals('foo')); 805 unittest.expect(o.pollingHours, unittest.equals('foo'));
806 checkUnnamed474(o.sources); 806 checkUnnamed1819(o.sources);
807 unittest.expect(o.startDate, unittest.equals('foo')); 807 unittest.expect(o.startDate, unittest.equals('foo'));
808 unittest.expect(o.voterServices, unittest.equals('foo')); 808 unittest.expect(o.voterServices, unittest.equals('foo'));
809 } 809 }
810 buildCounterPollingLocation--; 810 buildCounterPollingLocation--;
811 } 811 }
812 812
813 buildUnnamed475() { 813 buildUnnamed1820() {
814 var o = new core.Map<core.String, api.GeographicDivision>(); 814 var o = new core.Map<core.String, api.GeographicDivision>();
815 o["x"] = buildGeographicDivision(); 815 o["x"] = buildGeographicDivision();
816 o["y"] = buildGeographicDivision(); 816 o["y"] = buildGeographicDivision();
817 return o; 817 return o;
818 } 818 }
819 819
820 checkUnnamed475(core.Map<core.String, api.GeographicDivision> o) { 820 checkUnnamed1820(core.Map<core.String, api.GeographicDivision> o) {
821 unittest.expect(o, unittest.hasLength(2)); 821 unittest.expect(o, unittest.hasLength(2));
822 checkGeographicDivision(o["x"]); 822 checkGeographicDivision(o["x"]);
823 checkGeographicDivision(o["y"]); 823 checkGeographicDivision(o["y"]);
824 } 824 }
825 825
826 buildUnnamed476() { 826 buildUnnamed1821() {
827 var o = new core.List<api.Office>(); 827 var o = new core.List<api.Office>();
828 o.add(buildOffice()); 828 o.add(buildOffice());
829 o.add(buildOffice()); 829 o.add(buildOffice());
830 return o; 830 return o;
831 } 831 }
832 832
833 checkUnnamed476(core.List<api.Office> o) { 833 checkUnnamed1821(core.List<api.Office> o) {
834 unittest.expect(o, unittest.hasLength(2)); 834 unittest.expect(o, unittest.hasLength(2));
835 checkOffice(o[0]); 835 checkOffice(o[0]);
836 checkOffice(o[1]); 836 checkOffice(o[1]);
837 } 837 }
838 838
839 buildUnnamed477() { 839 buildUnnamed1822() {
840 var o = new core.List<api.Official>(); 840 var o = new core.List<api.Official>();
841 o.add(buildOfficial()); 841 o.add(buildOfficial());
842 o.add(buildOfficial()); 842 o.add(buildOfficial());
843 return o; 843 return o;
844 } 844 }
845 845
846 checkUnnamed477(core.List<api.Official> o) { 846 checkUnnamed1822(core.List<api.Official> o) {
847 unittest.expect(o, unittest.hasLength(2)); 847 unittest.expect(o, unittest.hasLength(2));
848 checkOfficial(o[0]); 848 checkOfficial(o[0]);
849 checkOfficial(o[1]); 849 checkOfficial(o[1]);
850 } 850 }
851 851
852 core.int buildCounterRepresentativeInfoData = 0; 852 core.int buildCounterRepresentativeInfoData = 0;
853 buildRepresentativeInfoData() { 853 buildRepresentativeInfoData() {
854 var o = new api.RepresentativeInfoData(); 854 var o = new api.RepresentativeInfoData();
855 buildCounterRepresentativeInfoData++; 855 buildCounterRepresentativeInfoData++;
856 if (buildCounterRepresentativeInfoData < 3) { 856 if (buildCounterRepresentativeInfoData < 3) {
857 o.divisions = buildUnnamed475(); 857 o.divisions = buildUnnamed1820();
858 o.offices = buildUnnamed476(); 858 o.offices = buildUnnamed1821();
859 o.officials = buildUnnamed477(); 859 o.officials = buildUnnamed1822();
860 } 860 }
861 buildCounterRepresentativeInfoData--; 861 buildCounterRepresentativeInfoData--;
862 return o; 862 return o;
863 } 863 }
864 864
865 checkRepresentativeInfoData(api.RepresentativeInfoData o) { 865 checkRepresentativeInfoData(api.RepresentativeInfoData o) {
866 buildCounterRepresentativeInfoData++; 866 buildCounterRepresentativeInfoData++;
867 if (buildCounterRepresentativeInfoData < 3) { 867 if (buildCounterRepresentativeInfoData < 3) {
868 checkUnnamed475(o.divisions); 868 checkUnnamed1820(o.divisions);
869 checkUnnamed476(o.offices); 869 checkUnnamed1821(o.offices);
870 checkUnnamed477(o.officials); 870 checkUnnamed1822(o.officials);
871 } 871 }
872 buildCounterRepresentativeInfoData--; 872 buildCounterRepresentativeInfoData--;
873 } 873 }
874 874
875 buildUnnamed478() { 875 buildUnnamed1823() {
876 var o = new core.Map<core.String, api.GeographicDivision>(); 876 var o = new core.Map<core.String, api.GeographicDivision>();
877 o["x"] = buildGeographicDivision(); 877 o["x"] = buildGeographicDivision();
878 o["y"] = buildGeographicDivision(); 878 o["y"] = buildGeographicDivision();
879 return o; 879 return o;
880 } 880 }
881 881
882 checkUnnamed478(core.Map<core.String, api.GeographicDivision> o) { 882 checkUnnamed1823(core.Map<core.String, api.GeographicDivision> o) {
883 unittest.expect(o, unittest.hasLength(2)); 883 unittest.expect(o, unittest.hasLength(2));
884 checkGeographicDivision(o["x"]); 884 checkGeographicDivision(o["x"]);
885 checkGeographicDivision(o["y"]); 885 checkGeographicDivision(o["y"]);
886 } 886 }
887 887
888 buildUnnamed479() { 888 buildUnnamed1824() {
889 var o = new core.List<api.Office>(); 889 var o = new core.List<api.Office>();
890 o.add(buildOffice()); 890 o.add(buildOffice());
891 o.add(buildOffice()); 891 o.add(buildOffice());
892 return o; 892 return o;
893 } 893 }
894 894
895 checkUnnamed479(core.List<api.Office> o) { 895 checkUnnamed1824(core.List<api.Office> o) {
896 unittest.expect(o, unittest.hasLength(2)); 896 unittest.expect(o, unittest.hasLength(2));
897 checkOffice(o[0]); 897 checkOffice(o[0]);
898 checkOffice(o[1]); 898 checkOffice(o[1]);
899 } 899 }
900 900
901 buildUnnamed480() { 901 buildUnnamed1825() {
902 var o = new core.List<api.Official>(); 902 var o = new core.List<api.Official>();
903 o.add(buildOfficial()); 903 o.add(buildOfficial());
904 o.add(buildOfficial()); 904 o.add(buildOfficial());
905 return o; 905 return o;
906 } 906 }
907 907
908 checkUnnamed480(core.List<api.Official> o) { 908 checkUnnamed1825(core.List<api.Official> o) {
909 unittest.expect(o, unittest.hasLength(2)); 909 unittest.expect(o, unittest.hasLength(2));
910 checkOfficial(o[0]); 910 checkOfficial(o[0]);
911 checkOfficial(o[1]); 911 checkOfficial(o[1]);
912 } 912 }
913 913
914 core.int buildCounterRepresentativeInfoResponse = 0; 914 core.int buildCounterRepresentativeInfoResponse = 0;
915 buildRepresentativeInfoResponse() { 915 buildRepresentativeInfoResponse() {
916 var o = new api.RepresentativeInfoResponse(); 916 var o = new api.RepresentativeInfoResponse();
917 buildCounterRepresentativeInfoResponse++; 917 buildCounterRepresentativeInfoResponse++;
918 if (buildCounterRepresentativeInfoResponse < 3) { 918 if (buildCounterRepresentativeInfoResponse < 3) {
919 o.divisions = buildUnnamed478(); 919 o.divisions = buildUnnamed1823();
920 o.kind = "foo"; 920 o.kind = "foo";
921 o.normalizedInput = buildSimpleAddressType(); 921 o.normalizedInput = buildSimpleAddressType();
922 o.offices = buildUnnamed479(); 922 o.offices = buildUnnamed1824();
923 o.officials = buildUnnamed480(); 923 o.officials = buildUnnamed1825();
924 } 924 }
925 buildCounterRepresentativeInfoResponse--; 925 buildCounterRepresentativeInfoResponse--;
926 return o; 926 return o;
927 } 927 }
928 928
929 checkRepresentativeInfoResponse(api.RepresentativeInfoResponse o) { 929 checkRepresentativeInfoResponse(api.RepresentativeInfoResponse o) {
930 buildCounterRepresentativeInfoResponse++; 930 buildCounterRepresentativeInfoResponse++;
931 if (buildCounterRepresentativeInfoResponse < 3) { 931 if (buildCounterRepresentativeInfoResponse < 3) {
932 checkUnnamed478(o.divisions); 932 checkUnnamed1823(o.divisions);
933 unittest.expect(o.kind, unittest.equals('foo')); 933 unittest.expect(o.kind, unittest.equals('foo'));
934 checkSimpleAddressType(o.normalizedInput); 934 checkSimpleAddressType(o.normalizedInput);
935 checkUnnamed479(o.offices); 935 checkUnnamed1824(o.offices);
936 checkUnnamed480(o.officials); 936 checkUnnamed1825(o.officials);
937 } 937 }
938 buildCounterRepresentativeInfoResponse--; 938 buildCounterRepresentativeInfoResponse--;
939 } 939 }
940 940
941 core.int buildCounterSimpleAddressType = 0; 941 core.int buildCounterSimpleAddressType = 0;
942 buildSimpleAddressType() { 942 buildSimpleAddressType() {
943 var o = new api.SimpleAddressType(); 943 var o = new api.SimpleAddressType();
944 buildCounterSimpleAddressType++; 944 buildCounterSimpleAddressType++;
945 if (buildCounterSimpleAddressType < 3) { 945 if (buildCounterSimpleAddressType < 3) {
946 o.city = "foo"; 946 o.city = "foo";
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
983 983
984 checkSource(api.Source o) { 984 checkSource(api.Source o) {
985 buildCounterSource++; 985 buildCounterSource++;
986 if (buildCounterSource < 3) { 986 if (buildCounterSource < 3) {
987 unittest.expect(o.name, unittest.equals('foo')); 987 unittest.expect(o.name, unittest.equals('foo'));
988 unittest.expect(o.official, unittest.isTrue); 988 unittest.expect(o.official, unittest.isTrue);
989 } 989 }
990 buildCounterSource--; 990 buildCounterSource--;
991 } 991 }
992 992
993 buildUnnamed481() { 993 buildUnnamed1826() {
994 var o = new core.List<api.Contest>(); 994 var o = new core.List<api.Contest>();
995 o.add(buildContest()); 995 o.add(buildContest());
996 o.add(buildContest()); 996 o.add(buildContest());
997 return o; 997 return o;
998 } 998 }
999 999
1000 checkUnnamed481(core.List<api.Contest> o) { 1000 checkUnnamed1826(core.List<api.Contest> o) {
1001 unittest.expect(o, unittest.hasLength(2)); 1001 unittest.expect(o, unittest.hasLength(2));
1002 checkContest(o[0]); 1002 checkContest(o[0]);
1003 checkContest(o[1]); 1003 checkContest(o[1]);
1004 } 1004 }
1005 1005
1006 buildUnnamed482() { 1006 buildUnnamed1827() {
1007 var o = new core.List<api.PollingLocation>(); 1007 var o = new core.List<api.PollingLocation>();
1008 o.add(buildPollingLocation()); 1008 o.add(buildPollingLocation());
1009 o.add(buildPollingLocation()); 1009 o.add(buildPollingLocation());
1010 return o; 1010 return o;
1011 } 1011 }
1012 1012
1013 checkUnnamed482(core.List<api.PollingLocation> o) { 1013 checkUnnamed1827(core.List<api.PollingLocation> o) {
1014 unittest.expect(o, unittest.hasLength(2)); 1014 unittest.expect(o, unittest.hasLength(2));
1015 checkPollingLocation(o[0]); 1015 checkPollingLocation(o[0]);
1016 checkPollingLocation(o[1]); 1016 checkPollingLocation(o[1]);
1017 } 1017 }
1018 1018
1019 buildUnnamed483() { 1019 buildUnnamed1828() {
1020 var o = new core.List<api.PollingLocation>(); 1020 var o = new core.List<api.PollingLocation>();
1021 o.add(buildPollingLocation()); 1021 o.add(buildPollingLocation());
1022 o.add(buildPollingLocation()); 1022 o.add(buildPollingLocation());
1023 return o; 1023 return o;
1024 } 1024 }
1025 1025
1026 checkUnnamed483(core.List<api.PollingLocation> o) { 1026 checkUnnamed1828(core.List<api.PollingLocation> o) {
1027 unittest.expect(o, unittest.hasLength(2)); 1027 unittest.expect(o, unittest.hasLength(2));
1028 checkPollingLocation(o[0]); 1028 checkPollingLocation(o[0]);
1029 checkPollingLocation(o[1]); 1029 checkPollingLocation(o[1]);
1030 } 1030 }
1031 1031
1032 buildUnnamed484() { 1032 buildUnnamed1829() {
1033 var o = new core.List<api.Election>(); 1033 var o = new core.List<api.Election>();
1034 o.add(buildElection()); 1034 o.add(buildElection());
1035 o.add(buildElection()); 1035 o.add(buildElection());
1036 return o; 1036 return o;
1037 } 1037 }
1038 1038
1039 checkUnnamed484(core.List<api.Election> o) { 1039 checkUnnamed1829(core.List<api.Election> o) {
1040 unittest.expect(o, unittest.hasLength(2)); 1040 unittest.expect(o, unittest.hasLength(2));
1041 checkElection(o[0]); 1041 checkElection(o[0]);
1042 checkElection(o[1]); 1042 checkElection(o[1]);
1043 } 1043 }
1044 1044
1045 buildUnnamed485() { 1045 buildUnnamed1830() {
1046 var o = new core.List<api.PollingLocation>(); 1046 var o = new core.List<api.PollingLocation>();
1047 o.add(buildPollingLocation()); 1047 o.add(buildPollingLocation());
1048 o.add(buildPollingLocation()); 1048 o.add(buildPollingLocation());
1049 return o; 1049 return o;
1050 } 1050 }
1051 1051
1052 checkUnnamed485(core.List<api.PollingLocation> o) { 1052 checkUnnamed1830(core.List<api.PollingLocation> o) {
1053 unittest.expect(o, unittest.hasLength(2)); 1053 unittest.expect(o, unittest.hasLength(2));
1054 checkPollingLocation(o[0]); 1054 checkPollingLocation(o[0]);
1055 checkPollingLocation(o[1]); 1055 checkPollingLocation(o[1]);
1056 } 1056 }
1057 1057
1058 buildUnnamed486() { 1058 buildUnnamed1831() {
1059 var o = new core.List<api.AdministrationRegion>(); 1059 var o = new core.List<api.AdministrationRegion>();
1060 o.add(buildAdministrationRegion()); 1060 o.add(buildAdministrationRegion());
1061 o.add(buildAdministrationRegion()); 1061 o.add(buildAdministrationRegion());
1062 return o; 1062 return o;
1063 } 1063 }
1064 1064
1065 checkUnnamed486(core.List<api.AdministrationRegion> o) { 1065 checkUnnamed1831(core.List<api.AdministrationRegion> o) {
1066 unittest.expect(o, unittest.hasLength(2)); 1066 unittest.expect(o, unittest.hasLength(2));
1067 checkAdministrationRegion(o[0]); 1067 checkAdministrationRegion(o[0]);
1068 checkAdministrationRegion(o[1]); 1068 checkAdministrationRegion(o[1]);
1069 } 1069 }
1070 1070
1071 core.int buildCounterVoterInfoResponse = 0; 1071 core.int buildCounterVoterInfoResponse = 0;
1072 buildVoterInfoResponse() { 1072 buildVoterInfoResponse() {
1073 var o = new api.VoterInfoResponse(); 1073 var o = new api.VoterInfoResponse();
1074 buildCounterVoterInfoResponse++; 1074 buildCounterVoterInfoResponse++;
1075 if (buildCounterVoterInfoResponse < 3) { 1075 if (buildCounterVoterInfoResponse < 3) {
1076 o.contests = buildUnnamed481(); 1076 o.contests = buildUnnamed1826();
1077 o.dropOffLocations = buildUnnamed482(); 1077 o.dropOffLocations = buildUnnamed1827();
1078 o.earlyVoteSites = buildUnnamed483(); 1078 o.earlyVoteSites = buildUnnamed1828();
1079 o.election = buildElection(); 1079 o.election = buildElection();
1080 o.kind = "foo"; 1080 o.kind = "foo";
1081 o.mailOnly = true; 1081 o.mailOnly = true;
1082 o.normalizedInput = buildSimpleAddressType(); 1082 o.normalizedInput = buildSimpleAddressType();
1083 o.otherElections = buildUnnamed484(); 1083 o.otherElections = buildUnnamed1829();
1084 o.pollingLocations = buildUnnamed485(); 1084 o.pollingLocations = buildUnnamed1830();
1085 o.precinctId = "foo"; 1085 o.precinctId = "foo";
1086 o.state = buildUnnamed486(); 1086 o.state = buildUnnamed1831();
1087 } 1087 }
1088 buildCounterVoterInfoResponse--; 1088 buildCounterVoterInfoResponse--;
1089 return o; 1089 return o;
1090 } 1090 }
1091 1091
1092 checkVoterInfoResponse(api.VoterInfoResponse o) { 1092 checkVoterInfoResponse(api.VoterInfoResponse o) {
1093 buildCounterVoterInfoResponse++; 1093 buildCounterVoterInfoResponse++;
1094 if (buildCounterVoterInfoResponse < 3) { 1094 if (buildCounterVoterInfoResponse < 3) {
1095 checkUnnamed481(o.contests); 1095 checkUnnamed1826(o.contests);
1096 checkUnnamed482(o.dropOffLocations); 1096 checkUnnamed1827(o.dropOffLocations);
1097 checkUnnamed483(o.earlyVoteSites); 1097 checkUnnamed1828(o.earlyVoteSites);
1098 checkElection(o.election); 1098 checkElection(o.election);
1099 unittest.expect(o.kind, unittest.equals('foo')); 1099 unittest.expect(o.kind, unittest.equals('foo'));
1100 unittest.expect(o.mailOnly, unittest.isTrue); 1100 unittest.expect(o.mailOnly, unittest.isTrue);
1101 checkSimpleAddressType(o.normalizedInput); 1101 checkSimpleAddressType(o.normalizedInput);
1102 checkUnnamed484(o.otherElections); 1102 checkUnnamed1829(o.otherElections);
1103 checkUnnamed485(o.pollingLocations); 1103 checkUnnamed1830(o.pollingLocations);
1104 unittest.expect(o.precinctId, unittest.equals('foo')); 1104 unittest.expect(o.precinctId, unittest.equals('foo'));
1105 checkUnnamed486(o.state); 1105 checkUnnamed1831(o.state);
1106 } 1106 }
1107 buildCounterVoterInfoResponse--; 1107 buildCounterVoterInfoResponse--;
1108 } 1108 }
1109 1109
1110 buildUnnamed487() { 1110 buildUnnamed1832() {
1111 var o = new core.List<core.String>(); 1111 var o = new core.List<core.String>();
1112 o.add("foo"); 1112 o.add("foo");
1113 o.add("foo"); 1113 o.add("foo");
1114 return o; 1114 return o;
1115 } 1115 }
1116 1116
1117 checkUnnamed487(core.List<core.String> o) { 1117 checkUnnamed1832(core.List<core.String> o) {
1118 unittest.expect(o, unittest.hasLength(2)); 1118 unittest.expect(o, unittest.hasLength(2));
1119 unittest.expect(o[0], unittest.equals('foo')); 1119 unittest.expect(o[0], unittest.equals('foo'));
1120 unittest.expect(o[1], unittest.equals('foo')); 1120 unittest.expect(o[1], unittest.equals('foo'));
1121 } 1121 }
1122 1122
1123 buildUnnamed488() { 1123 buildUnnamed1833() {
1124 var o = new core.List<core.String>(); 1124 var o = new core.List<core.String>();
1125 o.add("foo"); 1125 o.add("foo");
1126 o.add("foo"); 1126 o.add("foo");
1127 return o; 1127 return o;
1128 } 1128 }
1129 1129
1130 checkUnnamed488(core.List<core.String> o) { 1130 checkUnnamed1833(core.List<core.String> o) {
1131 unittest.expect(o, unittest.hasLength(2)); 1131 unittest.expect(o, unittest.hasLength(2));
1132 unittest.expect(o[0], unittest.equals('foo')); 1132 unittest.expect(o[0], unittest.equals('foo'));
1133 unittest.expect(o[1], unittest.equals('foo')); 1133 unittest.expect(o[1], unittest.equals('foo'));
1134 } 1134 }
1135 1135
1136 buildUnnamed489() { 1136 buildUnnamed1834() {
1137 var o = new core.List<core.String>(); 1137 var o = new core.List<core.String>();
1138 o.add("foo"); 1138 o.add("foo");
1139 o.add("foo"); 1139 o.add("foo");
1140 return o; 1140 return o;
1141 } 1141 }
1142 1142
1143 checkUnnamed489(core.List<core.String> o) { 1143 checkUnnamed1834(core.List<core.String> o) {
1144 unittest.expect(o, unittest.hasLength(2)); 1144 unittest.expect(o, unittest.hasLength(2));
1145 unittest.expect(o[0], unittest.equals('foo')); 1145 unittest.expect(o[0], unittest.equals('foo'));
1146 unittest.expect(o[1], unittest.equals('foo')); 1146 unittest.expect(o[1], unittest.equals('foo'));
1147 } 1147 }
1148 1148
1149 buildUnnamed490() { 1149 buildUnnamed1835() {
1150 var o = new core.List<core.String>(); 1150 var o = new core.List<core.String>();
1151 o.add("foo"); 1151 o.add("foo");
1152 o.add("foo"); 1152 o.add("foo");
1153 return o; 1153 return o;
1154 } 1154 }
1155 1155
1156 checkUnnamed490(core.List<core.String> o) { 1156 checkUnnamed1835(core.List<core.String> o) {
1157 unittest.expect(o, unittest.hasLength(2)); 1157 unittest.expect(o, unittest.hasLength(2));
1158 unittest.expect(o[0], unittest.equals('foo')); 1158 unittest.expect(o[0], unittest.equals('foo'));
1159 unittest.expect(o[1], unittest.equals('foo')); 1159 unittest.expect(o[1], unittest.equals('foo'));
1160 } 1160 }
1161 1161
1162 1162
1163 main() { 1163 main() {
1164 unittest.group("obj-schema-AdministrationRegion", () { 1164 unittest.group("obj-schema-AdministrationRegion", () {
1165 unittest.test("to-json--from-json", () { 1165 unittest.test("to-json--from-json", () {
1166 var o = buildAdministrationRegion(); 1166 var o = buildAdministrationRegion();
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
1492 }); 1492 });
1493 1493
1494 1494
1495 unittest.group("resource-RepresentativesResourceApi", () { 1495 unittest.group("resource-RepresentativesResourceApi", () {
1496 unittest.test("method--representativeInfoByAddress", () { 1496 unittest.test("method--representativeInfoByAddress", () {
1497 1497
1498 var mock = new HttpServerMock(); 1498 var mock = new HttpServerMock();
1499 api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representa tives; 1499 api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representa tives;
1500 var arg_address = "foo"; 1500 var arg_address = "foo";
1501 var arg_includeOffices = true; 1501 var arg_includeOffices = true;
1502 var arg_levels = buildUnnamed487(); 1502 var arg_levels = buildUnnamed1832();
1503 var arg_roles = buildUnnamed488(); 1503 var arg_roles = buildUnnamed1833();
1504 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1504 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1505 var path = (req.url).path; 1505 var path = (req.url).path;
1506 var pathOffset = 0; 1506 var pathOffset = 0;
1507 var index; 1507 var index;
1508 var subPart; 1508 var subPart;
1509 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1509 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1510 pathOffset += 1; 1510 pathOffset += 1;
1511 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("civicinfo/v2/")); 1511 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("civicinfo/v2/"));
1512 pathOffset += 13; 1512 pathOffset += 13;
1513 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq uals("representatives")); 1513 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq uals("representatives"));
(...skipping 30 matching lines...) Expand all
1544 res.representativeInfoByAddress(address: arg_address, includeOffices: arg_ includeOffices, levels: arg_levels, roles: arg_roles).then(unittest.expectAsync( ((api.RepresentativeInfoResponse response) { 1544 res.representativeInfoByAddress(address: arg_address, includeOffices: arg_ includeOffices, levels: arg_levels, roles: arg_roles).then(unittest.expectAsync( ((api.RepresentativeInfoResponse response) {
1545 checkRepresentativeInfoResponse(response); 1545 checkRepresentativeInfoResponse(response);
1546 }))); 1546 })));
1547 }); 1547 });
1548 1548
1549 unittest.test("method--representativeInfoByDivision", () { 1549 unittest.test("method--representativeInfoByDivision", () {
1550 1550
1551 var mock = new HttpServerMock(); 1551 var mock = new HttpServerMock();
1552 api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representa tives; 1552 api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representa tives;
1553 var arg_ocdId = "foo"; 1553 var arg_ocdId = "foo";
1554 var arg_levels = buildUnnamed489(); 1554 var arg_levels = buildUnnamed1834();
1555 var arg_recursive = true; 1555 var arg_recursive = true;
1556 var arg_roles = buildUnnamed490(); 1556 var arg_roles = buildUnnamed1835();
1557 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1557 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1558 var path = (req.url).path; 1558 var path = (req.url).path;
1559 var pathOffset = 0; 1559 var pathOffset = 0;
1560 var index; 1560 var index;
1561 var subPart; 1561 var subPart;
1562 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1562 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1563 pathOffset += 1; 1563 pathOffset += 1;
1564 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("civicinfo/v2/")); 1564 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("civicinfo/v2/"));
1565 pathOffset += 13; 1565 pathOffset += 13;
1566 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("representatives/")); 1566 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("representatives/"));
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
1599 res.representativeInfoByDivision(arg_ocdId, levels: arg_levels, recursive: arg_recursive, roles: arg_roles).then(unittest.expectAsync(((api.Representative InfoData response) { 1599 res.representativeInfoByDivision(arg_ocdId, levels: arg_levels, recursive: arg_recursive, roles: arg_roles).then(unittest.expectAsync(((api.Representative InfoData response) {
1600 checkRepresentativeInfoData(response); 1600 checkRepresentativeInfoData(response);
1601 }))); 1601 })));
1602 }); 1602 });
1603 1603
1604 }); 1604 });
1605 1605
1606 1606
1607 } 1607 }
1608 1608
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