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(); }
public static ActionSource IncludeMethodsPrefixed(this ActionSource source, params string[] prefix) { source.IncludeMethods(y => prefix.Any(z => y.Name.StartsWith(z))); return(source); }