protected ConvertTemplateToCSharpTest()
        {
            var context = new ConvertTemplateToCSharpContext();

            _converter = new ConvertTemplateToCSharpHandler(
                new TrimEndFeatureContentAndRemoveEmptyLines(),
                new DetectIndentAdapter(
                    new DetectIndentHandler(new DefaultToTab(), new ParseIndentInformationFromSecondLine()),
                    context
                    ),
                new EnrichFileNameAsWrapperTestClass(context),
                new ConvertTemplateToCSharpCore(
                    context,
                    new Normalizer(
                        new ReplaceWithUnderscore(),
                        new RemoveSpecialCharacters(),
                        new ReturnAsIs()
                        )
                    )
                );
        }
예제 #2
0
 public ConvertMultipleTemplatesToCSharpHandler(ConvertTemplateToCSharpHandler convertTemplateToCSharpHandler)
 {
     _convertTemplateToCSharpHandler = convertTemplateToCSharpHandler;
 }