public void sync_int_returning_action_is_action_candidate() { var method = typeof(StatusCodeEndpoint).GetMethod(nameof(StatusCodeEndpoint.get_status1), BindingFlags.Public | BindingFlags.Static); ActionSource.IsCandidate(method).ShouldBeTrue(); }
public void methods_are_candidate_actions() { ActionSource.IsCandidate(ReflectionHelper.GetMethod <RoutedEndpoint>(x => x.get_with_date_time(DateTime.MinValue))).ShouldBeTrue(); ActionSource.IsCandidate(ReflectionHelper.GetMethod <RoutedEndpoint>(x => x.get_with_dateoffset_time(DateTimeOffset.MaxValue))).ShouldBeTrue(); ActionSource.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()); ActionSource.IsCandidate(method).ShouldBeTrue(); }