private ClassDeclarationSyntax StubMethods(INamedTypeSymbol interfaceType, ClassDeclarationSyntax classDclr) { IEnumerable <IMethodSymbol> methodsToStub = RoslynUtils.GetAllMembers <IMethodSymbol>(interfaceType); foreach (IMethodSymbol methodSymbol in methodsToStub) { foreach (IMethodStubber methodStubber in _methodStubbers) { classDclr = methodStubber.StubMethod(classDclr, methodSymbol, interfaceType); } } return(classDclr); }
private ClassDeclarationSyntax StubProperties(INamedTypeSymbol interfaceType, ClassDeclarationSyntax classDclr) { IEnumerable <IPropertySymbol> propertiesToStub = RoslynUtils.GetAllMembers <IPropertySymbol>(interfaceType); foreach (IPropertySymbol propertySymbol in propertiesToStub) { foreach (IPropertyStubber propertyStubber in _propertyStubbers) { classDclr = propertyStubber.StubProperty(classDclr, propertySymbol, interfaceType); } } return(classDclr); }