Example #1
0
 public InterfaceGenerator(AccessEnum access, string typeText,
     IMethodSignatureGenerator methodSigGenerator, IPropertyGenerator propertyGenerator)
 {
     Access = access;
     TypeText = typeText;
     _methodSignatureGenerator = methodSigGenerator as MethodSignatureGenerator;
     _propertyGenerator = propertyGenerator as PropertyGenerator;
 }
Example #2
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);
 }