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

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