| OLD | NEW |
| 1 library googleapis.reseller.v1sandbox.test; | 1 library googleapis.reseller.v1sandbox.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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 checkSubscriptionPlan(api.SubscriptionPlan o) { | 229 checkSubscriptionPlan(api.SubscriptionPlan o) { |
| 230 buildCounterSubscriptionPlan++; | 230 buildCounterSubscriptionPlan++; |
| 231 if (buildCounterSubscriptionPlan < 3) { | 231 if (buildCounterSubscriptionPlan < 3) { |
| 232 checkSubscriptionPlanCommitmentInterval(o.commitmentInterval); | 232 checkSubscriptionPlanCommitmentInterval(o.commitmentInterval); |
| 233 unittest.expect(o.isCommitmentPlan, unittest.isTrue); | 233 unittest.expect(o.isCommitmentPlan, unittest.isTrue); |
| 234 unittest.expect(o.planName, unittest.equals('foo')); | 234 unittest.expect(o.planName, unittest.equals('foo')); |
| 235 } | 235 } |
| 236 buildCounterSubscriptionPlan--; | 236 buildCounterSubscriptionPlan--; |
| 237 } | 237 } |
| 238 | 238 |
| 239 buildUnnamed2646() { | 239 buildUnnamed2968() { |
| 240 var o = new core.List<core.String>(); | 240 var o = new core.List<core.String>(); |
| 241 o.add("foo"); | 241 o.add("foo"); |
| 242 o.add("foo"); | 242 o.add("foo"); |
| 243 return o; | 243 return o; |
| 244 } | 244 } |
| 245 | 245 |
| 246 checkUnnamed2646(core.List<core.String> o) { | 246 checkUnnamed2968(core.List<core.String> o) { |
| 247 unittest.expect(o, unittest.hasLength(2)); | 247 unittest.expect(o, unittest.hasLength(2)); |
| 248 unittest.expect(o[0], unittest.equals('foo')); | 248 unittest.expect(o[0], unittest.equals('foo')); |
| 249 unittest.expect(o[1], unittest.equals('foo')); | 249 unittest.expect(o[1], unittest.equals('foo')); |
| 250 } | 250 } |
| 251 | 251 |
| 252 core.int buildCounterSubscriptionTransferInfo = 0; | 252 core.int buildCounterSubscriptionTransferInfo = 0; |
| 253 buildSubscriptionTransferInfo() { | 253 buildSubscriptionTransferInfo() { |
| 254 var o = new api.SubscriptionTransferInfo(); | 254 var o = new api.SubscriptionTransferInfo(); |
| 255 buildCounterSubscriptionTransferInfo++; | 255 buildCounterSubscriptionTransferInfo++; |
| 256 if (buildCounterSubscriptionTransferInfo < 3) { | 256 if (buildCounterSubscriptionTransferInfo < 3) { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 buildCounterSubscriptionTrialSettings--; | 291 buildCounterSubscriptionTrialSettings--; |
| 292 } | 292 } |
| 293 | 293 |
| 294 core.int buildCounterSubscription = 0; | 294 core.int buildCounterSubscription = 0; |
| 295 buildSubscription() { | 295 buildSubscription() { |
| 296 var o = new api.Subscription(); | 296 var o = new api.Subscription(); |
| 297 buildCounterSubscription++; | 297 buildCounterSubscription++; |
| 298 if (buildCounterSubscription < 3) { | 298 if (buildCounterSubscription < 3) { |
| 299 o.billingMethod = "foo"; | 299 o.billingMethod = "foo"; |
| 300 o.creationTime = "foo"; | 300 o.creationTime = "foo"; |
| 301 o.customerDomain = "foo"; |
| 301 o.customerId = "foo"; | 302 o.customerId = "foo"; |
| 302 o.kind = "foo"; | 303 o.kind = "foo"; |
| 303 o.plan = buildSubscriptionPlan(); | 304 o.plan = buildSubscriptionPlan(); |
| 304 o.purchaseOrderId = "foo"; | 305 o.purchaseOrderId = "foo"; |
| 305 o.renewalSettings = buildRenewalSettings(); | 306 o.renewalSettings = buildRenewalSettings(); |
| 306 o.resourceUiUrl = "foo"; | 307 o.resourceUiUrl = "foo"; |
| 307 o.seats = buildSeats(); | 308 o.seats = buildSeats(); |
| 308 o.skuId = "foo"; | 309 o.skuId = "foo"; |
| 309 o.status = "foo"; | 310 o.status = "foo"; |
| 310 o.subscriptionId = "foo"; | 311 o.subscriptionId = "foo"; |
| 311 o.suspensionReasons = buildUnnamed2646(); | 312 o.suspensionReasons = buildUnnamed2968(); |
| 312 o.transferInfo = buildSubscriptionTransferInfo(); | 313 o.transferInfo = buildSubscriptionTransferInfo(); |
| 313 o.trialSettings = buildSubscriptionTrialSettings(); | 314 o.trialSettings = buildSubscriptionTrialSettings(); |
| 314 } | 315 } |
| 315 buildCounterSubscription--; | 316 buildCounterSubscription--; |
| 316 return o; | 317 return o; |
| 317 } | 318 } |
| 318 | 319 |
| 319 checkSubscription(api.Subscription o) { | 320 checkSubscription(api.Subscription o) { |
| 320 buildCounterSubscription++; | 321 buildCounterSubscription++; |
| 321 if (buildCounterSubscription < 3) { | 322 if (buildCounterSubscription < 3) { |
| 322 unittest.expect(o.billingMethod, unittest.equals('foo')); | 323 unittest.expect(o.billingMethod, unittest.equals('foo')); |
| 323 unittest.expect(o.creationTime, unittest.equals('foo')); | 324 unittest.expect(o.creationTime, unittest.equals('foo')); |
| 325 unittest.expect(o.customerDomain, unittest.equals('foo')); |
| 324 unittest.expect(o.customerId, unittest.equals('foo')); | 326 unittest.expect(o.customerId, unittest.equals('foo')); |
| 325 unittest.expect(o.kind, unittest.equals('foo')); | 327 unittest.expect(o.kind, unittest.equals('foo')); |
| 326 checkSubscriptionPlan(o.plan); | 328 checkSubscriptionPlan(o.plan); |
| 327 unittest.expect(o.purchaseOrderId, unittest.equals('foo')); | 329 unittest.expect(o.purchaseOrderId, unittest.equals('foo')); |
| 328 checkRenewalSettings(o.renewalSettings); | 330 checkRenewalSettings(o.renewalSettings); |
| 329 unittest.expect(o.resourceUiUrl, unittest.equals('foo')); | 331 unittest.expect(o.resourceUiUrl, unittest.equals('foo')); |
| 330 checkSeats(o.seats); | 332 checkSeats(o.seats); |
| 331 unittest.expect(o.skuId, unittest.equals('foo')); | 333 unittest.expect(o.skuId, unittest.equals('foo')); |
| 332 unittest.expect(o.status, unittest.equals('foo')); | 334 unittest.expect(o.status, unittest.equals('foo')); |
| 333 unittest.expect(o.subscriptionId, unittest.equals('foo')); | 335 unittest.expect(o.subscriptionId, unittest.equals('foo')); |
| 334 checkUnnamed2646(o.suspensionReasons); | 336 checkUnnamed2968(o.suspensionReasons); |
| 335 checkSubscriptionTransferInfo(o.transferInfo); | 337 checkSubscriptionTransferInfo(o.transferInfo); |
| 336 checkSubscriptionTrialSettings(o.trialSettings); | 338 checkSubscriptionTrialSettings(o.trialSettings); |
| 337 } | 339 } |
| 338 buildCounterSubscription--; | 340 buildCounterSubscription--; |
| 339 } | 341 } |
| 340 | 342 |
| 341 buildUnnamed2647() { | 343 buildUnnamed2969() { |
| 342 var o = new core.List<api.Subscription>(); | 344 var o = new core.List<api.Subscription>(); |
| 343 o.add(buildSubscription()); | 345 o.add(buildSubscription()); |
| 344 o.add(buildSubscription()); | 346 o.add(buildSubscription()); |
| 345 return o; | 347 return o; |
| 346 } | 348 } |
| 347 | 349 |
| 348 checkUnnamed2647(core.List<api.Subscription> o) { | 350 checkUnnamed2969(core.List<api.Subscription> o) { |
| 349 unittest.expect(o, unittest.hasLength(2)); | 351 unittest.expect(o, unittest.hasLength(2)); |
| 350 checkSubscription(o[0]); | 352 checkSubscription(o[0]); |
| 351 checkSubscription(o[1]); | 353 checkSubscription(o[1]); |
| 352 } | 354 } |
| 353 | 355 |
| 354 core.int buildCounterSubscriptions = 0; | 356 core.int buildCounterSubscriptions = 0; |
| 355 buildSubscriptions() { | 357 buildSubscriptions() { |
| 356 var o = new api.Subscriptions(); | 358 var o = new api.Subscriptions(); |
| 357 buildCounterSubscriptions++; | 359 buildCounterSubscriptions++; |
| 358 if (buildCounterSubscriptions < 3) { | 360 if (buildCounterSubscriptions < 3) { |
| 359 o.kind = "foo"; | 361 o.kind = "foo"; |
| 360 o.nextPageToken = "foo"; | 362 o.nextPageToken = "foo"; |
| 361 o.subscriptions = buildUnnamed2647(); | 363 o.subscriptions = buildUnnamed2969(); |
| 362 } | 364 } |
| 363 buildCounterSubscriptions--; | 365 buildCounterSubscriptions--; |
| 364 return o; | 366 return o; |
| 365 } | 367 } |
| 366 | 368 |
| 367 checkSubscriptions(api.Subscriptions o) { | 369 checkSubscriptions(api.Subscriptions o) { |
| 368 buildCounterSubscriptions++; | 370 buildCounterSubscriptions++; |
| 369 if (buildCounterSubscriptions < 3) { | 371 if (buildCounterSubscriptions < 3) { |
| 370 unittest.expect(o.kind, unittest.equals('foo')); | 372 unittest.expect(o.kind, unittest.equals('foo')); |
| 371 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 373 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 372 checkUnnamed2647(o.subscriptions); | 374 checkUnnamed2969(o.subscriptions); |
| 373 } | 375 } |
| 374 buildCounterSubscriptions--; | 376 buildCounterSubscriptions--; |
| 375 } | 377 } |
| 376 | 378 |
| 377 | 379 |
| 378 main() { | 380 main() { |
| 379 unittest.group("obj-schema-Address", () { | 381 unittest.group("obj-schema-Address", () { |
| 380 unittest.test("to-json--from-json", () { | 382 unittest.test("to-json--from-json", () { |
| 381 var o = buildAddress(); | 383 var o = buildAddress(); |
| 382 var od = new api.Address.fromJson(o.toJson()); | 384 var od = new api.Address.fromJson(o.toJson()); |
| (...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1290 res.suspend(arg_customerId, arg_subscriptionId).then(unittest.expectAsync(
((api.Subscription response) { | 1292 res.suspend(arg_customerId, arg_subscriptionId).then(unittest.expectAsync(
((api.Subscription response) { |
| 1291 checkSubscription(response); | 1293 checkSubscription(response); |
| 1292 }))); | 1294 }))); |
| 1293 }); | 1295 }); |
| 1294 | 1296 |
| 1295 }); | 1297 }); |
| 1296 | 1298 |
| 1297 | 1299 |
| 1298 } | 1300 } |
| 1299 | 1301 |
| OLD | NEW |