| OLD | NEW | 
|     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; | 
|    11 import 'package:googleapis/common/common.dart' as common; |    11 import 'package:googleapis/common/common.dart' as common; | 
|    12 import 'package:googleapis/src/common_internal.dart' as common_internal; |    12 import 'package:googleapis/src/common_internal.dart' as common_internal; | 
|    13 import '../common/common_internal_test.dart' as common_test; |    13 import '../common/common_internal_test.dart' as common_test; | 
|    14  |    14  | 
|    15 import 'package:googleapis/civicinfo/v2.dart' as api; |    15 import 'package:googleapis/civicinfo/v2.dart' as api; | 
|    16  |    16  | 
|    17  |    17  | 
|    18  |    18  | 
|    19 buildUnnamed182() { |    19 buildUnnamed981() { | 
|    20   var o = new core.List<api.Source>(); |    20   var o = new core.List<api.Source>(); | 
|    21   o.add(buildSource()); |    21   o.add(buildSource()); | 
|    22   o.add(buildSource()); |    22   o.add(buildSource()); | 
|    23   return o; |    23   return o; | 
|    24 } |    24 } | 
|    25  |    25  | 
|    26 checkUnnamed182(core.List<api.Source> o) { |    26 checkUnnamed981(core.List<api.Source> o) { | 
|    27   unittest.expect(o, unittest.hasLength(2)); |    27   unittest.expect(o, unittest.hasLength(2)); | 
|    28   checkSource(o[0]); |    28   checkSource(o[0]); | 
|    29   checkSource(o[1]); |    29   checkSource(o[1]); | 
|    30 } |    30 } | 
|    31  |    31  | 
|    32 core.int buildCounterAdministrationRegion = 0; |    32 core.int buildCounterAdministrationRegion = 0; | 
|    33 buildAdministrationRegion() { |    33 buildAdministrationRegion() { | 
|    34   var o = new api.AdministrationRegion(); |    34   var o = new api.AdministrationRegion(); | 
|    35   buildCounterAdministrationRegion++; |    35   buildCounterAdministrationRegion++; | 
|    36   if (buildCounterAdministrationRegion < 3) { |    36   if (buildCounterAdministrationRegion < 3) { | 
|    37     o.electionAdministrationBody = buildAdministrativeBody(); |    37     o.electionAdministrationBody = buildAdministrativeBody(); | 
|    38     o.id = "foo"; |    38     o.id = "foo"; | 
|    39     o.localJurisdiction = buildAdministrationRegion(); |    39     o.localJurisdiction = buildAdministrationRegion(); | 
|    40     o.name = "foo"; |    40     o.name = "foo"; | 
|    41     o.sources = buildUnnamed182(); |    41     o.sources = buildUnnamed981(); | 
|    42   } |    42   } | 
|    43   buildCounterAdministrationRegion--; |    43   buildCounterAdministrationRegion--; | 
|    44   return o; |    44   return o; | 
|    45 } |    45 } | 
|    46  |    46  | 
|    47 checkAdministrationRegion(api.AdministrationRegion o) { |    47 checkAdministrationRegion(api.AdministrationRegion o) { | 
|    48   buildCounterAdministrationRegion++; |    48   buildCounterAdministrationRegion++; | 
|    49   if (buildCounterAdministrationRegion < 3) { |    49   if (buildCounterAdministrationRegion < 3) { | 
|    50     checkAdministrativeBody(o.electionAdministrationBody); |    50     checkAdministrativeBody(o.electionAdministrationBody); | 
|    51     unittest.expect(o.id, unittest.equals('foo')); |    51     unittest.expect(o.id, unittest.equals('foo')); | 
|    52     checkAdministrationRegion(o.localJurisdiction); |    52     checkAdministrationRegion(o.localJurisdiction); | 
|    53     unittest.expect(o.name, unittest.equals('foo')); |    53     unittest.expect(o.name, unittest.equals('foo')); | 
|    54     checkUnnamed182(o.sources); |    54     checkUnnamed981(o.sources); | 
|    55   } |    55   } | 
|    56   buildCounterAdministrationRegion--; |    56   buildCounterAdministrationRegion--; | 
|    57 } |    57 } | 
|    58  |    58  | 
|    59 buildUnnamed183() { |    59 buildUnnamed982() { | 
|    60   var o = new core.List<api.ElectionOfficial>(); |    60   var o = new core.List<api.ElectionOfficial>(); | 
|    61   o.add(buildElectionOfficial()); |    61   o.add(buildElectionOfficial()); | 
|    62   o.add(buildElectionOfficial()); |    62   o.add(buildElectionOfficial()); | 
|    63   return o; |    63   return o; | 
|    64 } |    64 } | 
|    65  |    65  | 
|    66 checkUnnamed183(core.List<api.ElectionOfficial> o) { |    66 checkUnnamed982(core.List<api.ElectionOfficial> o) { | 
|    67   unittest.expect(o, unittest.hasLength(2)); |    67   unittest.expect(o, unittest.hasLength(2)); | 
|    68   checkElectionOfficial(o[0]); |    68   checkElectionOfficial(o[0]); | 
|    69   checkElectionOfficial(o[1]); |    69   checkElectionOfficial(o[1]); | 
|    70 } |    70 } | 
|    71  |    71  | 
|    72 buildUnnamed184() { |    72 buildUnnamed983() { | 
|    73   var o = new core.List<core.String>(); |    73   var o = new core.List<core.String>(); | 
|    74   o.add("foo"); |    74   o.add("foo"); | 
|    75   o.add("foo"); |    75   o.add("foo"); | 
|    76   return o; |    76   return o; | 
|    77 } |    77 } | 
|    78  |    78  | 
|    79 checkUnnamed184(core.List<core.String> o) { |    79 checkUnnamed983(core.List<core.String> o) { | 
|    80   unittest.expect(o, unittest.hasLength(2)); |    80   unittest.expect(o, unittest.hasLength(2)); | 
|    81   unittest.expect(o[0], unittest.equals('foo')); |    81   unittest.expect(o[0], unittest.equals('foo')); | 
|    82   unittest.expect(o[1], unittest.equals('foo')); |    82   unittest.expect(o[1], unittest.equals('foo')); | 
|    83 } |    83 } | 
|    84  |    84  | 
|    85 core.int buildCounterAdministrativeBody = 0; |    85 core.int buildCounterAdministrativeBody = 0; | 
|    86 buildAdministrativeBody() { |    86 buildAdministrativeBody() { | 
|    87   var o = new api.AdministrativeBody(); |    87   var o = new api.AdministrativeBody(); | 
|    88   buildCounterAdministrativeBody++; |    88   buildCounterAdministrativeBody++; | 
|    89   if (buildCounterAdministrativeBody < 3) { |    89   if (buildCounterAdministrativeBody < 3) { | 
|    90     o.absenteeVotingInfoUrl = "foo"; |    90     o.absenteeVotingInfoUrl = "foo"; | 
|    91     o.ballotInfoUrl = "foo"; |    91     o.ballotInfoUrl = "foo"; | 
|    92     o.correspondenceAddress = buildSimpleAddressType(); |    92     o.correspondenceAddress = buildSimpleAddressType(); | 
|    93     o.electionInfoUrl = "foo"; |    93     o.electionInfoUrl = "foo"; | 
|    94     o.electionOfficials = buildUnnamed183(); |    94     o.electionOfficials = buildUnnamed982(); | 
|    95     o.electionRegistrationConfirmationUrl = "foo"; |    95     o.electionRegistrationConfirmationUrl = "foo"; | 
|    96     o.electionRegistrationUrl = "foo"; |    96     o.electionRegistrationUrl = "foo"; | 
|    97     o.electionRulesUrl = "foo"; |    97     o.electionRulesUrl = "foo"; | 
|    98     o.hoursOfOperation = "foo"; |    98     o.hoursOfOperation = "foo"; | 
|    99     o.name = "foo"; |    99     o.name = "foo"; | 
|   100     o.physicalAddress = buildSimpleAddressType(); |   100     o.physicalAddress = buildSimpleAddressType(); | 
|   101     o.voterServices = buildUnnamed184(); |   101     o.voterServices = buildUnnamed983(); | 
|   102     o.votingLocationFinderUrl = "foo"; |   102     o.votingLocationFinderUrl = "foo"; | 
|   103   } |   103   } | 
|   104   buildCounterAdministrativeBody--; |   104   buildCounterAdministrativeBody--; | 
|   105   return o; |   105   return o; | 
|   106 } |   106 } | 
|   107  |   107  | 
|   108 checkAdministrativeBody(api.AdministrativeBody o) { |   108 checkAdministrativeBody(api.AdministrativeBody o) { | 
|   109   buildCounterAdministrativeBody++; |   109   buildCounterAdministrativeBody++; | 
|   110   if (buildCounterAdministrativeBody < 3) { |   110   if (buildCounterAdministrativeBody < 3) { | 
|   111     unittest.expect(o.absenteeVotingInfoUrl, unittest.equals('foo')); |   111     unittest.expect(o.absenteeVotingInfoUrl, unittest.equals('foo')); | 
|   112     unittest.expect(o.ballotInfoUrl, unittest.equals('foo')); |   112     unittest.expect(o.ballotInfoUrl, unittest.equals('foo')); | 
|   113     checkSimpleAddressType(o.correspondenceAddress); |   113     checkSimpleAddressType(o.correspondenceAddress); | 
|   114     unittest.expect(o.electionInfoUrl, unittest.equals('foo')); |   114     unittest.expect(o.electionInfoUrl, unittest.equals('foo')); | 
|   115     checkUnnamed183(o.electionOfficials); |   115     checkUnnamed982(o.electionOfficials); | 
|   116     unittest.expect(o.electionRegistrationConfirmationUrl, unittest.equals('foo'
      )); |   116     unittest.expect(o.electionRegistrationConfirmationUrl, unittest.equals('foo'
      )); | 
|   117     unittest.expect(o.electionRegistrationUrl, unittest.equals('foo')); |   117     unittest.expect(o.electionRegistrationUrl, unittest.equals('foo')); | 
|   118     unittest.expect(o.electionRulesUrl, unittest.equals('foo')); |   118     unittest.expect(o.electionRulesUrl, unittest.equals('foo')); | 
|   119     unittest.expect(o.hoursOfOperation, unittest.equals('foo')); |   119     unittest.expect(o.hoursOfOperation, unittest.equals('foo')); | 
|   120     unittest.expect(o.name, unittest.equals('foo')); |   120     unittest.expect(o.name, unittest.equals('foo')); | 
|   121     checkSimpleAddressType(o.physicalAddress); |   121     checkSimpleAddressType(o.physicalAddress); | 
|   122     checkUnnamed184(o.voterServices); |   122     checkUnnamed983(o.voterServices); | 
|   123     unittest.expect(o.votingLocationFinderUrl, unittest.equals('foo')); |   123     unittest.expect(o.votingLocationFinderUrl, unittest.equals('foo')); | 
|   124   } |   124   } | 
|   125   buildCounterAdministrativeBody--; |   125   buildCounterAdministrativeBody--; | 
|   126 } |   126 } | 
|   127  |   127  | 
|   128 buildUnnamed185() { |   128 buildUnnamed984() { | 
|   129   var o = new core.List<api.Channel>(); |   129   var o = new core.List<api.Channel>(); | 
|   130   o.add(buildChannel()); |   130   o.add(buildChannel()); | 
|   131   o.add(buildChannel()); |   131   o.add(buildChannel()); | 
|   132   return o; |   132   return o; | 
|   133 } |   133 } | 
|   134  |   134  | 
|   135 checkUnnamed185(core.List<api.Channel> o) { |   135 checkUnnamed984(core.List<api.Channel> o) { | 
|   136   unittest.expect(o, unittest.hasLength(2)); |   136   unittest.expect(o, unittest.hasLength(2)); | 
|   137   checkChannel(o[0]); |   137   checkChannel(o[0]); | 
|   138   checkChannel(o[1]); |   138   checkChannel(o[1]); | 
|   139 } |   139 } | 
|   140  |   140  | 
|   141 core.int buildCounterCandidate = 0; |   141 core.int buildCounterCandidate = 0; | 
|   142 buildCandidate() { |   142 buildCandidate() { | 
|   143   var o = new api.Candidate(); |   143   var o = new api.Candidate(); | 
|   144   buildCounterCandidate++; |   144   buildCounterCandidate++; | 
|   145   if (buildCounterCandidate < 3) { |   145   if (buildCounterCandidate < 3) { | 
|   146     o.candidateUrl = "foo"; |   146     o.candidateUrl = "foo"; | 
|   147     o.channels = buildUnnamed185(); |   147     o.channels = buildUnnamed984(); | 
|   148     o.email = "foo"; |   148     o.email = "foo"; | 
|   149     o.name = "foo"; |   149     o.name = "foo"; | 
|   150     o.orderOnBallot = "foo"; |   150     o.orderOnBallot = "foo"; | 
|   151     o.party = "foo"; |   151     o.party = "foo"; | 
|   152     o.phone = "foo"; |   152     o.phone = "foo"; | 
|   153     o.photoUrl = "foo"; |   153     o.photoUrl = "foo"; | 
|   154   } |   154   } | 
|   155   buildCounterCandidate--; |   155   buildCounterCandidate--; | 
|   156   return o; |   156   return o; | 
|   157 } |   157 } | 
|   158  |   158  | 
|   159 checkCandidate(api.Candidate o) { |   159 checkCandidate(api.Candidate o) { | 
|   160   buildCounterCandidate++; |   160   buildCounterCandidate++; | 
|   161   if (buildCounterCandidate < 3) { |   161   if (buildCounterCandidate < 3) { | 
|   162     unittest.expect(o.candidateUrl, unittest.equals('foo')); |   162     unittest.expect(o.candidateUrl, unittest.equals('foo')); | 
|   163     checkUnnamed185(o.channels); |   163     checkUnnamed984(o.channels); | 
|   164     unittest.expect(o.email, unittest.equals('foo')); |   164     unittest.expect(o.email, unittest.equals('foo')); | 
|   165     unittest.expect(o.name, unittest.equals('foo')); |   165     unittest.expect(o.name, unittest.equals('foo')); | 
|   166     unittest.expect(o.orderOnBallot, unittest.equals('foo')); |   166     unittest.expect(o.orderOnBallot, unittest.equals('foo')); | 
|   167     unittest.expect(o.party, unittest.equals('foo')); |   167     unittest.expect(o.party, unittest.equals('foo')); | 
|   168     unittest.expect(o.phone, unittest.equals('foo')); |   168     unittest.expect(o.phone, unittest.equals('foo')); | 
|   169     unittest.expect(o.photoUrl, unittest.equals('foo')); |   169     unittest.expect(o.photoUrl, unittest.equals('foo')); | 
|   170   } |   170   } | 
|   171   buildCounterCandidate--; |   171   buildCounterCandidate--; | 
|   172 } |   172 } | 
|   173  |   173  | 
| (...skipping 11 matching lines...) Expand all  Loading... | 
|   185  |   185  | 
|   186 checkChannel(api.Channel o) { |   186 checkChannel(api.Channel o) { | 
|   187   buildCounterChannel++; |   187   buildCounterChannel++; | 
|   188   if (buildCounterChannel < 3) { |   188   if (buildCounterChannel < 3) { | 
|   189     unittest.expect(o.id, unittest.equals('foo')); |   189     unittest.expect(o.id, unittest.equals('foo')); | 
|   190     unittest.expect(o.type, unittest.equals('foo')); |   190     unittest.expect(o.type, unittest.equals('foo')); | 
|   191   } |   191   } | 
|   192   buildCounterChannel--; |   192   buildCounterChannel--; | 
|   193 } |   193 } | 
|   194  |   194  | 
|   195 buildUnnamed186() { |   195 buildUnnamed985() { | 
|   196   var o = new core.List<api.Candidate>(); |   196   var o = new core.List<api.Candidate>(); | 
|   197   o.add(buildCandidate()); |   197   o.add(buildCandidate()); | 
|   198   o.add(buildCandidate()); |   198   o.add(buildCandidate()); | 
|   199   return o; |   199   return o; | 
|   200 } |   200 } | 
|   201  |   201  | 
|   202 checkUnnamed186(core.List<api.Candidate> o) { |   202 checkUnnamed985(core.List<api.Candidate> o) { | 
|   203   unittest.expect(o, unittest.hasLength(2)); |   203   unittest.expect(o, unittest.hasLength(2)); | 
|   204   checkCandidate(o[0]); |   204   checkCandidate(o[0]); | 
|   205   checkCandidate(o[1]); |   205   checkCandidate(o[1]); | 
|   206 } |   206 } | 
|   207  |   207  | 
|   208 buildUnnamed187() { |   208 buildUnnamed986() { | 
|   209   var o = new core.List<core.String>(); |   209   var o = new core.List<core.String>(); | 
|   210   o.add("foo"); |   210   o.add("foo"); | 
|   211   o.add("foo"); |   211   o.add("foo"); | 
|   212   return o; |   212   return o; | 
|   213 } |   213 } | 
|   214  |   214  | 
|   215 checkUnnamed187(core.List<core.String> o) { |   215 checkUnnamed986(core.List<core.String> o) { | 
|   216   unittest.expect(o, unittest.hasLength(2)); |   216   unittest.expect(o, unittest.hasLength(2)); | 
|   217   unittest.expect(o[0], unittest.equals('foo')); |   217   unittest.expect(o[0], unittest.equals('foo')); | 
|   218   unittest.expect(o[1], unittest.equals('foo')); |   218   unittest.expect(o[1], unittest.equals('foo')); | 
|   219 } |   219 } | 
|   220  |   220  | 
|   221 buildUnnamed188() { |   221 buildUnnamed987() { | 
|   222   var o = new core.List<core.String>(); |   222   var o = new core.List<core.String>(); | 
|   223   o.add("foo"); |   223   o.add("foo"); | 
|   224   o.add("foo"); |   224   o.add("foo"); | 
|   225   return o; |   225   return o; | 
|   226 } |   226 } | 
|   227  |   227  | 
|   228 checkUnnamed188(core.List<core.String> o) { |   228 checkUnnamed987(core.List<core.String> o) { | 
|   229   unittest.expect(o, unittest.hasLength(2)); |   229   unittest.expect(o, unittest.hasLength(2)); | 
|   230   unittest.expect(o[0], unittest.equals('foo')); |   230   unittest.expect(o[0], unittest.equals('foo')); | 
|   231   unittest.expect(o[1], unittest.equals('foo')); |   231   unittest.expect(o[1], unittest.equals('foo')); | 
|   232 } |   232 } | 
|   233  |   233  | 
|   234 buildUnnamed189() { |   234 buildUnnamed988() { | 
|   235   var o = new core.List<api.Source>(); |   235   var o = new core.List<api.Source>(); | 
|   236   o.add(buildSource()); |   236   o.add(buildSource()); | 
|   237   o.add(buildSource()); |   237   o.add(buildSource()); | 
|   238   return o; |   238   return o; | 
|   239 } |   239 } | 
|   240  |   240  | 
|   241 checkUnnamed189(core.List<api.Source> o) { |   241 checkUnnamed988(core.List<api.Source> o) { | 
|   242   unittest.expect(o, unittest.hasLength(2)); |   242   unittest.expect(o, unittest.hasLength(2)); | 
|   243   checkSource(o[0]); |   243   checkSource(o[0]); | 
|   244   checkSource(o[1]); |   244   checkSource(o[1]); | 
|   245 } |   245 } | 
|   246  |   246  | 
|   247 core.int buildCounterContest = 0; |   247 core.int buildCounterContest = 0; | 
|   248 buildContest() { |   248 buildContest() { | 
|   249   var o = new api.Contest(); |   249   var o = new api.Contest(); | 
|   250   buildCounterContest++; |   250   buildCounterContest++; | 
|   251   if (buildCounterContest < 3) { |   251   if (buildCounterContest < 3) { | 
|   252     o.ballotPlacement = "foo"; |   252     o.ballotPlacement = "foo"; | 
|   253     o.candidates = buildUnnamed186(); |   253     o.candidates = buildUnnamed985(); | 
|   254     o.district = buildElectoralDistrict(); |   254     o.district = buildElectoralDistrict(); | 
|   255     o.electorateSpecifications = "foo"; |   255     o.electorateSpecifications = "foo"; | 
|   256     o.id = "foo"; |   256     o.id = "foo"; | 
|   257     o.level = buildUnnamed187(); |   257     o.level = buildUnnamed986(); | 
|   258     o.numberElected = "foo"; |   258     o.numberElected = "foo"; | 
|   259     o.numberVotingFor = "foo"; |   259     o.numberVotingFor = "foo"; | 
|   260     o.office = "foo"; |   260     o.office = "foo"; | 
|   261     o.primaryParty = "foo"; |   261     o.primaryParty = "foo"; | 
|   262     o.referendumSubtitle = "foo"; |   262     o.referendumSubtitle = "foo"; | 
|   263     o.referendumTitle = "foo"; |   263     o.referendumTitle = "foo"; | 
|   264     o.referendumUrl = "foo"; |   264     o.referendumUrl = "foo"; | 
|   265     o.roles = buildUnnamed188(); |   265     o.roles = buildUnnamed987(); | 
|   266     o.sources = buildUnnamed189(); |   266     o.sources = buildUnnamed988(); | 
|   267     o.special = "foo"; |   267     o.special = "foo"; | 
|   268     o.type = "foo"; |   268     o.type = "foo"; | 
|   269   } |   269   } | 
|   270   buildCounterContest--; |   270   buildCounterContest--; | 
|   271   return o; |   271   return o; | 
|   272 } |   272 } | 
|   273  |   273  | 
|   274 checkContest(api.Contest o) { |   274 checkContest(api.Contest o) { | 
|   275   buildCounterContest++; |   275   buildCounterContest++; | 
|   276   if (buildCounterContest < 3) { |   276   if (buildCounterContest < 3) { | 
|   277     unittest.expect(o.ballotPlacement, unittest.equals('foo')); |   277     unittest.expect(o.ballotPlacement, unittest.equals('foo')); | 
|   278     checkUnnamed186(o.candidates); |   278     checkUnnamed985(o.candidates); | 
|   279     checkElectoralDistrict(o.district); |   279     checkElectoralDistrict(o.district); | 
|   280     unittest.expect(o.electorateSpecifications, unittest.equals('foo')); |   280     unittest.expect(o.electorateSpecifications, unittest.equals('foo')); | 
|   281     unittest.expect(o.id, unittest.equals('foo')); |   281     unittest.expect(o.id, unittest.equals('foo')); | 
|   282     checkUnnamed187(o.level); |   282     checkUnnamed986(o.level); | 
|   283     unittest.expect(o.numberElected, unittest.equals('foo')); |   283     unittest.expect(o.numberElected, unittest.equals('foo')); | 
|   284     unittest.expect(o.numberVotingFor, unittest.equals('foo')); |   284     unittest.expect(o.numberVotingFor, unittest.equals('foo')); | 
|   285     unittest.expect(o.office, unittest.equals('foo')); |   285     unittest.expect(o.office, unittest.equals('foo')); | 
|   286     unittest.expect(o.primaryParty, unittest.equals('foo')); |   286     unittest.expect(o.primaryParty, unittest.equals('foo')); | 
|   287     unittest.expect(o.referendumSubtitle, unittest.equals('foo')); |   287     unittest.expect(o.referendumSubtitle, unittest.equals('foo')); | 
|   288     unittest.expect(o.referendumTitle, unittest.equals('foo')); |   288     unittest.expect(o.referendumTitle, unittest.equals('foo')); | 
|   289     unittest.expect(o.referendumUrl, unittest.equals('foo')); |   289     unittest.expect(o.referendumUrl, unittest.equals('foo')); | 
|   290     checkUnnamed188(o.roles); |   290     checkUnnamed987(o.roles); | 
|   291     checkUnnamed189(o.sources); |   291     checkUnnamed988(o.sources); | 
|   292     unittest.expect(o.special, unittest.equals('foo')); |   292     unittest.expect(o.special, unittest.equals('foo')); | 
|   293     unittest.expect(o.type, unittest.equals('foo')); |   293     unittest.expect(o.type, unittest.equals('foo')); | 
|   294   } |   294   } | 
|   295   buildCounterContest--; |   295   buildCounterContest--; | 
|   296 } |   296 } | 
|   297  |   297  | 
|   298 buildUnnamed190() { |   298 buildUnnamed989() { | 
|   299   var o = new core.List<api.DivisionSearchResult>(); |   299   var o = new core.List<api.DivisionSearchResult>(); | 
|   300   o.add(buildDivisionSearchResult()); |   300   o.add(buildDivisionSearchResult()); | 
|   301   o.add(buildDivisionSearchResult()); |   301   o.add(buildDivisionSearchResult()); | 
|   302   return o; |   302   return o; | 
|   303 } |   303 } | 
|   304  |   304  | 
|   305 checkUnnamed190(core.List<api.DivisionSearchResult> o) { |   305 checkUnnamed989(core.List<api.DivisionSearchResult> o) { | 
|   306   unittest.expect(o, unittest.hasLength(2)); |   306   unittest.expect(o, unittest.hasLength(2)); | 
|   307   checkDivisionSearchResult(o[0]); |   307   checkDivisionSearchResult(o[0]); | 
|   308   checkDivisionSearchResult(o[1]); |   308   checkDivisionSearchResult(o[1]); | 
|   309 } |   309 } | 
|   310  |   310  | 
|   311 core.int buildCounterDivisionSearchResponse = 0; |   311 core.int buildCounterDivisionSearchResponse = 0; | 
|   312 buildDivisionSearchResponse() { |   312 buildDivisionSearchResponse() { | 
|   313   var o = new api.DivisionSearchResponse(); |   313   var o = new api.DivisionSearchResponse(); | 
|   314   buildCounterDivisionSearchResponse++; |   314   buildCounterDivisionSearchResponse++; | 
|   315   if (buildCounterDivisionSearchResponse < 3) { |   315   if (buildCounterDivisionSearchResponse < 3) { | 
|   316     o.kind = "foo"; |   316     o.kind = "foo"; | 
|   317     o.results = buildUnnamed190(); |   317     o.results = buildUnnamed989(); | 
|   318   } |   318   } | 
|   319   buildCounterDivisionSearchResponse--; |   319   buildCounterDivisionSearchResponse--; | 
|   320   return o; |   320   return o; | 
|   321 } |   321 } | 
|   322  |   322  | 
|   323 checkDivisionSearchResponse(api.DivisionSearchResponse o) { |   323 checkDivisionSearchResponse(api.DivisionSearchResponse o) { | 
|   324   buildCounterDivisionSearchResponse++; |   324   buildCounterDivisionSearchResponse++; | 
|   325   if (buildCounterDivisionSearchResponse < 3) { |   325   if (buildCounterDivisionSearchResponse < 3) { | 
|   326     unittest.expect(o.kind, unittest.equals('foo')); |   326     unittest.expect(o.kind, unittest.equals('foo')); | 
|   327     checkUnnamed190(o.results); |   327     checkUnnamed989(o.results); | 
|   328   } |   328   } | 
|   329   buildCounterDivisionSearchResponse--; |   329   buildCounterDivisionSearchResponse--; | 
|   330 } |   330 } | 
|   331  |   331  | 
|   332 buildUnnamed191() { |   332 buildUnnamed990() { | 
|   333   var o = new core.List<core.String>(); |   333   var o = new core.List<core.String>(); | 
|   334   o.add("foo"); |   334   o.add("foo"); | 
|   335   o.add("foo"); |   335   o.add("foo"); | 
|   336   return o; |   336   return o; | 
|   337 } |   337 } | 
|   338  |   338  | 
|   339 checkUnnamed191(core.List<core.String> o) { |   339 checkUnnamed990(core.List<core.String> o) { | 
|   340   unittest.expect(o, unittest.hasLength(2)); |   340   unittest.expect(o, unittest.hasLength(2)); | 
|   341   unittest.expect(o[0], unittest.equals('foo')); |   341   unittest.expect(o[0], unittest.equals('foo')); | 
|   342   unittest.expect(o[1], unittest.equals('foo')); |   342   unittest.expect(o[1], unittest.equals('foo')); | 
|   343 } |   343 } | 
|   344  |   344  | 
|   345 core.int buildCounterDivisionSearchResult = 0; |   345 core.int buildCounterDivisionSearchResult = 0; | 
|   346 buildDivisionSearchResult() { |   346 buildDivisionSearchResult() { | 
|   347   var o = new api.DivisionSearchResult(); |   347   var o = new api.DivisionSearchResult(); | 
|   348   buildCounterDivisionSearchResult++; |   348   buildCounterDivisionSearchResult++; | 
|   349   if (buildCounterDivisionSearchResult < 3) { |   349   if (buildCounterDivisionSearchResult < 3) { | 
|   350     o.aliases = buildUnnamed191(); |   350     o.aliases = buildUnnamed990(); | 
|   351     o.name = "foo"; |   351     o.name = "foo"; | 
|   352     o.ocdId = "foo"; |   352     o.ocdId = "foo"; | 
|   353   } |   353   } | 
|   354   buildCounterDivisionSearchResult--; |   354   buildCounterDivisionSearchResult--; | 
|   355   return o; |   355   return o; | 
|   356 } |   356 } | 
|   357  |   357  | 
|   358 checkDivisionSearchResult(api.DivisionSearchResult o) { |   358 checkDivisionSearchResult(api.DivisionSearchResult o) { | 
|   359   buildCounterDivisionSearchResult++; |   359   buildCounterDivisionSearchResult++; | 
|   360   if (buildCounterDivisionSearchResult < 3) { |   360   if (buildCounterDivisionSearchResult < 3) { | 
|   361     checkUnnamed191(o.aliases); |   361     checkUnnamed990(o.aliases); | 
|   362     unittest.expect(o.name, unittest.equals('foo')); |   362     unittest.expect(o.name, unittest.equals('foo')); | 
|   363     unittest.expect(o.ocdId, unittest.equals('foo')); |   363     unittest.expect(o.ocdId, unittest.equals('foo')); | 
|   364   } |   364   } | 
|   365   buildCounterDivisionSearchResult--; |   365   buildCounterDivisionSearchResult--; | 
|   366 } |   366 } | 
|   367  |   367  | 
|   368 core.int buildCounterElection = 0; |   368 core.int buildCounterElection = 0; | 
|   369 buildElection() { |   369 buildElection() { | 
|   370   var o = new api.Election(); |   370   var o = new api.Election(); | 
|   371   buildCounterElection++; |   371   buildCounterElection++; | 
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   408   if (buildCounterElectionOfficial < 3) { |   408   if (buildCounterElectionOfficial < 3) { | 
|   409     unittest.expect(o.emailAddress, unittest.equals('foo')); |   409     unittest.expect(o.emailAddress, unittest.equals('foo')); | 
|   410     unittest.expect(o.faxNumber, unittest.equals('foo')); |   410     unittest.expect(o.faxNumber, unittest.equals('foo')); | 
|   411     unittest.expect(o.name, unittest.equals('foo')); |   411     unittest.expect(o.name, unittest.equals('foo')); | 
|   412     unittest.expect(o.officePhoneNumber, unittest.equals('foo')); |   412     unittest.expect(o.officePhoneNumber, unittest.equals('foo')); | 
|   413     unittest.expect(o.title, unittest.equals('foo')); |   413     unittest.expect(o.title, unittest.equals('foo')); | 
|   414   } |   414   } | 
|   415   buildCounterElectionOfficial--; |   415   buildCounterElectionOfficial--; | 
|   416 } |   416 } | 
|   417  |   417  | 
|   418 buildUnnamed192() { |   418 buildUnnamed991() { | 
|   419   var o = new core.List<api.Election>(); |   419   var o = new core.List<api.Election>(); | 
|   420   o.add(buildElection()); |   420   o.add(buildElection()); | 
|   421   o.add(buildElection()); |   421   o.add(buildElection()); | 
|   422   return o; |   422   return o; | 
|   423 } |   423 } | 
|   424  |   424  | 
|   425 checkUnnamed192(core.List<api.Election> o) { |   425 checkUnnamed991(core.List<api.Election> o) { | 
|   426   unittest.expect(o, unittest.hasLength(2)); |   426   unittest.expect(o, unittest.hasLength(2)); | 
|   427   checkElection(o[0]); |   427   checkElection(o[0]); | 
|   428   checkElection(o[1]); |   428   checkElection(o[1]); | 
|   429 } |   429 } | 
|   430  |   430  | 
|   431 core.int buildCounterElectionsQueryResponse = 0; |   431 core.int buildCounterElectionsQueryResponse = 0; | 
|   432 buildElectionsQueryResponse() { |   432 buildElectionsQueryResponse() { | 
|   433   var o = new api.ElectionsQueryResponse(); |   433   var o = new api.ElectionsQueryResponse(); | 
|   434   buildCounterElectionsQueryResponse++; |   434   buildCounterElectionsQueryResponse++; | 
|   435   if (buildCounterElectionsQueryResponse < 3) { |   435   if (buildCounterElectionsQueryResponse < 3) { | 
|   436     o.elections = buildUnnamed192(); |   436     o.elections = buildUnnamed991(); | 
|   437     o.kind = "foo"; |   437     o.kind = "foo"; | 
|   438   } |   438   } | 
|   439   buildCounterElectionsQueryResponse--; |   439   buildCounterElectionsQueryResponse--; | 
|   440   return o; |   440   return o; | 
|   441 } |   441 } | 
|   442  |   442  | 
|   443 checkElectionsQueryResponse(api.ElectionsQueryResponse o) { |   443 checkElectionsQueryResponse(api.ElectionsQueryResponse o) { | 
|   444   buildCounterElectionsQueryResponse++; |   444   buildCounterElectionsQueryResponse++; | 
|   445   if (buildCounterElectionsQueryResponse < 3) { |   445   if (buildCounterElectionsQueryResponse < 3) { | 
|   446     checkUnnamed192(o.elections); |   446     checkUnnamed991(o.elections); | 
|   447     unittest.expect(o.kind, unittest.equals('foo')); |   447     unittest.expect(o.kind, unittest.equals('foo')); | 
|   448   } |   448   } | 
|   449   buildCounterElectionsQueryResponse--; |   449   buildCounterElectionsQueryResponse--; | 
|   450 } |   450 } | 
|   451  |   451  | 
|   452 core.int buildCounterElectoralDistrict = 0; |   452 core.int buildCounterElectoralDistrict = 0; | 
|   453 buildElectoralDistrict() { |   453 buildElectoralDistrict() { | 
|   454   var o = new api.ElectoralDistrict(); |   454   var o = new api.ElectoralDistrict(); | 
|   455   buildCounterElectoralDistrict++; |   455   buildCounterElectoralDistrict++; | 
|   456   if (buildCounterElectoralDistrict < 3) { |   456   if (buildCounterElectoralDistrict < 3) { | 
|   457     o.id = "foo"; |   457     o.id = "foo"; | 
|   458     o.name = "foo"; |   458     o.name = "foo"; | 
|   459     o.scope = "foo"; |   459     o.scope = "foo"; | 
|   460   } |   460   } | 
|   461   buildCounterElectoralDistrict--; |   461   buildCounterElectoralDistrict--; | 
|   462   return o; |   462   return o; | 
|   463 } |   463 } | 
|   464  |   464  | 
|   465 checkElectoralDistrict(api.ElectoralDistrict o) { |   465 checkElectoralDistrict(api.ElectoralDistrict o) { | 
|   466   buildCounterElectoralDistrict++; |   466   buildCounterElectoralDistrict++; | 
|   467   if (buildCounterElectoralDistrict < 3) { |   467   if (buildCounterElectoralDistrict < 3) { | 
|   468     unittest.expect(o.id, unittest.equals('foo')); |   468     unittest.expect(o.id, unittest.equals('foo')); | 
|   469     unittest.expect(o.name, unittest.equals('foo')); |   469     unittest.expect(o.name, unittest.equals('foo')); | 
|   470     unittest.expect(o.scope, unittest.equals('foo')); |   470     unittest.expect(o.scope, unittest.equals('foo')); | 
|   471   } |   471   } | 
|   472   buildCounterElectoralDistrict--; |   472   buildCounterElectoralDistrict--; | 
|   473 } |   473 } | 
|   474  |   474  | 
|   475 buildUnnamed193() { |   475 buildUnnamed992() { | 
|   476   var o = new core.List<core.String>(); |   476   var o = new core.List<core.String>(); | 
|   477   o.add("foo"); |   477   o.add("foo"); | 
|   478   o.add("foo"); |   478   o.add("foo"); | 
|   479   return o; |   479   return o; | 
|   480 } |   480 } | 
|   481  |   481  | 
|   482 checkUnnamed193(core.List<core.String> o) { |   482 checkUnnamed992(core.List<core.String> o) { | 
|   483   unittest.expect(o, unittest.hasLength(2)); |   483   unittest.expect(o, unittest.hasLength(2)); | 
|   484   unittest.expect(o[0], unittest.equals('foo')); |   484   unittest.expect(o[0], unittest.equals('foo')); | 
|   485   unittest.expect(o[1], unittest.equals('foo')); |   485   unittest.expect(o[1], unittest.equals('foo')); | 
|   486 } |   486 } | 
|   487  |   487  | 
|   488 buildUnnamed194() { |   488 buildUnnamed993() { | 
|   489   var o = new core.List<core.int>(); |   489   var o = new core.List<core.int>(); | 
|   490   o.add(42); |   490   o.add(42); | 
|   491   o.add(42); |   491   o.add(42); | 
|   492   return o; |   492   return o; | 
|   493 } |   493 } | 
|   494  |   494  | 
|   495 checkUnnamed194(core.List<core.int> o) { |   495 checkUnnamed993(core.List<core.int> o) { | 
|   496   unittest.expect(o, unittest.hasLength(2)); |   496   unittest.expect(o, unittest.hasLength(2)); | 
|   497   unittest.expect(o[0], unittest.equals(42)); |   497   unittest.expect(o[0], unittest.equals(42)); | 
|   498   unittest.expect(o[1], unittest.equals(42)); |   498   unittest.expect(o[1], unittest.equals(42)); | 
|   499 } |   499 } | 
|   500  |   500  | 
|   501 core.int buildCounterGeographicDivision = 0; |   501 core.int buildCounterGeographicDivision = 0; | 
|   502 buildGeographicDivision() { |   502 buildGeographicDivision() { | 
|   503   var o = new api.GeographicDivision(); |   503   var o = new api.GeographicDivision(); | 
|   504   buildCounterGeographicDivision++; |   504   buildCounterGeographicDivision++; | 
|   505   if (buildCounterGeographicDivision < 3) { |   505   if (buildCounterGeographicDivision < 3) { | 
|   506     o.alsoKnownAs = buildUnnamed193(); |   506     o.alsoKnownAs = buildUnnamed992(); | 
|   507     o.name = "foo"; |   507     o.name = "foo"; | 
|   508     o.officeIndices = buildUnnamed194(); |   508     o.officeIndices = buildUnnamed993(); | 
|   509   } |   509   } | 
|   510   buildCounterGeographicDivision--; |   510   buildCounterGeographicDivision--; | 
|   511   return o; |   511   return o; | 
|   512 } |   512 } | 
|   513  |   513  | 
|   514 checkGeographicDivision(api.GeographicDivision o) { |   514 checkGeographicDivision(api.GeographicDivision o) { | 
|   515   buildCounterGeographicDivision++; |   515   buildCounterGeographicDivision++; | 
|   516   if (buildCounterGeographicDivision < 3) { |   516   if (buildCounterGeographicDivision < 3) { | 
|   517     checkUnnamed193(o.alsoKnownAs); |   517     checkUnnamed992(o.alsoKnownAs); | 
|   518     unittest.expect(o.name, unittest.equals('foo')); |   518     unittest.expect(o.name, unittest.equals('foo')); | 
|   519     checkUnnamed194(o.officeIndices); |   519     checkUnnamed993(o.officeIndices); | 
|   520   } |   520   } | 
|   521   buildCounterGeographicDivision--; |   521   buildCounterGeographicDivision--; | 
|   522 } |   522 } | 
|   523  |   523  | 
|   524 buildUnnamed195() { |   524 buildUnnamed994() { | 
|   525   var o = new core.List<core.String>(); |   525   var o = new core.List<core.String>(); | 
|   526   o.add("foo"); |   526   o.add("foo"); | 
|   527   o.add("foo"); |   527   o.add("foo"); | 
|   528   return o; |   528   return o; | 
|   529 } |   529 } | 
|   530  |   530  | 
|   531 checkUnnamed195(core.List<core.String> o) { |   531 checkUnnamed994(core.List<core.String> o) { | 
|   532   unittest.expect(o, unittest.hasLength(2)); |   532   unittest.expect(o, unittest.hasLength(2)); | 
|   533   unittest.expect(o[0], unittest.equals('foo')); |   533   unittest.expect(o[0], unittest.equals('foo')); | 
|   534   unittest.expect(o[1], unittest.equals('foo')); |   534   unittest.expect(o[1], unittest.equals('foo')); | 
|   535 } |   535 } | 
|   536  |   536  | 
|   537 buildUnnamed196() { |   537 buildUnnamed995() { | 
|   538   var o = new core.List<core.int>(); |   538   var o = new core.List<core.int>(); | 
|   539   o.add(42); |   539   o.add(42); | 
|   540   o.add(42); |   540   o.add(42); | 
|   541   return o; |   541   return o; | 
|   542 } |   542 } | 
|   543  |   543  | 
|   544 checkUnnamed196(core.List<core.int> o) { |   544 checkUnnamed995(core.List<core.int> o) { | 
|   545   unittest.expect(o, unittest.hasLength(2)); |   545   unittest.expect(o, unittest.hasLength(2)); | 
|   546   unittest.expect(o[0], unittest.equals(42)); |   546   unittest.expect(o[0], unittest.equals(42)); | 
|   547   unittest.expect(o[1], unittest.equals(42)); |   547   unittest.expect(o[1], unittest.equals(42)); | 
|   548 } |   548 } | 
|   549  |   549  | 
|   550 buildUnnamed197() { |   550 buildUnnamed996() { | 
|   551   var o = new core.List<core.String>(); |   551   var o = new core.List<core.String>(); | 
|   552   o.add("foo"); |   552   o.add("foo"); | 
|   553   o.add("foo"); |   553   o.add("foo"); | 
|   554   return o; |   554   return o; | 
|   555 } |   555 } | 
|   556  |   556  | 
|   557 checkUnnamed197(core.List<core.String> o) { |   557 checkUnnamed996(core.List<core.String> o) { | 
|   558   unittest.expect(o, unittest.hasLength(2)); |   558   unittest.expect(o, unittest.hasLength(2)); | 
|   559   unittest.expect(o[0], unittest.equals('foo')); |   559   unittest.expect(o[0], unittest.equals('foo')); | 
|   560   unittest.expect(o[1], unittest.equals('foo')); |   560   unittest.expect(o[1], unittest.equals('foo')); | 
|   561 } |   561 } | 
|   562  |   562  | 
|   563 buildUnnamed198() { |   563 buildUnnamed997() { | 
|   564   var o = new core.List<api.Source>(); |   564   var o = new core.List<api.Source>(); | 
|   565   o.add(buildSource()); |   565   o.add(buildSource()); | 
|   566   o.add(buildSource()); |   566   o.add(buildSource()); | 
|   567   return o; |   567   return o; | 
|   568 } |   568 } | 
|   569  |   569  | 
|   570 checkUnnamed198(core.List<api.Source> o) { |   570 checkUnnamed997(core.List<api.Source> o) { | 
|   571   unittest.expect(o, unittest.hasLength(2)); |   571   unittest.expect(o, unittest.hasLength(2)); | 
|   572   checkSource(o[0]); |   572   checkSource(o[0]); | 
|   573   checkSource(o[1]); |   573   checkSource(o[1]); | 
|   574 } |   574 } | 
|   575  |   575  | 
|   576 core.int buildCounterOffice = 0; |   576 core.int buildCounterOffice = 0; | 
|   577 buildOffice() { |   577 buildOffice() { | 
|   578   var o = new api.Office(); |   578   var o = new api.Office(); | 
|   579   buildCounterOffice++; |   579   buildCounterOffice++; | 
|   580   if (buildCounterOffice < 3) { |   580   if (buildCounterOffice < 3) { | 
|   581     o.divisionId = "foo"; |   581     o.divisionId = "foo"; | 
|   582     o.levels = buildUnnamed195(); |   582     o.levels = buildUnnamed994(); | 
|   583     o.name = "foo"; |   583     o.name = "foo"; | 
|   584     o.officialIndices = buildUnnamed196(); |   584     o.officialIndices = buildUnnamed995(); | 
|   585     o.roles = buildUnnamed197(); |   585     o.roles = buildUnnamed996(); | 
|   586     o.sources = buildUnnamed198(); |   586     o.sources = buildUnnamed997(); | 
|   587   } |   587   } | 
|   588   buildCounterOffice--; |   588   buildCounterOffice--; | 
|   589   return o; |   589   return o; | 
|   590 } |   590 } | 
|   591  |   591  | 
|   592 checkOffice(api.Office o) { |   592 checkOffice(api.Office o) { | 
|   593   buildCounterOffice++; |   593   buildCounterOffice++; | 
|   594   if (buildCounterOffice < 3) { |   594   if (buildCounterOffice < 3) { | 
|   595     unittest.expect(o.divisionId, unittest.equals('foo')); |   595     unittest.expect(o.divisionId, unittest.equals('foo')); | 
|   596     checkUnnamed195(o.levels); |   596     checkUnnamed994(o.levels); | 
|   597     unittest.expect(o.name, unittest.equals('foo')); |   597     unittest.expect(o.name, unittest.equals('foo')); | 
|   598     checkUnnamed196(o.officialIndices); |   598     checkUnnamed995(o.officialIndices); | 
|   599     checkUnnamed197(o.roles); |   599     checkUnnamed996(o.roles); | 
|   600     checkUnnamed198(o.sources); |   600     checkUnnamed997(o.sources); | 
|   601   } |   601   } | 
|   602   buildCounterOffice--; |   602   buildCounterOffice--; | 
|   603 } |   603 } | 
|   604  |   604  | 
|   605 buildUnnamed199() { |   605 buildUnnamed998() { | 
|   606   var o = new core.List<api.SimpleAddressType>(); |   606   var o = new core.List<api.SimpleAddressType>(); | 
|   607   o.add(buildSimpleAddressType()); |   607   o.add(buildSimpleAddressType()); | 
|   608   o.add(buildSimpleAddressType()); |   608   o.add(buildSimpleAddressType()); | 
|   609   return o; |   609   return o; | 
|   610 } |   610 } | 
|   611  |   611  | 
|   612 checkUnnamed199(core.List<api.SimpleAddressType> o) { |   612 checkUnnamed998(core.List<api.SimpleAddressType> o) { | 
|   613   unittest.expect(o, unittest.hasLength(2)); |   613   unittest.expect(o, unittest.hasLength(2)); | 
|   614   checkSimpleAddressType(o[0]); |   614   checkSimpleAddressType(o[0]); | 
|   615   checkSimpleAddressType(o[1]); |   615   checkSimpleAddressType(o[1]); | 
|   616 } |   616 } | 
|   617  |   617  | 
|   618 buildUnnamed200() { |   618 buildUnnamed999() { | 
|   619   var o = new core.List<api.Channel>(); |   619   var o = new core.List<api.Channel>(); | 
|   620   o.add(buildChannel()); |   620   o.add(buildChannel()); | 
|   621   o.add(buildChannel()); |   621   o.add(buildChannel()); | 
|   622   return o; |   622   return o; | 
|   623 } |   623 } | 
|   624  |   624  | 
|   625 checkUnnamed200(core.List<api.Channel> o) { |   625 checkUnnamed999(core.List<api.Channel> o) { | 
|   626   unittest.expect(o, unittest.hasLength(2)); |   626   unittest.expect(o, unittest.hasLength(2)); | 
|   627   checkChannel(o[0]); |   627   checkChannel(o[0]); | 
|   628   checkChannel(o[1]); |   628   checkChannel(o[1]); | 
|   629 } |   629 } | 
|   630  |   630  | 
|   631 buildUnnamed201() { |   631 buildUnnamed1000() { | 
|   632   var o = new core.List<core.String>(); |   632   var o = new core.List<core.String>(); | 
|   633   o.add("foo"); |   633   o.add("foo"); | 
|   634   o.add("foo"); |   634   o.add("foo"); | 
|   635   return o; |   635   return o; | 
|   636 } |   636 } | 
|   637  |   637  | 
|   638 checkUnnamed201(core.List<core.String> o) { |   638 checkUnnamed1000(core.List<core.String> o) { | 
|   639   unittest.expect(o, unittest.hasLength(2)); |   639   unittest.expect(o, unittest.hasLength(2)); | 
|   640   unittest.expect(o[0], unittest.equals('foo')); |   640   unittest.expect(o[0], unittest.equals('foo')); | 
|   641   unittest.expect(o[1], unittest.equals('foo')); |   641   unittest.expect(o[1], unittest.equals('foo')); | 
|   642 } |   642 } | 
|   643  |   643  | 
|   644 buildUnnamed202() { |   644 buildUnnamed1001() { | 
|   645   var o = new core.List<core.String>(); |   645   var o = new core.List<core.String>(); | 
|   646   o.add("foo"); |   646   o.add("foo"); | 
|   647   o.add("foo"); |   647   o.add("foo"); | 
|   648   return o; |   648   return o; | 
|   649 } |   649 } | 
|   650  |   650  | 
|   651 checkUnnamed202(core.List<core.String> o) { |   651 checkUnnamed1001(core.List<core.String> o) { | 
|   652   unittest.expect(o, unittest.hasLength(2)); |   652   unittest.expect(o, unittest.hasLength(2)); | 
|   653   unittest.expect(o[0], unittest.equals('foo')); |   653   unittest.expect(o[0], unittest.equals('foo')); | 
|   654   unittest.expect(o[1], unittest.equals('foo')); |   654   unittest.expect(o[1], unittest.equals('foo')); | 
|   655 } |   655 } | 
|   656  |   656  | 
|   657 buildUnnamed203() { |   657 buildUnnamed1002() { | 
|   658   var o = new core.List<core.String>(); |   658   var o = new core.List<core.String>(); | 
|   659   o.add("foo"); |   659   o.add("foo"); | 
|   660   o.add("foo"); |   660   o.add("foo"); | 
|   661   return o; |   661   return o; | 
|   662 } |   662 } | 
|   663  |   663  | 
|   664 checkUnnamed203(core.List<core.String> o) { |   664 checkUnnamed1002(core.List<core.String> o) { | 
|   665   unittest.expect(o, unittest.hasLength(2)); |   665   unittest.expect(o, unittest.hasLength(2)); | 
|   666   unittest.expect(o[0], unittest.equals('foo')); |   666   unittest.expect(o[0], unittest.equals('foo')); | 
|   667   unittest.expect(o[1], unittest.equals('foo')); |   667   unittest.expect(o[1], unittest.equals('foo')); | 
|   668 } |   668 } | 
|   669  |   669  | 
|   670 core.int buildCounterOfficial = 0; |   670 core.int buildCounterOfficial = 0; | 
|   671 buildOfficial() { |   671 buildOfficial() { | 
|   672   var o = new api.Official(); |   672   var o = new api.Official(); | 
|   673   buildCounterOfficial++; |   673   buildCounterOfficial++; | 
|   674   if (buildCounterOfficial < 3) { |   674   if (buildCounterOfficial < 3) { | 
|   675     o.address = buildUnnamed199(); |   675     o.address = buildUnnamed998(); | 
|   676     o.channels = buildUnnamed200(); |   676     o.channels = buildUnnamed999(); | 
|   677     o.emails = buildUnnamed201(); |   677     o.emails = buildUnnamed1000(); | 
|   678     o.name = "foo"; |   678     o.name = "foo"; | 
|   679     o.party = "foo"; |   679     o.party = "foo"; | 
|   680     o.phones = buildUnnamed202(); |   680     o.phones = buildUnnamed1001(); | 
|   681     o.photoUrl = "foo"; |   681     o.photoUrl = "foo"; | 
|   682     o.urls = buildUnnamed203(); |   682     o.urls = buildUnnamed1002(); | 
|   683   } |   683   } | 
|   684   buildCounterOfficial--; |   684   buildCounterOfficial--; | 
|   685   return o; |   685   return o; | 
|   686 } |   686 } | 
|   687  |   687  | 
|   688 checkOfficial(api.Official o) { |   688 checkOfficial(api.Official o) { | 
|   689   buildCounterOfficial++; |   689   buildCounterOfficial++; | 
|   690   if (buildCounterOfficial < 3) { |   690   if (buildCounterOfficial < 3) { | 
|   691     checkUnnamed199(o.address); |   691     checkUnnamed998(o.address); | 
|   692     checkUnnamed200(o.channels); |   692     checkUnnamed999(o.channels); | 
|   693     checkUnnamed201(o.emails); |   693     checkUnnamed1000(o.emails); | 
|   694     unittest.expect(o.name, unittest.equals('foo')); |   694     unittest.expect(o.name, unittest.equals('foo')); | 
|   695     unittest.expect(o.party, unittest.equals('foo')); |   695     unittest.expect(o.party, unittest.equals('foo')); | 
|   696     checkUnnamed202(o.phones); |   696     checkUnnamed1001(o.phones); | 
|   697     unittest.expect(o.photoUrl, unittest.equals('foo')); |   697     unittest.expect(o.photoUrl, unittest.equals('foo')); | 
|   698     checkUnnamed203(o.urls); |   698     checkUnnamed1002(o.urls); | 
|   699   } |   699   } | 
|   700   buildCounterOfficial--; |   700   buildCounterOfficial--; | 
|   701 } |   701 } | 
|   702  |   702  | 
|   703 buildUnnamed204() { |   703 buildUnnamed1003() { | 
|   704   var o = new core.List<api.Source>(); |   704   var o = new core.List<api.Source>(); | 
|   705   o.add(buildSource()); |   705   o.add(buildSource()); | 
|   706   o.add(buildSource()); |   706   o.add(buildSource()); | 
|   707   return o; |   707   return o; | 
|   708 } |   708 } | 
|   709  |   709  | 
|   710 checkUnnamed204(core.List<api.Source> o) { |   710 checkUnnamed1003(core.List<api.Source> o) { | 
|   711   unittest.expect(o, unittest.hasLength(2)); |   711   unittest.expect(o, unittest.hasLength(2)); | 
|   712   checkSource(o[0]); |   712   checkSource(o[0]); | 
|   713   checkSource(o[1]); |   713   checkSource(o[1]); | 
|   714 } |   714 } | 
|   715  |   715  | 
|   716 core.int buildCounterPollingLocation = 0; |   716 core.int buildCounterPollingLocation = 0; | 
|   717 buildPollingLocation() { |   717 buildPollingLocation() { | 
|   718   var o = new api.PollingLocation(); |   718   var o = new api.PollingLocation(); | 
|   719   buildCounterPollingLocation++; |   719   buildCounterPollingLocation++; | 
|   720   if (buildCounterPollingLocation < 3) { |   720   if (buildCounterPollingLocation < 3) { | 
|   721     o.address = buildSimpleAddressType(); |   721     o.address = buildSimpleAddressType(); | 
|   722     o.endDate = "foo"; |   722     o.endDate = "foo"; | 
|   723     o.id = "foo"; |   723     o.id = "foo"; | 
|   724     o.name = "foo"; |   724     o.name = "foo"; | 
|   725     o.notes = "foo"; |   725     o.notes = "foo"; | 
|   726     o.pollingHours = "foo"; |   726     o.pollingHours = "foo"; | 
|   727     o.sources = buildUnnamed204(); |   727     o.sources = buildUnnamed1003(); | 
|   728     o.startDate = "foo"; |   728     o.startDate = "foo"; | 
|   729     o.voterServices = "foo"; |   729     o.voterServices = "foo"; | 
|   730   } |   730   } | 
|   731   buildCounterPollingLocation--; |   731   buildCounterPollingLocation--; | 
|   732   return o; |   732   return o; | 
|   733 } |   733 } | 
|   734  |   734  | 
|   735 checkPollingLocation(api.PollingLocation o) { |   735 checkPollingLocation(api.PollingLocation o) { | 
|   736   buildCounterPollingLocation++; |   736   buildCounterPollingLocation++; | 
|   737   if (buildCounterPollingLocation < 3) { |   737   if (buildCounterPollingLocation < 3) { | 
|   738     checkSimpleAddressType(o.address); |   738     checkSimpleAddressType(o.address); | 
|   739     unittest.expect(o.endDate, unittest.equals('foo')); |   739     unittest.expect(o.endDate, unittest.equals('foo')); | 
|   740     unittest.expect(o.id, unittest.equals('foo')); |   740     unittest.expect(o.id, unittest.equals('foo')); | 
|   741     unittest.expect(o.name, unittest.equals('foo')); |   741     unittest.expect(o.name, unittest.equals('foo')); | 
|   742     unittest.expect(o.notes, unittest.equals('foo')); |   742     unittest.expect(o.notes, unittest.equals('foo')); | 
|   743     unittest.expect(o.pollingHours, unittest.equals('foo')); |   743     unittest.expect(o.pollingHours, unittest.equals('foo')); | 
|   744     checkUnnamed204(o.sources); |   744     checkUnnamed1003(o.sources); | 
|   745     unittest.expect(o.startDate, unittest.equals('foo')); |   745     unittest.expect(o.startDate, unittest.equals('foo')); | 
|   746     unittest.expect(o.voterServices, unittest.equals('foo')); |   746     unittest.expect(o.voterServices, unittest.equals('foo')); | 
|   747   } |   747   } | 
|   748   buildCounterPollingLocation--; |   748   buildCounterPollingLocation--; | 
|   749 } |   749 } | 
|   750  |   750  | 
|   751 buildUnnamed205() { |   751 buildUnnamed1004() { | 
|   752   var o = new core.Map<core.String, api.GeographicDivision>(); |   752   var o = new core.Map<core.String, api.GeographicDivision>(); | 
|   753   o["x"] = buildGeographicDivision(); |   753   o["x"] = buildGeographicDivision(); | 
|   754   o["y"] = buildGeographicDivision(); |   754   o["y"] = buildGeographicDivision(); | 
|   755   return o; |   755   return o; | 
|   756 } |   756 } | 
|   757  |   757  | 
|   758 checkUnnamed205(core.Map<core.String, api.GeographicDivision> o) { |   758 checkUnnamed1004(core.Map<core.String, api.GeographicDivision> o) { | 
|   759   unittest.expect(o, unittest.hasLength(2)); |   759   unittest.expect(o, unittest.hasLength(2)); | 
|   760   checkGeographicDivision(o["x"]); |   760   checkGeographicDivision(o["x"]); | 
|   761   checkGeographicDivision(o["y"]); |   761   checkGeographicDivision(o["y"]); | 
|   762 } |   762 } | 
|   763  |   763  | 
|   764 buildUnnamed206() { |   764 buildUnnamed1005() { | 
|   765   var o = new core.List<api.Office>(); |   765   var o = new core.List<api.Office>(); | 
|   766   o.add(buildOffice()); |   766   o.add(buildOffice()); | 
|   767   o.add(buildOffice()); |   767   o.add(buildOffice()); | 
|   768   return o; |   768   return o; | 
|   769 } |   769 } | 
|   770  |   770  | 
|   771 checkUnnamed206(core.List<api.Office> o) { |   771 checkUnnamed1005(core.List<api.Office> o) { | 
|   772   unittest.expect(o, unittest.hasLength(2)); |   772   unittest.expect(o, unittest.hasLength(2)); | 
|   773   checkOffice(o[0]); |   773   checkOffice(o[0]); | 
|   774   checkOffice(o[1]); |   774   checkOffice(o[1]); | 
|   775 } |   775 } | 
|   776  |   776  | 
|   777 buildUnnamed207() { |   777 buildUnnamed1006() { | 
|   778   var o = new core.List<api.Official>(); |   778   var o = new core.List<api.Official>(); | 
|   779   o.add(buildOfficial()); |   779   o.add(buildOfficial()); | 
|   780   o.add(buildOfficial()); |   780   o.add(buildOfficial()); | 
|   781   return o; |   781   return o; | 
|   782 } |   782 } | 
|   783  |   783  | 
|   784 checkUnnamed207(core.List<api.Official> o) { |   784 checkUnnamed1006(core.List<api.Official> o) { | 
|   785   unittest.expect(o, unittest.hasLength(2)); |   785   unittest.expect(o, unittest.hasLength(2)); | 
|   786   checkOfficial(o[0]); |   786   checkOfficial(o[0]); | 
|   787   checkOfficial(o[1]); |   787   checkOfficial(o[1]); | 
|   788 } |   788 } | 
|   789  |   789  | 
|   790 core.int buildCounterRepresentativeInfoData = 0; |   790 core.int buildCounterRepresentativeInfoData = 0; | 
|   791 buildRepresentativeInfoData() { |   791 buildRepresentativeInfoData() { | 
|   792   var o = new api.RepresentativeInfoData(); |   792   var o = new api.RepresentativeInfoData(); | 
|   793   buildCounterRepresentativeInfoData++; |   793   buildCounterRepresentativeInfoData++; | 
|   794   if (buildCounterRepresentativeInfoData < 3) { |   794   if (buildCounterRepresentativeInfoData < 3) { | 
|   795     o.divisions = buildUnnamed205(); |   795     o.divisions = buildUnnamed1004(); | 
|   796     o.offices = buildUnnamed206(); |   796     o.offices = buildUnnamed1005(); | 
|   797     o.officials = buildUnnamed207(); |   797     o.officials = buildUnnamed1006(); | 
|   798   } |   798   } | 
|   799   buildCounterRepresentativeInfoData--; |   799   buildCounterRepresentativeInfoData--; | 
|   800   return o; |   800   return o; | 
|   801 } |   801 } | 
|   802  |   802  | 
|   803 checkRepresentativeInfoData(api.RepresentativeInfoData o) { |   803 checkRepresentativeInfoData(api.RepresentativeInfoData o) { | 
|   804   buildCounterRepresentativeInfoData++; |   804   buildCounterRepresentativeInfoData++; | 
|   805   if (buildCounterRepresentativeInfoData < 3) { |   805   if (buildCounterRepresentativeInfoData < 3) { | 
|   806     checkUnnamed205(o.divisions); |   806     checkUnnamed1004(o.divisions); | 
|   807     checkUnnamed206(o.offices); |   807     checkUnnamed1005(o.offices); | 
|   808     checkUnnamed207(o.officials); |   808     checkUnnamed1006(o.officials); | 
|   809   } |   809   } | 
|   810   buildCounterRepresentativeInfoData--; |   810   buildCounterRepresentativeInfoData--; | 
|   811 } |   811 } | 
|   812  |   812  | 
|   813 buildUnnamed208() { |   813 buildUnnamed1007() { | 
|   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 checkUnnamed208(core.Map<core.String, api.GeographicDivision> o) { |   820 checkUnnamed1007(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 buildUnnamed209() { |   826 buildUnnamed1008() { | 
|   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 checkUnnamed209(core.List<api.Office> o) { |   833 checkUnnamed1008(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 buildUnnamed210() { |   839 buildUnnamed1009() { | 
|   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 checkUnnamed210(core.List<api.Official> o) { |   846 checkUnnamed1009(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 buildCounterRepresentativeInfoResponse = 0; |   852 core.int buildCounterRepresentativeInfoResponse = 0; | 
|   853 buildRepresentativeInfoResponse() { |   853 buildRepresentativeInfoResponse() { | 
|   854   var o = new api.RepresentativeInfoResponse(); |   854   var o = new api.RepresentativeInfoResponse(); | 
|   855   buildCounterRepresentativeInfoResponse++; |   855   buildCounterRepresentativeInfoResponse++; | 
|   856   if (buildCounterRepresentativeInfoResponse < 3) { |   856   if (buildCounterRepresentativeInfoResponse < 3) { | 
|   857     o.divisions = buildUnnamed208(); |   857     o.divisions = buildUnnamed1007(); | 
|   858     o.kind = "foo"; |   858     o.kind = "foo"; | 
|   859     o.normalizedInput = buildSimpleAddressType(); |   859     o.normalizedInput = buildSimpleAddressType(); | 
|   860     o.offices = buildUnnamed209(); |   860     o.offices = buildUnnamed1008(); | 
|   861     o.officials = buildUnnamed210(); |   861     o.officials = buildUnnamed1009(); | 
|   862   } |   862   } | 
|   863   buildCounterRepresentativeInfoResponse--; |   863   buildCounterRepresentativeInfoResponse--; | 
|   864   return o; |   864   return o; | 
|   865 } |   865 } | 
|   866  |   866  | 
|   867 checkRepresentativeInfoResponse(api.RepresentativeInfoResponse o) { |   867 checkRepresentativeInfoResponse(api.RepresentativeInfoResponse o) { | 
|   868   buildCounterRepresentativeInfoResponse++; |   868   buildCounterRepresentativeInfoResponse++; | 
|   869   if (buildCounterRepresentativeInfoResponse < 3) { |   869   if (buildCounterRepresentativeInfoResponse < 3) { | 
|   870     checkUnnamed208(o.divisions); |   870     checkUnnamed1007(o.divisions); | 
|   871     unittest.expect(o.kind, unittest.equals('foo')); |   871     unittest.expect(o.kind, unittest.equals('foo')); | 
|   872     checkSimpleAddressType(o.normalizedInput); |   872     checkSimpleAddressType(o.normalizedInput); | 
|   873     checkUnnamed209(o.offices); |   873     checkUnnamed1008(o.offices); | 
|   874     checkUnnamed210(o.officials); |   874     checkUnnamed1009(o.officials); | 
|   875   } |   875   } | 
|   876   buildCounterRepresentativeInfoResponse--; |   876   buildCounterRepresentativeInfoResponse--; | 
|   877 } |   877 } | 
|   878  |   878  | 
|   879 core.int buildCounterSimpleAddressType = 0; |   879 core.int buildCounterSimpleAddressType = 0; | 
|   880 buildSimpleAddressType() { |   880 buildSimpleAddressType() { | 
|   881   var o = new api.SimpleAddressType(); |   881   var o = new api.SimpleAddressType(); | 
|   882   buildCounterSimpleAddressType++; |   882   buildCounterSimpleAddressType++; | 
|   883   if (buildCounterSimpleAddressType < 3) { |   883   if (buildCounterSimpleAddressType < 3) { | 
|   884     o.city = "foo"; |   884     o.city = "foo"; | 
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   921  |   921  | 
|   922 checkSource(api.Source o) { |   922 checkSource(api.Source o) { | 
|   923   buildCounterSource++; |   923   buildCounterSource++; | 
|   924   if (buildCounterSource < 3) { |   924   if (buildCounterSource < 3) { | 
|   925     unittest.expect(o.name, unittest.equals('foo')); |   925     unittest.expect(o.name, unittest.equals('foo')); | 
|   926     unittest.expect(o.official, unittest.isTrue); |   926     unittest.expect(o.official, unittest.isTrue); | 
|   927   } |   927   } | 
|   928   buildCounterSource--; |   928   buildCounterSource--; | 
|   929 } |   929 } | 
|   930  |   930  | 
|   931 buildUnnamed211() { |   931 buildUnnamed1010() { | 
|   932   var o = new core.List<api.Contest>(); |   932   var o = new core.List<api.Contest>(); | 
|   933   o.add(buildContest()); |   933   o.add(buildContest()); | 
|   934   o.add(buildContest()); |   934   o.add(buildContest()); | 
|   935   return o; |   935   return o; | 
|   936 } |   936 } | 
|   937  |   937  | 
|   938 checkUnnamed211(core.List<api.Contest> o) { |   938 checkUnnamed1010(core.List<api.Contest> o) { | 
|   939   unittest.expect(o, unittest.hasLength(2)); |   939   unittest.expect(o, unittest.hasLength(2)); | 
|   940   checkContest(o[0]); |   940   checkContest(o[0]); | 
|   941   checkContest(o[1]); |   941   checkContest(o[1]); | 
|   942 } |   942 } | 
|   943  |   943  | 
|   944 buildUnnamed212() { |   944 buildUnnamed1011() { | 
|   945   var o = new core.List<api.PollingLocation>(); |   945   var o = new core.List<api.PollingLocation>(); | 
|   946   o.add(buildPollingLocation()); |   946   o.add(buildPollingLocation()); | 
|   947   o.add(buildPollingLocation()); |   947   o.add(buildPollingLocation()); | 
|   948   return o; |   948   return o; | 
|   949 } |   949 } | 
|   950  |   950  | 
|   951 checkUnnamed212(core.List<api.PollingLocation> o) { |   951 checkUnnamed1011(core.List<api.PollingLocation> o) { | 
|   952   unittest.expect(o, unittest.hasLength(2)); |   952   unittest.expect(o, unittest.hasLength(2)); | 
|   953   checkPollingLocation(o[0]); |   953   checkPollingLocation(o[0]); | 
|   954   checkPollingLocation(o[1]); |   954   checkPollingLocation(o[1]); | 
|   955 } |   955 } | 
|   956  |   956  | 
|   957 buildUnnamed213() { |   957 buildUnnamed1012() { | 
|   958   var o = new core.List<api.Election>(); |   958   var o = new core.List<api.Election>(); | 
|   959   o.add(buildElection()); |   959   o.add(buildElection()); | 
|   960   o.add(buildElection()); |   960   o.add(buildElection()); | 
|   961   return o; |   961   return o; | 
|   962 } |   962 } | 
|   963  |   963  | 
|   964 checkUnnamed213(core.List<api.Election> o) { |   964 checkUnnamed1012(core.List<api.Election> o) { | 
|   965   unittest.expect(o, unittest.hasLength(2)); |   965   unittest.expect(o, unittest.hasLength(2)); | 
|   966   checkElection(o[0]); |   966   checkElection(o[0]); | 
|   967   checkElection(o[1]); |   967   checkElection(o[1]); | 
|   968 } |   968 } | 
|   969  |   969  | 
|   970 buildUnnamed214() { |   970 buildUnnamed1013() { | 
|   971   var o = new core.List<api.PollingLocation>(); |   971   var o = new core.List<api.PollingLocation>(); | 
|   972   o.add(buildPollingLocation()); |   972   o.add(buildPollingLocation()); | 
|   973   o.add(buildPollingLocation()); |   973   o.add(buildPollingLocation()); | 
|   974   return o; |   974   return o; | 
|   975 } |   975 } | 
|   976  |   976  | 
|   977 checkUnnamed214(core.List<api.PollingLocation> o) { |   977 checkUnnamed1013(core.List<api.PollingLocation> o) { | 
|   978   unittest.expect(o, unittest.hasLength(2)); |   978   unittest.expect(o, unittest.hasLength(2)); | 
|   979   checkPollingLocation(o[0]); |   979   checkPollingLocation(o[0]); | 
|   980   checkPollingLocation(o[1]); |   980   checkPollingLocation(o[1]); | 
|   981 } |   981 } | 
|   982  |   982  | 
|   983 buildUnnamed215() { |   983 buildUnnamed1014() { | 
|   984   var o = new core.List<api.AdministrationRegion>(); |   984   var o = new core.List<api.AdministrationRegion>(); | 
|   985   o.add(buildAdministrationRegion()); |   985   o.add(buildAdministrationRegion()); | 
|   986   o.add(buildAdministrationRegion()); |   986   o.add(buildAdministrationRegion()); | 
|   987   return o; |   987   return o; | 
|   988 } |   988 } | 
|   989  |   989  | 
|   990 checkUnnamed215(core.List<api.AdministrationRegion> o) { |   990 checkUnnamed1014(core.List<api.AdministrationRegion> o) { | 
|   991   unittest.expect(o, unittest.hasLength(2)); |   991   unittest.expect(o, unittest.hasLength(2)); | 
|   992   checkAdministrationRegion(o[0]); |   992   checkAdministrationRegion(o[0]); | 
|   993   checkAdministrationRegion(o[1]); |   993   checkAdministrationRegion(o[1]); | 
|   994 } |   994 } | 
|   995  |   995  | 
|   996 core.int buildCounterVoterInfoResponse = 0; |   996 core.int buildCounterVoterInfoResponse = 0; | 
|   997 buildVoterInfoResponse() { |   997 buildVoterInfoResponse() { | 
|   998   var o = new api.VoterInfoResponse(); |   998   var o = new api.VoterInfoResponse(); | 
|   999   buildCounterVoterInfoResponse++; |   999   buildCounterVoterInfoResponse++; | 
|  1000   if (buildCounterVoterInfoResponse < 3) { |  1000   if (buildCounterVoterInfoResponse < 3) { | 
|  1001     o.contests = buildUnnamed211(); |  1001     o.contests = buildUnnamed1010(); | 
|  1002     o.earlyVoteSites = buildUnnamed212(); |  1002     o.earlyVoteSites = buildUnnamed1011(); | 
|  1003     o.election = buildElection(); |  1003     o.election = buildElection(); | 
|  1004     o.kind = "foo"; |  1004     o.kind = "foo"; | 
|  1005     o.normalizedInput = buildSimpleAddressType(); |  1005     o.normalizedInput = buildSimpleAddressType(); | 
|  1006     o.otherElections = buildUnnamed213(); |  1006     o.otherElections = buildUnnamed1012(); | 
|  1007     o.pollingLocations = buildUnnamed214(); |  1007     o.pollingLocations = buildUnnamed1013(); | 
|  1008     o.precinctId = "foo"; |  1008     o.precinctId = "foo"; | 
|  1009     o.state = buildUnnamed215(); |  1009     o.state = buildUnnamed1014(); | 
|  1010   } |  1010   } | 
|  1011   buildCounterVoterInfoResponse--; |  1011   buildCounterVoterInfoResponse--; | 
|  1012   return o; |  1012   return o; | 
|  1013 } |  1013 } | 
|  1014  |  1014  | 
|  1015 checkVoterInfoResponse(api.VoterInfoResponse o) { |  1015 checkVoterInfoResponse(api.VoterInfoResponse o) { | 
|  1016   buildCounterVoterInfoResponse++; |  1016   buildCounterVoterInfoResponse++; | 
|  1017   if (buildCounterVoterInfoResponse < 3) { |  1017   if (buildCounterVoterInfoResponse < 3) { | 
|  1018     checkUnnamed211(o.contests); |  1018     checkUnnamed1010(o.contests); | 
|  1019     checkUnnamed212(o.earlyVoteSites); |  1019     checkUnnamed1011(o.earlyVoteSites); | 
|  1020     checkElection(o.election); |  1020     checkElection(o.election); | 
|  1021     unittest.expect(o.kind, unittest.equals('foo')); |  1021     unittest.expect(o.kind, unittest.equals('foo')); | 
|  1022     checkSimpleAddressType(o.normalizedInput); |  1022     checkSimpleAddressType(o.normalizedInput); | 
|  1023     checkUnnamed213(o.otherElections); |  1023     checkUnnamed1012(o.otherElections); | 
|  1024     checkUnnamed214(o.pollingLocations); |  1024     checkUnnamed1013(o.pollingLocations); | 
|  1025     unittest.expect(o.precinctId, unittest.equals('foo')); |  1025     unittest.expect(o.precinctId, unittest.equals('foo')); | 
|  1026     checkUnnamed215(o.state); |  1026     checkUnnamed1014(o.state); | 
|  1027   } |  1027   } | 
|  1028   buildCounterVoterInfoResponse--; |  1028   buildCounterVoterInfoResponse--; | 
|  1029 } |  1029 } | 
|  1030  |  1030  | 
|  1031 buildUnnamed216() { |  1031 buildUnnamed1015() { | 
|  1032   var o = new core.List<core.String>(); |  1032   var o = new core.List<core.String>(); | 
|  1033   o.add("foo"); |  1033   o.add("foo"); | 
|  1034   o.add("foo"); |  1034   o.add("foo"); | 
|  1035   return o; |  1035   return o; | 
|  1036 } |  1036 } | 
|  1037  |  1037  | 
|  1038 checkUnnamed216(core.List<core.String> o) { |  1038 checkUnnamed1015(core.List<core.String> o) { | 
|  1039   unittest.expect(o, unittest.hasLength(2)); |  1039   unittest.expect(o, unittest.hasLength(2)); | 
|  1040   unittest.expect(o[0], unittest.equals('foo')); |  1040   unittest.expect(o[0], unittest.equals('foo')); | 
|  1041   unittest.expect(o[1], unittest.equals('foo')); |  1041   unittest.expect(o[1], unittest.equals('foo')); | 
|  1042 } |  1042 } | 
|  1043  |  1043  | 
|  1044 buildUnnamed217() { |  1044 buildUnnamed1016() { | 
|  1045   var o = new core.List<core.String>(); |  1045   var o = new core.List<core.String>(); | 
|  1046   o.add("foo"); |  1046   o.add("foo"); | 
|  1047   o.add("foo"); |  1047   o.add("foo"); | 
|  1048   return o; |  1048   return o; | 
|  1049 } |  1049 } | 
|  1050  |  1050  | 
|  1051 checkUnnamed217(core.List<core.String> o) { |  1051 checkUnnamed1016(core.List<core.String> o) { | 
|  1052   unittest.expect(o, unittest.hasLength(2)); |  1052   unittest.expect(o, unittest.hasLength(2)); | 
|  1053   unittest.expect(o[0], unittest.equals('foo')); |  1053   unittest.expect(o[0], unittest.equals('foo')); | 
|  1054   unittest.expect(o[1], unittest.equals('foo')); |  1054   unittest.expect(o[1], unittest.equals('foo')); | 
|  1055 } |  1055 } | 
|  1056  |  1056  | 
|  1057 buildUnnamed218() { |  1057 buildUnnamed1017() { | 
|  1058   var o = new core.List<core.String>(); |  1058   var o = new core.List<core.String>(); | 
|  1059   o.add("foo"); |  1059   o.add("foo"); | 
|  1060   o.add("foo"); |  1060   o.add("foo"); | 
|  1061   return o; |  1061   return o; | 
|  1062 } |  1062 } | 
|  1063  |  1063  | 
|  1064 checkUnnamed218(core.List<core.String> o) { |  1064 checkUnnamed1017(core.List<core.String> o) { | 
|  1065   unittest.expect(o, unittest.hasLength(2)); |  1065   unittest.expect(o, unittest.hasLength(2)); | 
|  1066   unittest.expect(o[0], unittest.equals('foo')); |  1066   unittest.expect(o[0], unittest.equals('foo')); | 
|  1067   unittest.expect(o[1], unittest.equals('foo')); |  1067   unittest.expect(o[1], unittest.equals('foo')); | 
|  1068 } |  1068 } | 
|  1069  |  1069  | 
|  1070 buildUnnamed219() { |  1070 buildUnnamed1018() { | 
|  1071   var o = new core.List<core.String>(); |  1071   var o = new core.List<core.String>(); | 
|  1072   o.add("foo"); |  1072   o.add("foo"); | 
|  1073   o.add("foo"); |  1073   o.add("foo"); | 
|  1074   return o; |  1074   return o; | 
|  1075 } |  1075 } | 
|  1076  |  1076  | 
|  1077 checkUnnamed219(core.List<core.String> o) { |  1077 checkUnnamed1018(core.List<core.String> o) { | 
|  1078   unittest.expect(o, unittest.hasLength(2)); |  1078   unittest.expect(o, unittest.hasLength(2)); | 
|  1079   unittest.expect(o[0], unittest.equals('foo')); |  1079   unittest.expect(o[0], unittest.equals('foo')); | 
|  1080   unittest.expect(o[1], unittest.equals('foo')); |  1080   unittest.expect(o[1], unittest.equals('foo')); | 
|  1081 } |  1081 } | 
|  1082  |  1082  | 
|  1083  |  1083  | 
|  1084 main() { |  1084 main() { | 
|  1085   unittest.group("obj-schema-AdministrationRegion", () { |  1085   unittest.group("obj-schema-AdministrationRegion", () { | 
|  1086     unittest.test("to-json--from-json", () { |  1086     unittest.test("to-json--from-json", () { | 
|  1087       var o = buildAdministrationRegion(); |  1087       var o = buildAdministrationRegion(); | 
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1413   }); |  1413   }); | 
|  1414  |  1414  | 
|  1415  |  1415  | 
|  1416   unittest.group("resource-RepresentativesResourceApi", () { |  1416   unittest.group("resource-RepresentativesResourceApi", () { | 
|  1417     unittest.test("method--representativeInfoByAddress", () { |  1417     unittest.test("method--representativeInfoByAddress", () { | 
|  1418  |  1418  | 
|  1419       var mock = new common_test.HttpServerMock(); |  1419       var mock = new common_test.HttpServerMock(); | 
|  1420       api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representa
      tives; |  1420       api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representa
      tives; | 
|  1421       var arg_address = "foo"; |  1421       var arg_address = "foo"; | 
|  1422       var arg_includeOffices = true; |  1422       var arg_includeOffices = true; | 
|  1423       var arg_levels = buildUnnamed216(); |  1423       var arg_levels = buildUnnamed1015(); | 
|  1424       var arg_roles = buildUnnamed217(); |  1424       var arg_roles = buildUnnamed1016(); | 
|  1425       mock.register(unittest.expectAsync((http.BaseRequest req, json) { |  1425       mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 
|  1426         var path = (req.url).path; |  1426         var path = (req.url).path; | 
|  1427         var pathOffset = 0; |  1427         var pathOffset = 0; | 
|  1428         var index; |  1428         var index; | 
|  1429         var subPart; |  1429         var subPart; | 
|  1430         unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
      als("/")); |  1430         unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
      als("/")); | 
|  1431         pathOffset += 1; |  1431         pathOffset += 1; | 
|  1432         unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
      uals("civicinfo/v2/")); |  1432         unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
      uals("civicinfo/v2/")); | 
|  1433         pathOffset += 13; |  1433         pathOffset += 13; | 
|  1434         unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
      uals("representatives")); |  1434         unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
      uals("representatives")); | 
| (...skipping 30 matching lines...) Expand all  Loading... | 
|  1465       res.representativeInfoByAddress(address: arg_address, includeOffices: arg_
      includeOffices, levels: arg_levels, roles: arg_roles).then(unittest.expectAsync(
      ((api.RepresentativeInfoResponse response) { |  1465       res.representativeInfoByAddress(address: arg_address, includeOffices: arg_
      includeOffices, levels: arg_levels, roles: arg_roles).then(unittest.expectAsync(
      ((api.RepresentativeInfoResponse response) { | 
|  1466         checkRepresentativeInfoResponse(response); |  1466         checkRepresentativeInfoResponse(response); | 
|  1467       }))); |  1467       }))); | 
|  1468     }); |  1468     }); | 
|  1469  |  1469  | 
|  1470     unittest.test("method--representativeInfoByDivision", () { |  1470     unittest.test("method--representativeInfoByDivision", () { | 
|  1471  |  1471  | 
|  1472       var mock = new common_test.HttpServerMock(); |  1472       var mock = new common_test.HttpServerMock(); | 
|  1473       api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representa
      tives; |  1473       api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representa
      tives; | 
|  1474       var arg_ocdId = "foo"; |  1474       var arg_ocdId = "foo"; | 
|  1475       var arg_levels = buildUnnamed218(); |  1475       var arg_levels = buildUnnamed1017(); | 
|  1476       var arg_recursive = true; |  1476       var arg_recursive = true; | 
|  1477       var arg_roles = buildUnnamed219(); |  1477       var arg_roles = buildUnnamed1018(); | 
|  1478       mock.register(unittest.expectAsync((http.BaseRequest req, json) { |  1478       mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 
|  1479         var path = (req.url).path; |  1479         var path = (req.url).path; | 
|  1480         var pathOffset = 0; |  1480         var pathOffset = 0; | 
|  1481         var index; |  1481         var index; | 
|  1482         var subPart; |  1482         var subPart; | 
|  1483         unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
      als("/")); |  1483         unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
      als("/")); | 
|  1484         pathOffset += 1; |  1484         pathOffset += 1; | 
|  1485         unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
      uals("civicinfo/v2/")); |  1485         unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
      uals("civicinfo/v2/")); | 
|  1486         pathOffset += 13; |  1486         pathOffset += 13; | 
|  1487         unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
      uals("representatives/")); |  1487         unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
      uals("representatives/")); | 
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1520       res.representativeInfoByDivision(arg_ocdId, levels: arg_levels, recursive:
       arg_recursive, roles: arg_roles).then(unittest.expectAsync(((api.Representative
      InfoData response) { |  1520       res.representativeInfoByDivision(arg_ocdId, levels: arg_levels, recursive:
       arg_recursive, roles: arg_roles).then(unittest.expectAsync(((api.Representative
      InfoData response) { | 
|  1521         checkRepresentativeInfoData(response); |  1521         checkRepresentativeInfoData(response); | 
|  1522       }))); |  1522       }))); | 
|  1523     }); |  1523     }); | 
|  1524  |  1524  | 
|  1525   }); |  1525   }); | 
|  1526  |  1526  | 
|  1527  |  1527  | 
|  1528 } |  1528 } | 
|  1529  |  1529  | 
| OLD | NEW |