Exemplo n.º 1
0
 public void TestInitialize()
 {
     _definitionProvider = new TestDefinitionProvider();
     _dataProvider       = new TestDataProvider();
     _generator          = new FragmentGenerators(_definitionProvider, _dataProvider);
     _macroVariables     = new TestMacroVariables();
 }
Exemplo n.º 2
0
        private ISentenceFragment BuildSentenceFragment(IFragmentGenerators fragmentGenerator, BlockItem blockItem)
        {
            var sentenceFragment = fragmentGenerator.CreateSentenceFragment(
                blockItem.MetricCode,
                blockItem.VariableCodes);

            return(sentenceFragment);
        }
Exemplo n.º 3
0
        public void TestInitialize()
        {
            _definitionProvider = new TestDefinitionProvider();
            _dataProvider       = new TestDataProvider();
            _generator          = new FragmentGenerators(_definitionProvider, _dataProvider);
            _macroVariables     = new TestMacroVariables();
            var direction = new Direction(TestSynonyms.GetSynonyms());

            _renderer = new Basic10KRenderer(_macroVariables, _definitionProvider.Templates, direction);
        }
Exemplo n.º 4
0
 public void BuildSentenceFragments(IFragmentGenerators generator, Block[] blocks)
 {
     foreach (var block in blocks)
     {
         foreach (var blockItem in block.BlockItems)
         {
             SentenceFragments.Add(BuildSentenceFragment(generator, blockItem));
         }
     }
 }