コード例 #1
0
        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();
        }
コード例 #2
0
 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();
 }
コード例 #3
0
        public void async_int_returning_action_is_action_candidate()
        {
            var method = ReflectionHelper.GetMethod <StatusCodeEndpoint>(x => x.get_status2());

            HttpSettings.IsCandidate(method).ShouldBeTrue();
        }