Esempio n. 1
0
 public MethodBodyMapper(IMethodBodyElementFinder elementFinder, MethodDeclaration method)
 {
     _elementFinder     = elementFinder;
     _parentMethod      = method;
     _referenceResolver = new MethodReferenceResolver(method);
     MapElements();
 }
 public FakeInstanceMethodElementFinder(string name, IEnumerable <string> parameters,
                                        IMethodBodyElementFinder methodBodyElementFinder)
 {
     _name = name;
     _methodBodyElementFinder = methodBodyElementFinder;
     _parameters = parameters;
 }
 public FakeInstanceMethodElementFinder(string name, IEnumerable <string> parameters)
 {
     _name       = name;
     _parameters = parameters;
     _methodBodyElementFinder = new FakeIMethodBodyElementFinder();
 }
Esempio n. 4
0
 private MethodBodyMapper GetMapper(IMethodBodyElementFinder elementFinder)
 {
     return(new MethodBodyMapper(elementFinder, _parentMethod));
 }