Esempio n. 1
0
 public CodeGenerator(TemplateEnum fixtureTemplate, string testText, string methodText, string propertyText,
     string typeText, string assertText)
 {
     var access = AccessEnum.@public;
     TestFixtureTemplate = fixtureTemplate;
     TestText = testText;
     MethodText = methodText;
     PropertyText = propertyText;
     TypeText = typeText;
     AssertText = assertText;
     _assertGenerator = new AssertGenerator(assertText);
     _methodGenerator = new MethodGenerator(_assertGenerator, testText);
     _methodSignatureGenerator = new MethodSignatureGenerator(access, methodText);
     _propertGenerator = new PropertyGenerator(access, propertyText);
     _interfaceGenerator = new InterfaceGenerator(access, typeText, _methodSignatureGenerator, _propertGenerator);
 }
 public Generator(
     IEnumerable <IProblemParser> problemParsers,
     IInterfaceGenerator interfaceGenerator,
     IClassGenerator classGenerator,
     ITestClassGenerator testClassGenerator,
     ICsFileSaver csFileSaver,
     IReadmeUpdater readmeUpdater,
     IDirectoryProvider directoryProvider,
     IConfig config,
     ILogger <Generator> logger)
 {
     this.problemParsers     = new ReadOnlyCollection <IProblemParser>(problemParsers.ToArray());
     this.interfaceGenerator = interfaceGenerator;
     this.classGenerator     = classGenerator;
     this.testClassGenerator = testClassGenerator;
     this.csFileSaver        = csFileSaver;
     this.readmeUpdater      = readmeUpdater;
     this.directoryProvider  = directoryProvider;
     this.config             = config;
     this.logger             = logger;
 }
 public ServiceRegistrationInterfacesGenerator(IRegistrationInterfacesFilter filter, ITypeContainsGenericParametersChecker typeContainsGenericParametersChecker, ITypeGenericParametersProvider genericParametersProvider, IInterfaceGenerator interfaceGenerator)
 {
     Filter             = filter;
     InterfaceGenerator = interfaceGenerator;
 }