public void EventsSearchMode_Method()
 {
   var call = new LawsLawApiCall();
   Assert.False(call.Parameters.ContainsKey("search_mode"));
   Assert.True(ReferenceEquals(call.EventsSearchMode(1), call));
   Assert.Equal(1, call.Parameters["search_mode"]);
 }
 public void EventsSearchMode_Method()
 {
   var call = new LawsLawApiCall();
   Assert.True(ReferenceEquals(call.EventsSearchMode(LawsEventsSearchMode.All), call));
   Assert.Equal(1, call.Parameters["search_mode"]);
   Assert.Equal(3, call.EventsSearchMode(LawsEventsSearchMode.Expected).Parameters["search_mode"]);
   Assert.Equal(2, call.EventsSearchMode(LawsEventsSearchMode.Last).Parameters["search_mode"]);
 }