public DocumentBuilder(IMemberFinder memberFinder, IFieldFinder fieldFinder, Document document, ClassDeclarationSyntax testClass) { _memberFinder = memberFinder; _fieldFinder = fieldFinder; _document = document; _testClass = testClass; }
internal NullCheckAsserter( IParameterListBuilder paramBuilder, IMemberFinder memberFinder, IMethodInvoker methodInvoker) { Guard.AgainstNull(paramBuilder, nameof(paramBuilder)); Guard.AgainstNull(memberFinder, nameof(memberFinder)); Guard.AgainstNull(methodInvoker, nameof(methodInvoker)); this.paramBuilder = paramBuilder; this.memberFinder = memberFinder; this.methodInvoker = methodInvoker; }
public XUnitSetupGenerator(IClassUnderTestNameFinder classUnderTestNameFinder, IClassUnderTestFinder classUnderTestFinder, IConstructorParametersExtractor constructorParametersExtractor, IFieldDeclarationGenerator fieldDeclarationGenerator, ISetupMethodBodyBuilder setupMethodBodyGenerator, IConstructorGenerator constructorGenerator, IUsingDirectivesGenerator usingDirectivesGenerator, IMemberFinder memberFinder, IFieldFinder fieldFinder) { _classUnderTestNameFinder = classUnderTestNameFinder; _classUnderTestFinder = classUnderTestFinder; _constructorParametersExtractor = constructorParametersExtractor; _fieldDeclarationGenerator = fieldDeclarationGenerator; _setupMethodBodyGenerator = setupMethodBodyGenerator; _constructorGenerator = constructorGenerator; _usingDirectivesGenerator = usingDirectivesGenerator; _memberFinder = memberFinder; _fieldFinder = fieldFinder; }
public DocumentBuilderTests_WithSetupMethodAndFields(ITestOutputHelper testOutput) { _testOutput = testOutput; _memberFinder = new MemberFinder(); _fieldFinder = new FieldFinder(); }
/// <summary> /// Finds the members with. /// </summary> /// <param name="memberFinder">The member finder.</param> /// <returns></returns> public AutoMappingProfileBuilder FindMembersWith(IMemberFinder memberFinder) { _profile.MemberFinder = memberFinder; return this; }
/// <summary> /// Initializes a new instance of the <see cref="AutoMappingProfile"/> class. /// </summary> public AutoMappingProfile() { _conventions = new ConventionProfile(); _isSubClass = t => false; _memberFinder = DefaultMemberFinder.Instance; }
/// <summary> /// Finds the members with. /// </summary> /// <param name="memberFinder">The member finder.</param> /// <returns></returns> public AutoMappingProfileBuilder FindMembersWith(IMemberFinder memberFinder) { _profile.MemberFinder = memberFinder; return(this); }