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

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