public bool Match(MethodInfo method) { TypeInformationExtractor typeExtractor = new TypeInformationExtractor(_parameter); ISpecification <MethodInfo> exactlyOneParameter = new ExactlyOneMethodParameterSpecification(); ISpecification <MethodInfo> parameterTypeMatch = new FirstMethodParameterTypeSpecification(typeExtractor.ExtractType()); ISpecification <MethodInfo> exactlyOneParameterAndParameterTypeMatch = new AndSpecification <MethodInfo>(exactlyOneParameter, parameterTypeMatch); return(exactlyOneParameterAndParameterTypeMatch.IsSatisfiedBy(method)); }
MethodInfo[] GetTargetMethods() { TypeInformationExtractor typeExtractor = new TypeInformationExtractor(_target); return(typeExtractor.GetMethods()); }