public void Sorting_Method()
 {
   var call = new LawsLawApiCall();
   Assert.True(ReferenceEquals(call.Sorting(LawsSorting.DateAscending), call));
   Assert.Equal("date_asc", call.Parameters["sort"]);
   Assert.Equal("date", call.Sorting(LawsSorting.DateDescending).Parameters["sort"]);
   Assert.Equal("last_event_date_asc", call.Sorting(LawsSorting.LastEventDateAscending).Parameters["sort"]);
   Assert.Equal("last_event_date", call.Sorting(LawsSorting.LastEventDateDescending).Parameters["sort"]);
   Assert.Equal("name", call.Sorting(LawsSorting.Name).Parameters["sort"]);
   Assert.Equal("number", call.Sorting(LawsSorting.Number).Parameters["sort"]);
   Assert.Equal("responsible_committee", call.Sorting(LawsSorting.ResponsibleCommittee).Parameters["sort"]);
 }
    public void Sorting_Method()
    {
      Assert.Throws<ArgumentNullException>(() => new LawsLawApiCall().Sorting(null));
      Assert.Throws<ArgumentException>(() => new LawsLawApiCall().Sorting(string.Empty));

      var call = new LawsLawApiCall();
      Assert.False(call.Parameters.ContainsKey("sort"));
      Assert.True(ReferenceEquals(call.Sorting("sorting"), call));
      Assert.Equal("sorting", call.Parameters["sort"]);
    }