static CodeFunction CodeFunctionForUnimplemented(this Project project, Step Step) { return project.Classes() .Where(x => x.Name == Step.Feature.Name) .SelectMany(x => x.Functions()) .FirstOrDefault(x => x.EqualsTo(Step)); }
static CodeFunction CodeFunction(this Project Project, MethodInfo Method) { var DeclaringType = Method.DeclaringType(); return Project.Classes() .Where(x => x.FullName == DeclaringType) .SelectMany(x => x.Functions()) .FirstOrDefault(x => x.EqualsTo(Method)); }