예제 #1
0
        public void include_methods()
        {
            source.IncludeClassesSuffixedWithController();
            source.IncludeMethods(x => x.Name.StartsWith("Q"));

            theResultingGraph.ChainFor <OneController>(x => x.Query(null)).ShouldNotBeNull();
            theResultingGraph.ChainFor <OneController>(x => x.Report()).ShouldBeNull();
        }
예제 #2
0
 public static ActionSource IncludeMethodsPrefixed(this ActionSource source, params string[] prefix)
 {
     source.IncludeMethods(y => prefix.Any(z => y.Name.StartsWith(z)));
     return(source);
 }