Ejemplo n.º 1
0
 public ServiceRegistrationFlagGenerator(IBaseTypeFinder baseTypeFinder, IServiceRegistrationInterfacesGenerator interfacesGenerator,
                                         IConstructorGenerator constructorGenerator, IConstructorInfoListGenerator constructorInfoListGenerator,
                                         IDefaultConstructorInfoProvider defaultConstructorInfoProvider)
 {
     BaseTypeFinder                 = baseTypeFinder;
     InterfacesGenerator            = interfacesGenerator;
     ConstructorGenerator           = constructorGenerator;
     ConstructorInfoListGenerator   = constructorInfoListGenerator;
     DefaultConstructorInfoProvider = defaultConstructorInfoProvider;
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
 public ConstructorProvider(IConstructorChecker constructorChecker, IDefaultConstructorProvider defaultConstructorProvider, IConstructorGenerator constructorGenerator)
 {
     ConstructorChecker         = constructorChecker;
     DefaultConstructorProvider = defaultConstructorProvider;
     ConstructorGenerator       = constructorGenerator;
 }
Ejemplo n.º 4
0
 public ConstructorListGenerator(IConstructorGenerator constructorGenerator)
 {
     ConstructorGenerator = constructorGenerator;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Creates the code generation class using the given components for code generation.
 /// </summary>
 /// <param name="fieldGenerator">A field generator to use for generating the field used to store the object that accesses the database</param>
 /// <param name="constructorGenerator">A constructor generator used for generating an initializing constructor</param>
 /// <param name="methodGenerator">A method generator used for generating the method implementations of the class</param>
 public DbClassGenerator(IClassFieldGenerator fieldGenerator, IConstructorGenerator constructorGenerator, IMethodGenerator methodGenerator)
 {
     this.fieldGenerator       = Preconditions.CheckNotNull(fieldGenerator, nameof(fieldGenerator));
     this.constructorGenerator = Preconditions.CheckNotNull(constructorGenerator, nameof(constructorGenerator));
     this.methodGenerator      = Preconditions.CheckNotNull(methodGenerator, nameof(methodGenerator));
 }