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 MethodGenerator(IAssertGenerator assertGenerator, string testText) { _assertGenerator = assertGenerator as AssertGenerator; _ifGenerator = new IfStatementGenerator(_assertGenerator); TestText = testText; }
public IfStatementGenerator(IAssertGenerator assertGenerator) { _assertGenerator = assertGenerator as AssertGenerator; _booleanGenerator = new BooleanGenerator(); }