public void Deputy_Method()
 {
   var call = new VotesSearchLawApiCall();
   Assert.False(call.Parameters.ContainsKey("deputy"));
   Assert.True(ReferenceEquals(call, call.Deputy(1)));
   Assert.Equal((long)1, call.Parameters["deputy"]);
 }
    public void Deputy_Method()
    {
      Assert.Throws<ArgumentNullException>(() => IVotesSearchLawApiCallExtensions.Deputy(null, new Deputy()));
      Assert.Throws<ArgumentNullException>(() => new VotesSearchLawApiCall().Deputy(null));

      var call = new VotesSearchLawApiCall();
      Assert.False(call.Parameters.Any());
      Assert.True(ReferenceEquals(call, call.Deputy(new Deputy { Id = 1 })));
      Assert.Equal((long)1, call.Parameters["deputy"]);
    }