コード例 #1
0
 public void SoExecutorCommittee_Method()
 {
   var call = new LawsLawApiCall();
   Assert.False(call.Parameters.ContainsKey("soexecutor_committee"));
   Assert.True(ReferenceEquals(call.SoExecutorCommittee(1), call));
   Assert.Equal((long) 1, call.Parameters["soexecutor_committee"]);
 }
コード例 #2
0
    public void SoExecutorCommittee_Method()
    {
      Assert.Throws<ArgumentNullException>(() => ILawsLawApiCallExtensions.SoExecutorCommittee(null, new Committee()));
      Assert.Throws<ArgumentNullException>(() => new LawsLawApiCall().SoExecutorCommittee(null));

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