OLD | NEW |
1 library googleapis.qpxExpress.v1.test; | 1 library googleapis.qpxExpress.v1.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:test/test.dart' as unittest; | 10 import 'package:test/test.dart' as unittest; |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 buildCounterAirportData++; | 92 buildCounterAirportData++; |
93 if (buildCounterAirportData < 3) { | 93 if (buildCounterAirportData < 3) { |
94 unittest.expect(o.city, unittest.equals('foo')); | 94 unittest.expect(o.city, unittest.equals('foo')); |
95 unittest.expect(o.code, unittest.equals('foo')); | 95 unittest.expect(o.code, unittest.equals('foo')); |
96 unittest.expect(o.kind, unittest.equals('foo')); | 96 unittest.expect(o.kind, unittest.equals('foo')); |
97 unittest.expect(o.name, unittest.equals('foo')); | 97 unittest.expect(o.name, unittest.equals('foo')); |
98 } | 98 } |
99 buildCounterAirportData--; | 99 buildCounterAirportData--; |
100 } | 100 } |
101 | 101 |
102 buildUnnamed20() { | 102 buildUnnamed35() { |
103 var o = new core.List<core.String>(); | 103 var o = new core.List<core.String>(); |
104 o.add("foo"); | 104 o.add("foo"); |
105 o.add("foo"); | 105 o.add("foo"); |
106 return o; | 106 return o; |
107 } | 107 } |
108 | 108 |
109 checkUnnamed20(core.List<core.String> o) { | 109 checkUnnamed35(core.List<core.String> o) { |
110 unittest.expect(o, unittest.hasLength(2)); | 110 unittest.expect(o, unittest.hasLength(2)); |
111 unittest.expect(o[0], unittest.equals('foo')); | 111 unittest.expect(o[0], unittest.equals('foo')); |
112 unittest.expect(o[1], unittest.equals('foo')); | 112 unittest.expect(o[1], unittest.equals('foo')); |
113 } | 113 } |
114 | 114 |
115 core.int buildCounterBagDescriptor = 0; | 115 core.int buildCounterBagDescriptor = 0; |
116 buildBagDescriptor() { | 116 buildBagDescriptor() { |
117 var o = new api.BagDescriptor(); | 117 var o = new api.BagDescriptor(); |
118 buildCounterBagDescriptor++; | 118 buildCounterBagDescriptor++; |
119 if (buildCounterBagDescriptor < 3) { | 119 if (buildCounterBagDescriptor < 3) { |
120 o.commercialName = "foo"; | 120 o.commercialName = "foo"; |
121 o.count = 42; | 121 o.count = 42; |
122 o.description = buildUnnamed20(); | 122 o.description = buildUnnamed35(); |
123 o.kind = "foo"; | 123 o.kind = "foo"; |
124 o.subcode = "foo"; | 124 o.subcode = "foo"; |
125 } | 125 } |
126 buildCounterBagDescriptor--; | 126 buildCounterBagDescriptor--; |
127 return o; | 127 return o; |
128 } | 128 } |
129 | 129 |
130 checkBagDescriptor(api.BagDescriptor o) { | 130 checkBagDescriptor(api.BagDescriptor o) { |
131 buildCounterBagDescriptor++; | 131 buildCounterBagDescriptor++; |
132 if (buildCounterBagDescriptor < 3) { | 132 if (buildCounterBagDescriptor < 3) { |
133 unittest.expect(o.commercialName, unittest.equals('foo')); | 133 unittest.expect(o.commercialName, unittest.equals('foo')); |
134 unittest.expect(o.count, unittest.equals(42)); | 134 unittest.expect(o.count, unittest.equals(42)); |
135 checkUnnamed20(o.description); | 135 checkUnnamed35(o.description); |
136 unittest.expect(o.kind, unittest.equals('foo')); | 136 unittest.expect(o.kind, unittest.equals('foo')); |
137 unittest.expect(o.subcode, unittest.equals('foo')); | 137 unittest.expect(o.subcode, unittest.equals('foo')); |
138 } | 138 } |
139 buildCounterBagDescriptor--; | 139 buildCounterBagDescriptor--; |
140 } | 140 } |
141 | 141 |
142 core.int buildCounterCarrierData = 0; | 142 core.int buildCounterCarrierData = 0; |
143 buildCarrierData() { | 143 buildCarrierData() { |
144 var o = new api.CarrierData(); | 144 var o = new api.CarrierData(); |
145 buildCounterCarrierData++; | 145 buildCounterCarrierData++; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 buildCounterCityData++; | 180 buildCounterCityData++; |
181 if (buildCounterCityData < 3) { | 181 if (buildCounterCityData < 3) { |
182 unittest.expect(o.code, unittest.equals('foo')); | 182 unittest.expect(o.code, unittest.equals('foo')); |
183 unittest.expect(o.country, unittest.equals('foo')); | 183 unittest.expect(o.country, unittest.equals('foo')); |
184 unittest.expect(o.kind, unittest.equals('foo')); | 184 unittest.expect(o.kind, unittest.equals('foo')); |
185 unittest.expect(o.name, unittest.equals('foo')); | 185 unittest.expect(o.name, unittest.equals('foo')); |
186 } | 186 } |
187 buildCounterCityData--; | 187 buildCounterCityData--; |
188 } | 188 } |
189 | 189 |
190 buildUnnamed21() { | 190 buildUnnamed36() { |
191 var o = new core.List<api.AircraftData>(); | 191 var o = new core.List<api.AircraftData>(); |
192 o.add(buildAircraftData()); | 192 o.add(buildAircraftData()); |
193 o.add(buildAircraftData()); | 193 o.add(buildAircraftData()); |
194 return o; | 194 return o; |
195 } | 195 } |
196 | 196 |
197 checkUnnamed21(core.List<api.AircraftData> o) { | 197 checkUnnamed36(core.List<api.AircraftData> o) { |
198 unittest.expect(o, unittest.hasLength(2)); | 198 unittest.expect(o, unittest.hasLength(2)); |
199 checkAircraftData(o[0]); | 199 checkAircraftData(o[0]); |
200 checkAircraftData(o[1]); | 200 checkAircraftData(o[1]); |
201 } | 201 } |
202 | 202 |
203 buildUnnamed22() { | 203 buildUnnamed37() { |
204 var o = new core.List<api.AirportData>(); | 204 var o = new core.List<api.AirportData>(); |
205 o.add(buildAirportData()); | 205 o.add(buildAirportData()); |
206 o.add(buildAirportData()); | 206 o.add(buildAirportData()); |
207 return o; | 207 return o; |
208 } | 208 } |
209 | 209 |
210 checkUnnamed22(core.List<api.AirportData> o) { | 210 checkUnnamed37(core.List<api.AirportData> o) { |
211 unittest.expect(o, unittest.hasLength(2)); | 211 unittest.expect(o, unittest.hasLength(2)); |
212 checkAirportData(o[0]); | 212 checkAirportData(o[0]); |
213 checkAirportData(o[1]); | 213 checkAirportData(o[1]); |
214 } | 214 } |
215 | 215 |
216 buildUnnamed23() { | 216 buildUnnamed38() { |
217 var o = new core.List<api.CarrierData>(); | 217 var o = new core.List<api.CarrierData>(); |
218 o.add(buildCarrierData()); | 218 o.add(buildCarrierData()); |
219 o.add(buildCarrierData()); | 219 o.add(buildCarrierData()); |
220 return o; | 220 return o; |
221 } | 221 } |
222 | 222 |
223 checkUnnamed23(core.List<api.CarrierData> o) { | 223 checkUnnamed38(core.List<api.CarrierData> o) { |
224 unittest.expect(o, unittest.hasLength(2)); | 224 unittest.expect(o, unittest.hasLength(2)); |
225 checkCarrierData(o[0]); | 225 checkCarrierData(o[0]); |
226 checkCarrierData(o[1]); | 226 checkCarrierData(o[1]); |
227 } | 227 } |
228 | 228 |
229 buildUnnamed24() { | 229 buildUnnamed39() { |
230 var o = new core.List<api.CityData>(); | 230 var o = new core.List<api.CityData>(); |
231 o.add(buildCityData()); | 231 o.add(buildCityData()); |
232 o.add(buildCityData()); | 232 o.add(buildCityData()); |
233 return o; | 233 return o; |
234 } | 234 } |
235 | 235 |
236 checkUnnamed24(core.List<api.CityData> o) { | 236 checkUnnamed39(core.List<api.CityData> o) { |
237 unittest.expect(o, unittest.hasLength(2)); | 237 unittest.expect(o, unittest.hasLength(2)); |
238 checkCityData(o[0]); | 238 checkCityData(o[0]); |
239 checkCityData(o[1]); | 239 checkCityData(o[1]); |
240 } | 240 } |
241 | 241 |
242 buildUnnamed25() { | 242 buildUnnamed40() { |
243 var o = new core.List<api.TaxData>(); | 243 var o = new core.List<api.TaxData>(); |
244 o.add(buildTaxData()); | 244 o.add(buildTaxData()); |
245 o.add(buildTaxData()); | 245 o.add(buildTaxData()); |
246 return o; | 246 return o; |
247 } | 247 } |
248 | 248 |
249 checkUnnamed25(core.List<api.TaxData> o) { | 249 checkUnnamed40(core.List<api.TaxData> o) { |
250 unittest.expect(o, unittest.hasLength(2)); | 250 unittest.expect(o, unittest.hasLength(2)); |
251 checkTaxData(o[0]); | 251 checkTaxData(o[0]); |
252 checkTaxData(o[1]); | 252 checkTaxData(o[1]); |
253 } | 253 } |
254 | 254 |
255 core.int buildCounterData = 0; | 255 core.int buildCounterData = 0; |
256 buildData() { | 256 buildData() { |
257 var o = new api.Data(); | 257 var o = new api.Data(); |
258 buildCounterData++; | 258 buildCounterData++; |
259 if (buildCounterData < 3) { | 259 if (buildCounterData < 3) { |
260 o.aircraft = buildUnnamed21(); | 260 o.aircraft = buildUnnamed36(); |
261 o.airport = buildUnnamed22(); | 261 o.airport = buildUnnamed37(); |
262 o.carrier = buildUnnamed23(); | 262 o.carrier = buildUnnamed38(); |
263 o.city = buildUnnamed24(); | 263 o.city = buildUnnamed39(); |
264 o.kind = "foo"; | 264 o.kind = "foo"; |
265 o.tax = buildUnnamed25(); | 265 o.tax = buildUnnamed40(); |
266 } | 266 } |
267 buildCounterData--; | 267 buildCounterData--; |
268 return o; | 268 return o; |
269 } | 269 } |
270 | 270 |
271 checkData(api.Data o) { | 271 checkData(api.Data o) { |
272 buildCounterData++; | 272 buildCounterData++; |
273 if (buildCounterData < 3) { | 273 if (buildCounterData < 3) { |
274 checkUnnamed21(o.aircraft); | 274 checkUnnamed36(o.aircraft); |
275 checkUnnamed22(o.airport); | 275 checkUnnamed37(o.airport); |
276 checkUnnamed23(o.carrier); | 276 checkUnnamed38(o.carrier); |
277 checkUnnamed24(o.city); | 277 checkUnnamed39(o.city); |
278 unittest.expect(o.kind, unittest.equals('foo')); | 278 unittest.expect(o.kind, unittest.equals('foo')); |
279 checkUnnamed25(o.tax); | 279 checkUnnamed40(o.tax); |
280 } | 280 } |
281 buildCounterData--; | 281 buildCounterData--; |
282 } | 282 } |
283 | 283 |
284 core.int buildCounterFareInfo = 0; | 284 core.int buildCounterFareInfo = 0; |
285 buildFareInfo() { | 285 buildFareInfo() { |
286 var o = new api.FareInfo(); | 286 var o = new api.FareInfo(); |
287 buildCounterFareInfo++; | 287 buildCounterFareInfo++; |
288 if (buildCounterFareInfo < 3) { | 288 if (buildCounterFareInfo < 3) { |
289 o.basisCode = "foo"; | 289 o.basisCode = "foo"; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 | 326 |
327 checkFlightInfo(api.FlightInfo o) { | 327 checkFlightInfo(api.FlightInfo o) { |
328 buildCounterFlightInfo++; | 328 buildCounterFlightInfo++; |
329 if (buildCounterFlightInfo < 3) { | 329 if (buildCounterFlightInfo < 3) { |
330 unittest.expect(o.carrier, unittest.equals('foo')); | 330 unittest.expect(o.carrier, unittest.equals('foo')); |
331 unittest.expect(o.number, unittest.equals('foo')); | 331 unittest.expect(o.number, unittest.equals('foo')); |
332 } | 332 } |
333 buildCounterFlightInfo--; | 333 buildCounterFlightInfo--; |
334 } | 334 } |
335 | 335 |
336 buildUnnamed26() { | 336 buildUnnamed41() { |
337 var o = new core.List<api.BagDescriptor>(); | 337 var o = new core.List<api.BagDescriptor>(); |
338 o.add(buildBagDescriptor()); | 338 o.add(buildBagDescriptor()); |
339 o.add(buildBagDescriptor()); | 339 o.add(buildBagDescriptor()); |
340 return o; | 340 return o; |
341 } | 341 } |
342 | 342 |
343 checkUnnamed26(core.List<api.BagDescriptor> o) { | 343 checkUnnamed41(core.List<api.BagDescriptor> o) { |
344 unittest.expect(o, unittest.hasLength(2)); | 344 unittest.expect(o, unittest.hasLength(2)); |
345 checkBagDescriptor(o[0]); | 345 checkBagDescriptor(o[0]); |
346 checkBagDescriptor(o[1]); | 346 checkBagDescriptor(o[1]); |
347 } | 347 } |
348 | 348 |
349 core.int buildCounterFreeBaggageAllowance = 0; | 349 core.int buildCounterFreeBaggageAllowance = 0; |
350 buildFreeBaggageAllowance() { | 350 buildFreeBaggageAllowance() { |
351 var o = new api.FreeBaggageAllowance(); | 351 var o = new api.FreeBaggageAllowance(); |
352 buildCounterFreeBaggageAllowance++; | 352 buildCounterFreeBaggageAllowance++; |
353 if (buildCounterFreeBaggageAllowance < 3) { | 353 if (buildCounterFreeBaggageAllowance < 3) { |
354 o.bagDescriptor = buildUnnamed26(); | 354 o.bagDescriptor = buildUnnamed41(); |
355 o.kilos = 42; | 355 o.kilos = 42; |
356 o.kilosPerPiece = 42; | 356 o.kilosPerPiece = 42; |
357 o.kind = "foo"; | 357 o.kind = "foo"; |
358 o.pieces = 42; | 358 o.pieces = 42; |
359 o.pounds = 42; | 359 o.pounds = 42; |
360 } | 360 } |
361 buildCounterFreeBaggageAllowance--; | 361 buildCounterFreeBaggageAllowance--; |
362 return o; | 362 return o; |
363 } | 363 } |
364 | 364 |
365 checkFreeBaggageAllowance(api.FreeBaggageAllowance o) { | 365 checkFreeBaggageAllowance(api.FreeBaggageAllowance o) { |
366 buildCounterFreeBaggageAllowance++; | 366 buildCounterFreeBaggageAllowance++; |
367 if (buildCounterFreeBaggageAllowance < 3) { | 367 if (buildCounterFreeBaggageAllowance < 3) { |
368 checkUnnamed26(o.bagDescriptor); | 368 checkUnnamed41(o.bagDescriptor); |
369 unittest.expect(o.kilos, unittest.equals(42)); | 369 unittest.expect(o.kilos, unittest.equals(42)); |
370 unittest.expect(o.kilosPerPiece, unittest.equals(42)); | 370 unittest.expect(o.kilosPerPiece, unittest.equals(42)); |
371 unittest.expect(o.kind, unittest.equals('foo')); | 371 unittest.expect(o.kind, unittest.equals('foo')); |
372 unittest.expect(o.pieces, unittest.equals(42)); | 372 unittest.expect(o.pieces, unittest.equals(42)); |
373 unittest.expect(o.pounds, unittest.equals(42)); | 373 unittest.expect(o.pounds, unittest.equals(42)); |
374 } | 374 } |
375 buildCounterFreeBaggageAllowance--; | 375 buildCounterFreeBaggageAllowance--; |
376 } | 376 } |
377 | 377 |
378 core.int buildCounterLegInfo = 0; | 378 core.int buildCounterLegInfo = 0; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 unittest.expect(o.adultCount, unittest.equals(42)); | 448 unittest.expect(o.adultCount, unittest.equals(42)); |
449 unittest.expect(o.childCount, unittest.equals(42)); | 449 unittest.expect(o.childCount, unittest.equals(42)); |
450 unittest.expect(o.infantInLapCount, unittest.equals(42)); | 450 unittest.expect(o.infantInLapCount, unittest.equals(42)); |
451 unittest.expect(o.infantInSeatCount, unittest.equals(42)); | 451 unittest.expect(o.infantInSeatCount, unittest.equals(42)); |
452 unittest.expect(o.kind, unittest.equals('foo')); | 452 unittest.expect(o.kind, unittest.equals('foo')); |
453 unittest.expect(o.seniorCount, unittest.equals(42)); | 453 unittest.expect(o.seniorCount, unittest.equals(42)); |
454 } | 454 } |
455 buildCounterPassengerCounts--; | 455 buildCounterPassengerCounts--; |
456 } | 456 } |
457 | 457 |
458 buildUnnamed27() { | 458 buildUnnamed42() { |
459 var o = new core.List<api.FareInfo>(); | 459 var o = new core.List<api.FareInfo>(); |
460 o.add(buildFareInfo()); | 460 o.add(buildFareInfo()); |
461 o.add(buildFareInfo()); | 461 o.add(buildFareInfo()); |
462 return o; | 462 return o; |
463 } | 463 } |
464 | 464 |
465 checkUnnamed27(core.List<api.FareInfo> o) { | 465 checkUnnamed42(core.List<api.FareInfo> o) { |
466 unittest.expect(o, unittest.hasLength(2)); | 466 unittest.expect(o, unittest.hasLength(2)); |
467 checkFareInfo(o[0]); | 467 checkFareInfo(o[0]); |
468 checkFareInfo(o[1]); | 468 checkFareInfo(o[1]); |
469 } | 469 } |
470 | 470 |
471 buildUnnamed28() { | 471 buildUnnamed43() { |
472 var o = new core.List<api.SegmentPricing>(); | 472 var o = new core.List<api.SegmentPricing>(); |
473 o.add(buildSegmentPricing()); | 473 o.add(buildSegmentPricing()); |
474 o.add(buildSegmentPricing()); | 474 o.add(buildSegmentPricing()); |
475 return o; | 475 return o; |
476 } | 476 } |
477 | 477 |
478 checkUnnamed28(core.List<api.SegmentPricing> o) { | 478 checkUnnamed43(core.List<api.SegmentPricing> o) { |
479 unittest.expect(o, unittest.hasLength(2)); | 479 unittest.expect(o, unittest.hasLength(2)); |
480 checkSegmentPricing(o[0]); | 480 checkSegmentPricing(o[0]); |
481 checkSegmentPricing(o[1]); | 481 checkSegmentPricing(o[1]); |
482 } | 482 } |
483 | 483 |
484 buildUnnamed29() { | 484 buildUnnamed44() { |
485 var o = new core.List<api.TaxInfo>(); | 485 var o = new core.List<api.TaxInfo>(); |
486 o.add(buildTaxInfo()); | 486 o.add(buildTaxInfo()); |
487 o.add(buildTaxInfo()); | 487 o.add(buildTaxInfo()); |
488 return o; | 488 return o; |
489 } | 489 } |
490 | 490 |
491 checkUnnamed29(core.List<api.TaxInfo> o) { | 491 checkUnnamed44(core.List<api.TaxInfo> o) { |
492 unittest.expect(o, unittest.hasLength(2)); | 492 unittest.expect(o, unittest.hasLength(2)); |
493 checkTaxInfo(o[0]); | 493 checkTaxInfo(o[0]); |
494 checkTaxInfo(o[1]); | 494 checkTaxInfo(o[1]); |
495 } | 495 } |
496 | 496 |
497 core.int buildCounterPricingInfo = 0; | 497 core.int buildCounterPricingInfo = 0; |
498 buildPricingInfo() { | 498 buildPricingInfo() { |
499 var o = new api.PricingInfo(); | 499 var o = new api.PricingInfo(); |
500 buildCounterPricingInfo++; | 500 buildCounterPricingInfo++; |
501 if (buildCounterPricingInfo < 3) { | 501 if (buildCounterPricingInfo < 3) { |
502 o.baseFareTotal = "foo"; | 502 o.baseFareTotal = "foo"; |
503 o.fare = buildUnnamed27(); | 503 o.fare = buildUnnamed42(); |
504 o.fareCalculation = "foo"; | 504 o.fareCalculation = "foo"; |
505 o.kind = "foo"; | 505 o.kind = "foo"; |
506 o.latestTicketingTime = "foo"; | 506 o.latestTicketingTime = "foo"; |
507 o.passengers = buildPassengerCounts(); | 507 o.passengers = buildPassengerCounts(); |
508 o.ptc = "foo"; | 508 o.ptc = "foo"; |
509 o.refundable = true; | 509 o.refundable = true; |
510 o.saleFareTotal = "foo"; | 510 o.saleFareTotal = "foo"; |
511 o.saleTaxTotal = "foo"; | 511 o.saleTaxTotal = "foo"; |
512 o.saleTotal = "foo"; | 512 o.saleTotal = "foo"; |
513 o.segmentPricing = buildUnnamed28(); | 513 o.segmentPricing = buildUnnamed43(); |
514 o.tax = buildUnnamed29(); | 514 o.tax = buildUnnamed44(); |
515 } | 515 } |
516 buildCounterPricingInfo--; | 516 buildCounterPricingInfo--; |
517 return o; | 517 return o; |
518 } | 518 } |
519 | 519 |
520 checkPricingInfo(api.PricingInfo o) { | 520 checkPricingInfo(api.PricingInfo o) { |
521 buildCounterPricingInfo++; | 521 buildCounterPricingInfo++; |
522 if (buildCounterPricingInfo < 3) { | 522 if (buildCounterPricingInfo < 3) { |
523 unittest.expect(o.baseFareTotal, unittest.equals('foo')); | 523 unittest.expect(o.baseFareTotal, unittest.equals('foo')); |
524 checkUnnamed27(o.fare); | 524 checkUnnamed42(o.fare); |
525 unittest.expect(o.fareCalculation, unittest.equals('foo')); | 525 unittest.expect(o.fareCalculation, unittest.equals('foo')); |
526 unittest.expect(o.kind, unittest.equals('foo')); | 526 unittest.expect(o.kind, unittest.equals('foo')); |
527 unittest.expect(o.latestTicketingTime, unittest.equals('foo')); | 527 unittest.expect(o.latestTicketingTime, unittest.equals('foo')); |
528 checkPassengerCounts(o.passengers); | 528 checkPassengerCounts(o.passengers); |
529 unittest.expect(o.ptc, unittest.equals('foo')); | 529 unittest.expect(o.ptc, unittest.equals('foo')); |
530 unittest.expect(o.refundable, unittest.isTrue); | 530 unittest.expect(o.refundable, unittest.isTrue); |
531 unittest.expect(o.saleFareTotal, unittest.equals('foo')); | 531 unittest.expect(o.saleFareTotal, unittest.equals('foo')); |
532 unittest.expect(o.saleTaxTotal, unittest.equals('foo')); | 532 unittest.expect(o.saleTaxTotal, unittest.equals('foo')); |
533 unittest.expect(o.saleTotal, unittest.equals('foo')); | 533 unittest.expect(o.saleTotal, unittest.equals('foo')); |
534 checkUnnamed28(o.segmentPricing); | 534 checkUnnamed43(o.segmentPricing); |
535 checkUnnamed29(o.tax); | 535 checkUnnamed44(o.tax); |
536 } | 536 } |
537 buildCounterPricingInfo--; | 537 buildCounterPricingInfo--; |
538 } | 538 } |
539 | 539 |
540 buildUnnamed30() { | 540 buildUnnamed45() { |
541 var o = new core.List<api.LegInfo>(); | 541 var o = new core.List<api.LegInfo>(); |
542 o.add(buildLegInfo()); | 542 o.add(buildLegInfo()); |
543 o.add(buildLegInfo()); | 543 o.add(buildLegInfo()); |
544 return o; | 544 return o; |
545 } | 545 } |
546 | 546 |
547 checkUnnamed30(core.List<api.LegInfo> o) { | 547 checkUnnamed45(core.List<api.LegInfo> o) { |
548 unittest.expect(o, unittest.hasLength(2)); | 548 unittest.expect(o, unittest.hasLength(2)); |
549 checkLegInfo(o[0]); | 549 checkLegInfo(o[0]); |
550 checkLegInfo(o[1]); | 550 checkLegInfo(o[1]); |
551 } | 551 } |
552 | 552 |
553 core.int buildCounterSegmentInfo = 0; | 553 core.int buildCounterSegmentInfo = 0; |
554 buildSegmentInfo() { | 554 buildSegmentInfo() { |
555 var o = new api.SegmentInfo(); | 555 var o = new api.SegmentInfo(); |
556 buildCounterSegmentInfo++; | 556 buildCounterSegmentInfo++; |
557 if (buildCounterSegmentInfo < 3) { | 557 if (buildCounterSegmentInfo < 3) { |
558 o.bookingCode = "foo"; | 558 o.bookingCode = "foo"; |
559 o.bookingCodeCount = 42; | 559 o.bookingCodeCount = 42; |
560 o.cabin = "foo"; | 560 o.cabin = "foo"; |
561 o.connectionDuration = 42; | 561 o.connectionDuration = 42; |
562 o.duration = 42; | 562 o.duration = 42; |
563 o.flight = buildFlightInfo(); | 563 o.flight = buildFlightInfo(); |
564 o.id = "foo"; | 564 o.id = "foo"; |
565 o.kind = "foo"; | 565 o.kind = "foo"; |
566 o.leg = buildUnnamed30(); | 566 o.leg = buildUnnamed45(); |
567 o.marriedSegmentGroup = "foo"; | 567 o.marriedSegmentGroup = "foo"; |
568 o.subjectToGovernmentApproval = true; | 568 o.subjectToGovernmentApproval = true; |
569 } | 569 } |
570 buildCounterSegmentInfo--; | 570 buildCounterSegmentInfo--; |
571 return o; | 571 return o; |
572 } | 572 } |
573 | 573 |
574 checkSegmentInfo(api.SegmentInfo o) { | 574 checkSegmentInfo(api.SegmentInfo o) { |
575 buildCounterSegmentInfo++; | 575 buildCounterSegmentInfo++; |
576 if (buildCounterSegmentInfo < 3) { | 576 if (buildCounterSegmentInfo < 3) { |
577 unittest.expect(o.bookingCode, unittest.equals('foo')); | 577 unittest.expect(o.bookingCode, unittest.equals('foo')); |
578 unittest.expect(o.bookingCodeCount, unittest.equals(42)); | 578 unittest.expect(o.bookingCodeCount, unittest.equals(42)); |
579 unittest.expect(o.cabin, unittest.equals('foo')); | 579 unittest.expect(o.cabin, unittest.equals('foo')); |
580 unittest.expect(o.connectionDuration, unittest.equals(42)); | 580 unittest.expect(o.connectionDuration, unittest.equals(42)); |
581 unittest.expect(o.duration, unittest.equals(42)); | 581 unittest.expect(o.duration, unittest.equals(42)); |
582 checkFlightInfo(o.flight); | 582 checkFlightInfo(o.flight); |
583 unittest.expect(o.id, unittest.equals('foo')); | 583 unittest.expect(o.id, unittest.equals('foo')); |
584 unittest.expect(o.kind, unittest.equals('foo')); | 584 unittest.expect(o.kind, unittest.equals('foo')); |
585 checkUnnamed30(o.leg); | 585 checkUnnamed45(o.leg); |
586 unittest.expect(o.marriedSegmentGroup, unittest.equals('foo')); | 586 unittest.expect(o.marriedSegmentGroup, unittest.equals('foo')); |
587 unittest.expect(o.subjectToGovernmentApproval, unittest.isTrue); | 587 unittest.expect(o.subjectToGovernmentApproval, unittest.isTrue); |
588 } | 588 } |
589 buildCounterSegmentInfo--; | 589 buildCounterSegmentInfo--; |
590 } | 590 } |
591 | 591 |
592 buildUnnamed31() { | 592 buildUnnamed46() { |
593 var o = new core.List<api.FreeBaggageAllowance>(); | 593 var o = new core.List<api.FreeBaggageAllowance>(); |
594 o.add(buildFreeBaggageAllowance()); | 594 o.add(buildFreeBaggageAllowance()); |
595 o.add(buildFreeBaggageAllowance()); | 595 o.add(buildFreeBaggageAllowance()); |
596 return o; | 596 return o; |
597 } | 597 } |
598 | 598 |
599 checkUnnamed31(core.List<api.FreeBaggageAllowance> o) { | 599 checkUnnamed46(core.List<api.FreeBaggageAllowance> o) { |
600 unittest.expect(o, unittest.hasLength(2)); | 600 unittest.expect(o, unittest.hasLength(2)); |
601 checkFreeBaggageAllowance(o[0]); | 601 checkFreeBaggageAllowance(o[0]); |
602 checkFreeBaggageAllowance(o[1]); | 602 checkFreeBaggageAllowance(o[1]); |
603 } | 603 } |
604 | 604 |
605 core.int buildCounterSegmentPricing = 0; | 605 core.int buildCounterSegmentPricing = 0; |
606 buildSegmentPricing() { | 606 buildSegmentPricing() { |
607 var o = new api.SegmentPricing(); | 607 var o = new api.SegmentPricing(); |
608 buildCounterSegmentPricing++; | 608 buildCounterSegmentPricing++; |
609 if (buildCounterSegmentPricing < 3) { | 609 if (buildCounterSegmentPricing < 3) { |
610 o.fareId = "foo"; | 610 o.fareId = "foo"; |
611 o.freeBaggageOption = buildUnnamed31(); | 611 o.freeBaggageOption = buildUnnamed46(); |
612 o.kind = "foo"; | 612 o.kind = "foo"; |
613 o.segmentId = "foo"; | 613 o.segmentId = "foo"; |
614 } | 614 } |
615 buildCounterSegmentPricing--; | 615 buildCounterSegmentPricing--; |
616 return o; | 616 return o; |
617 } | 617 } |
618 | 618 |
619 checkSegmentPricing(api.SegmentPricing o) { | 619 checkSegmentPricing(api.SegmentPricing o) { |
620 buildCounterSegmentPricing++; | 620 buildCounterSegmentPricing++; |
621 if (buildCounterSegmentPricing < 3) { | 621 if (buildCounterSegmentPricing < 3) { |
622 unittest.expect(o.fareId, unittest.equals('foo')); | 622 unittest.expect(o.fareId, unittest.equals('foo')); |
623 checkUnnamed31(o.freeBaggageOption); | 623 checkUnnamed46(o.freeBaggageOption); |
624 unittest.expect(o.kind, unittest.equals('foo')); | 624 unittest.expect(o.kind, unittest.equals('foo')); |
625 unittest.expect(o.segmentId, unittest.equals('foo')); | 625 unittest.expect(o.segmentId, unittest.equals('foo')); |
626 } | 626 } |
627 buildCounterSegmentPricing--; | 627 buildCounterSegmentPricing--; |
628 } | 628 } |
629 | 629 |
630 buildUnnamed32() { | 630 buildUnnamed47() { |
631 var o = new core.List<api.SegmentInfo>(); | 631 var o = new core.List<api.SegmentInfo>(); |
632 o.add(buildSegmentInfo()); | 632 o.add(buildSegmentInfo()); |
633 o.add(buildSegmentInfo()); | 633 o.add(buildSegmentInfo()); |
634 return o; | 634 return o; |
635 } | 635 } |
636 | 636 |
637 checkUnnamed32(core.List<api.SegmentInfo> o) { | 637 checkUnnamed47(core.List<api.SegmentInfo> o) { |
638 unittest.expect(o, unittest.hasLength(2)); | 638 unittest.expect(o, unittest.hasLength(2)); |
639 checkSegmentInfo(o[0]); | 639 checkSegmentInfo(o[0]); |
640 checkSegmentInfo(o[1]); | 640 checkSegmentInfo(o[1]); |
641 } | 641 } |
642 | 642 |
643 core.int buildCounterSliceInfo = 0; | 643 core.int buildCounterSliceInfo = 0; |
644 buildSliceInfo() { | 644 buildSliceInfo() { |
645 var o = new api.SliceInfo(); | 645 var o = new api.SliceInfo(); |
646 buildCounterSliceInfo++; | 646 buildCounterSliceInfo++; |
647 if (buildCounterSliceInfo < 3) { | 647 if (buildCounterSliceInfo < 3) { |
648 o.duration = 42; | 648 o.duration = 42; |
649 o.kind = "foo"; | 649 o.kind = "foo"; |
650 o.segment = buildUnnamed32(); | 650 o.segment = buildUnnamed47(); |
651 } | 651 } |
652 buildCounterSliceInfo--; | 652 buildCounterSliceInfo--; |
653 return o; | 653 return o; |
654 } | 654 } |
655 | 655 |
656 checkSliceInfo(api.SliceInfo o) { | 656 checkSliceInfo(api.SliceInfo o) { |
657 buildCounterSliceInfo++; | 657 buildCounterSliceInfo++; |
658 if (buildCounterSliceInfo < 3) { | 658 if (buildCounterSliceInfo < 3) { |
659 unittest.expect(o.duration, unittest.equals(42)); | 659 unittest.expect(o.duration, unittest.equals(42)); |
660 unittest.expect(o.kind, unittest.equals('foo')); | 660 unittest.expect(o.kind, unittest.equals('foo')); |
661 checkUnnamed32(o.segment); | 661 checkUnnamed47(o.segment); |
662 } | 662 } |
663 buildCounterSliceInfo--; | 663 buildCounterSliceInfo--; |
664 } | 664 } |
665 | 665 |
666 buildUnnamed33() { | 666 buildUnnamed48() { |
667 var o = new core.List<core.String>(); | 667 var o = new core.List<core.String>(); |
668 o.add("foo"); | 668 o.add("foo"); |
669 o.add("foo"); | 669 o.add("foo"); |
670 return o; | 670 return o; |
671 } | 671 } |
672 | 672 |
673 checkUnnamed33(core.List<core.String> o) { | 673 checkUnnamed48(core.List<core.String> o) { |
674 unittest.expect(o, unittest.hasLength(2)); | 674 unittest.expect(o, unittest.hasLength(2)); |
675 unittest.expect(o[0], unittest.equals('foo')); | 675 unittest.expect(o[0], unittest.equals('foo')); |
676 unittest.expect(o[1], unittest.equals('foo')); | 676 unittest.expect(o[1], unittest.equals('foo')); |
677 } | 677 } |
678 | 678 |
679 buildUnnamed34() { | 679 buildUnnamed49() { |
680 var o = new core.List<core.String>(); | 680 var o = new core.List<core.String>(); |
681 o.add("foo"); | 681 o.add("foo"); |
682 o.add("foo"); | 682 o.add("foo"); |
683 return o; | 683 return o; |
684 } | 684 } |
685 | 685 |
686 checkUnnamed34(core.List<core.String> o) { | 686 checkUnnamed49(core.List<core.String> o) { |
687 unittest.expect(o, unittest.hasLength(2)); | 687 unittest.expect(o, unittest.hasLength(2)); |
688 unittest.expect(o[0], unittest.equals('foo')); | 688 unittest.expect(o[0], unittest.equals('foo')); |
689 unittest.expect(o[1], unittest.equals('foo')); | 689 unittest.expect(o[1], unittest.equals('foo')); |
690 } | 690 } |
691 | 691 |
692 core.int buildCounterSliceInput = 0; | 692 core.int buildCounterSliceInput = 0; |
693 buildSliceInput() { | 693 buildSliceInput() { |
694 var o = new api.SliceInput(); | 694 var o = new api.SliceInput(); |
695 buildCounterSliceInput++; | 695 buildCounterSliceInput++; |
696 if (buildCounterSliceInput < 3) { | 696 if (buildCounterSliceInput < 3) { |
697 o.alliance = "foo"; | 697 o.alliance = "foo"; |
698 o.date = "foo"; | 698 o.date = "foo"; |
699 o.destination = "foo"; | 699 o.destination = "foo"; |
700 o.kind = "foo"; | 700 o.kind = "foo"; |
701 o.maxConnectionDuration = 42; | 701 o.maxConnectionDuration = 42; |
702 o.maxStops = 42; | 702 o.maxStops = 42; |
703 o.origin = "foo"; | 703 o.origin = "foo"; |
704 o.permittedCarrier = buildUnnamed33(); | 704 o.permittedCarrier = buildUnnamed48(); |
705 o.permittedDepartureTime = buildTimeOfDayRange(); | 705 o.permittedDepartureTime = buildTimeOfDayRange(); |
706 o.preferredCabin = "foo"; | 706 o.preferredCabin = "foo"; |
707 o.prohibitedCarrier = buildUnnamed34(); | 707 o.prohibitedCarrier = buildUnnamed49(); |
708 } | 708 } |
709 buildCounterSliceInput--; | 709 buildCounterSliceInput--; |
710 return o; | 710 return o; |
711 } | 711 } |
712 | 712 |
713 checkSliceInput(api.SliceInput o) { | 713 checkSliceInput(api.SliceInput o) { |
714 buildCounterSliceInput++; | 714 buildCounterSliceInput++; |
715 if (buildCounterSliceInput < 3) { | 715 if (buildCounterSliceInput < 3) { |
716 unittest.expect(o.alliance, unittest.equals('foo')); | 716 unittest.expect(o.alliance, unittest.equals('foo')); |
717 unittest.expect(o.date, unittest.equals('foo')); | 717 unittest.expect(o.date, unittest.equals('foo')); |
718 unittest.expect(o.destination, unittest.equals('foo')); | 718 unittest.expect(o.destination, unittest.equals('foo')); |
719 unittest.expect(o.kind, unittest.equals('foo')); | 719 unittest.expect(o.kind, unittest.equals('foo')); |
720 unittest.expect(o.maxConnectionDuration, unittest.equals(42)); | 720 unittest.expect(o.maxConnectionDuration, unittest.equals(42)); |
721 unittest.expect(o.maxStops, unittest.equals(42)); | 721 unittest.expect(o.maxStops, unittest.equals(42)); |
722 unittest.expect(o.origin, unittest.equals('foo')); | 722 unittest.expect(o.origin, unittest.equals('foo')); |
723 checkUnnamed33(o.permittedCarrier); | 723 checkUnnamed48(o.permittedCarrier); |
724 checkTimeOfDayRange(o.permittedDepartureTime); | 724 checkTimeOfDayRange(o.permittedDepartureTime); |
725 unittest.expect(o.preferredCabin, unittest.equals('foo')); | 725 unittest.expect(o.preferredCabin, unittest.equals('foo')); |
726 checkUnnamed34(o.prohibitedCarrier); | 726 checkUnnamed49(o.prohibitedCarrier); |
727 } | 727 } |
728 buildCounterSliceInput--; | 728 buildCounterSliceInput--; |
729 } | 729 } |
730 | 730 |
731 core.int buildCounterTaxData = 0; | 731 core.int buildCounterTaxData = 0; |
732 buildTaxData() { | 732 buildTaxData() { |
733 var o = new api.TaxData(); | 733 var o = new api.TaxData(); |
734 buildCounterTaxData++; | 734 buildCounterTaxData++; |
735 if (buildCounterTaxData < 3) { | 735 if (buildCounterTaxData < 3) { |
736 o.id = "foo"; | 736 o.id = "foo"; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
796 checkTimeOfDayRange(api.TimeOfDayRange o) { | 796 checkTimeOfDayRange(api.TimeOfDayRange o) { |
797 buildCounterTimeOfDayRange++; | 797 buildCounterTimeOfDayRange++; |
798 if (buildCounterTimeOfDayRange < 3) { | 798 if (buildCounterTimeOfDayRange < 3) { |
799 unittest.expect(o.earliestTime, unittest.equals('foo')); | 799 unittest.expect(o.earliestTime, unittest.equals('foo')); |
800 unittest.expect(o.kind, unittest.equals('foo')); | 800 unittest.expect(o.kind, unittest.equals('foo')); |
801 unittest.expect(o.latestTime, unittest.equals('foo')); | 801 unittest.expect(o.latestTime, unittest.equals('foo')); |
802 } | 802 } |
803 buildCounterTimeOfDayRange--; | 803 buildCounterTimeOfDayRange--; |
804 } | 804 } |
805 | 805 |
806 buildUnnamed35() { | 806 buildUnnamed50() { |
807 var o = new core.List<api.PricingInfo>(); | 807 var o = new core.List<api.PricingInfo>(); |
808 o.add(buildPricingInfo()); | 808 o.add(buildPricingInfo()); |
809 o.add(buildPricingInfo()); | 809 o.add(buildPricingInfo()); |
810 return o; | 810 return o; |
811 } | 811 } |
812 | 812 |
813 checkUnnamed35(core.List<api.PricingInfo> o) { | 813 checkUnnamed50(core.List<api.PricingInfo> o) { |
814 unittest.expect(o, unittest.hasLength(2)); | 814 unittest.expect(o, unittest.hasLength(2)); |
815 checkPricingInfo(o[0]); | 815 checkPricingInfo(o[0]); |
816 checkPricingInfo(o[1]); | 816 checkPricingInfo(o[1]); |
817 } | 817 } |
818 | 818 |
819 buildUnnamed36() { | 819 buildUnnamed51() { |
820 var o = new core.List<api.SliceInfo>(); | 820 var o = new core.List<api.SliceInfo>(); |
821 o.add(buildSliceInfo()); | 821 o.add(buildSliceInfo()); |
822 o.add(buildSliceInfo()); | 822 o.add(buildSliceInfo()); |
823 return o; | 823 return o; |
824 } | 824 } |
825 | 825 |
826 checkUnnamed36(core.List<api.SliceInfo> o) { | 826 checkUnnamed51(core.List<api.SliceInfo> o) { |
827 unittest.expect(o, unittest.hasLength(2)); | 827 unittest.expect(o, unittest.hasLength(2)); |
828 checkSliceInfo(o[0]); | 828 checkSliceInfo(o[0]); |
829 checkSliceInfo(o[1]); | 829 checkSliceInfo(o[1]); |
830 } | 830 } |
831 | 831 |
832 core.int buildCounterTripOption = 0; | 832 core.int buildCounterTripOption = 0; |
833 buildTripOption() { | 833 buildTripOption() { |
834 var o = new api.TripOption(); | 834 var o = new api.TripOption(); |
835 buildCounterTripOption++; | 835 buildCounterTripOption++; |
836 if (buildCounterTripOption < 3) { | 836 if (buildCounterTripOption < 3) { |
837 o.id = "foo"; | 837 o.id = "foo"; |
838 o.kind = "foo"; | 838 o.kind = "foo"; |
839 o.pricing = buildUnnamed35(); | 839 o.pricing = buildUnnamed50(); |
840 o.saleTotal = "foo"; | 840 o.saleTotal = "foo"; |
841 o.slice = buildUnnamed36(); | 841 o.slice = buildUnnamed51(); |
842 } | 842 } |
843 buildCounterTripOption--; | 843 buildCounterTripOption--; |
844 return o; | 844 return o; |
845 } | 845 } |
846 | 846 |
847 checkTripOption(api.TripOption o) { | 847 checkTripOption(api.TripOption o) { |
848 buildCounterTripOption++; | 848 buildCounterTripOption++; |
849 if (buildCounterTripOption < 3) { | 849 if (buildCounterTripOption < 3) { |
850 unittest.expect(o.id, unittest.equals('foo')); | 850 unittest.expect(o.id, unittest.equals('foo')); |
851 unittest.expect(o.kind, unittest.equals('foo')); | 851 unittest.expect(o.kind, unittest.equals('foo')); |
852 checkUnnamed35(o.pricing); | 852 checkUnnamed50(o.pricing); |
853 unittest.expect(o.saleTotal, unittest.equals('foo')); | 853 unittest.expect(o.saleTotal, unittest.equals('foo')); |
854 checkUnnamed36(o.slice); | 854 checkUnnamed51(o.slice); |
855 } | 855 } |
856 buildCounterTripOption--; | 856 buildCounterTripOption--; |
857 } | 857 } |
858 | 858 |
859 buildUnnamed37() { | 859 buildUnnamed52() { |
860 var o = new core.List<api.SliceInput>(); | 860 var o = new core.List<api.SliceInput>(); |
861 o.add(buildSliceInput()); | 861 o.add(buildSliceInput()); |
862 o.add(buildSliceInput()); | 862 o.add(buildSliceInput()); |
863 return o; | 863 return o; |
864 } | 864 } |
865 | 865 |
866 checkUnnamed37(core.List<api.SliceInput> o) { | 866 checkUnnamed52(core.List<api.SliceInput> o) { |
867 unittest.expect(o, unittest.hasLength(2)); | 867 unittest.expect(o, unittest.hasLength(2)); |
868 checkSliceInput(o[0]); | 868 checkSliceInput(o[0]); |
869 checkSliceInput(o[1]); | 869 checkSliceInput(o[1]); |
870 } | 870 } |
871 | 871 |
872 core.int buildCounterTripOptionsRequest = 0; | 872 core.int buildCounterTripOptionsRequest = 0; |
873 buildTripOptionsRequest() { | 873 buildTripOptionsRequest() { |
874 var o = new api.TripOptionsRequest(); | 874 var o = new api.TripOptionsRequest(); |
875 buildCounterTripOptionsRequest++; | 875 buildCounterTripOptionsRequest++; |
876 if (buildCounterTripOptionsRequest < 3) { | 876 if (buildCounterTripOptionsRequest < 3) { |
877 o.maxPrice = "foo"; | 877 o.maxPrice = "foo"; |
878 o.passengers = buildPassengerCounts(); | 878 o.passengers = buildPassengerCounts(); |
879 o.refundable = true; | 879 o.refundable = true; |
880 o.saleCountry = "foo"; | 880 o.saleCountry = "foo"; |
881 o.slice = buildUnnamed37(); | 881 o.slice = buildUnnamed52(); |
882 o.solutions = 42; | 882 o.solutions = 42; |
883 o.ticketingCountry = "foo"; | 883 o.ticketingCountry = "foo"; |
884 } | 884 } |
885 buildCounterTripOptionsRequest--; | 885 buildCounterTripOptionsRequest--; |
886 return o; | 886 return o; |
887 } | 887 } |
888 | 888 |
889 checkTripOptionsRequest(api.TripOptionsRequest o) { | 889 checkTripOptionsRequest(api.TripOptionsRequest o) { |
890 buildCounterTripOptionsRequest++; | 890 buildCounterTripOptionsRequest++; |
891 if (buildCounterTripOptionsRequest < 3) { | 891 if (buildCounterTripOptionsRequest < 3) { |
892 unittest.expect(o.maxPrice, unittest.equals('foo')); | 892 unittest.expect(o.maxPrice, unittest.equals('foo')); |
893 checkPassengerCounts(o.passengers); | 893 checkPassengerCounts(o.passengers); |
894 unittest.expect(o.refundable, unittest.isTrue); | 894 unittest.expect(o.refundable, unittest.isTrue); |
895 unittest.expect(o.saleCountry, unittest.equals('foo')); | 895 unittest.expect(o.saleCountry, unittest.equals('foo')); |
896 checkUnnamed37(o.slice); | 896 checkUnnamed52(o.slice); |
897 unittest.expect(o.solutions, unittest.equals(42)); | 897 unittest.expect(o.solutions, unittest.equals(42)); |
898 unittest.expect(o.ticketingCountry, unittest.equals('foo')); | 898 unittest.expect(o.ticketingCountry, unittest.equals('foo')); |
899 } | 899 } |
900 buildCounterTripOptionsRequest--; | 900 buildCounterTripOptionsRequest--; |
901 } | 901 } |
902 | 902 |
903 buildUnnamed38() { | 903 buildUnnamed53() { |
904 var o = new core.List<api.TripOption>(); | 904 var o = new core.List<api.TripOption>(); |
905 o.add(buildTripOption()); | 905 o.add(buildTripOption()); |
906 o.add(buildTripOption()); | 906 o.add(buildTripOption()); |
907 return o; | 907 return o; |
908 } | 908 } |
909 | 909 |
910 checkUnnamed38(core.List<api.TripOption> o) { | 910 checkUnnamed53(core.List<api.TripOption> o) { |
911 unittest.expect(o, unittest.hasLength(2)); | 911 unittest.expect(o, unittest.hasLength(2)); |
912 checkTripOption(o[0]); | 912 checkTripOption(o[0]); |
913 checkTripOption(o[1]); | 913 checkTripOption(o[1]); |
914 } | 914 } |
915 | 915 |
916 core.int buildCounterTripOptionsResponse = 0; | 916 core.int buildCounterTripOptionsResponse = 0; |
917 buildTripOptionsResponse() { | 917 buildTripOptionsResponse() { |
918 var o = new api.TripOptionsResponse(); | 918 var o = new api.TripOptionsResponse(); |
919 buildCounterTripOptionsResponse++; | 919 buildCounterTripOptionsResponse++; |
920 if (buildCounterTripOptionsResponse < 3) { | 920 if (buildCounterTripOptionsResponse < 3) { |
921 o.data = buildData(); | 921 o.data = buildData(); |
922 o.kind = "foo"; | 922 o.kind = "foo"; |
923 o.requestId = "foo"; | 923 o.requestId = "foo"; |
924 o.tripOption = buildUnnamed38(); | 924 o.tripOption = buildUnnamed53(); |
925 } | 925 } |
926 buildCounterTripOptionsResponse--; | 926 buildCounterTripOptionsResponse--; |
927 return o; | 927 return o; |
928 } | 928 } |
929 | 929 |
930 checkTripOptionsResponse(api.TripOptionsResponse o) { | 930 checkTripOptionsResponse(api.TripOptionsResponse o) { |
931 buildCounterTripOptionsResponse++; | 931 buildCounterTripOptionsResponse++; |
932 if (buildCounterTripOptionsResponse < 3) { | 932 if (buildCounterTripOptionsResponse < 3) { |
933 checkData(o.data); | 933 checkData(o.data); |
934 unittest.expect(o.kind, unittest.equals('foo')); | 934 unittest.expect(o.kind, unittest.equals('foo')); |
935 unittest.expect(o.requestId, unittest.equals('foo')); | 935 unittest.expect(o.requestId, unittest.equals('foo')); |
936 checkUnnamed38(o.tripOption); | 936 checkUnnamed53(o.tripOption); |
937 } | 937 } |
938 buildCounterTripOptionsResponse--; | 938 buildCounterTripOptionsResponse--; |
939 } | 939 } |
940 | 940 |
941 core.int buildCounterTripsSearchRequest = 0; | 941 core.int buildCounterTripsSearchRequest = 0; |
942 buildTripsSearchRequest() { | 942 buildTripsSearchRequest() { |
943 var o = new api.TripsSearchRequest(); | 943 var o = new api.TripsSearchRequest(); |
944 buildCounterTripsSearchRequest++; | 944 buildCounterTripsSearchRequest++; |
945 if (buildCounterTripsSearchRequest < 3) { | 945 if (buildCounterTripsSearchRequest < 3) { |
946 o.request = buildTripOptionsRequest(); | 946 o.request = buildTripOptionsRequest(); |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1244 res.search(arg_request).then(unittest.expectAsync1(((api.TripsSearchRespon
se response) { | 1244 res.search(arg_request).then(unittest.expectAsync1(((api.TripsSearchRespon
se response) { |
1245 checkTripsSearchResponse(response); | 1245 checkTripsSearchResponse(response); |
1246 }))); | 1246 }))); |
1247 }); | 1247 }); |
1248 | 1248 |
1249 }); | 1249 }); |
1250 | 1250 |
1251 | 1251 |
1252 } | 1252 } |
1253 | 1253 |
OLD | NEW |