public void sync_int_returning_action_is_action_candidate() { var method = typeof(StatusCodeEndpoint).GetMethod(nameof(StatusCodeEndpoint.get_status1), BindingFlags.Public | BindingFlags.Static); HttpSettings.IsCandidate(method).ShouldBeTrue(); }
public void methods_are_candidate_actions() { HttpSettings .IsCandidate(ReflectionHelper.GetMethod <RoutedEndpoint>(x => x.get_with_date_time(DateTime.MinValue))) .ShouldBeTrue(); HttpSettings .IsCandidate(ReflectionHelper.GetMethod <RoutedEndpoint>(x => x.get_with_dateoffset_time(DateTimeOffset.MaxValue))).ShouldBeTrue(); HttpSettings.IsCandidate(ReflectionHelper.GetMethod <RoutedEndpoint>(x => x.get_with_number_value(55))) .ShouldBeTrue(); }
public void async_int_returning_action_is_action_candidate() { var method = ReflectionHelper.GetMethod <StatusCodeEndpoint>(x => x.get_status2()); HttpSettings.IsCandidate(method).ShouldBeTrue(); }