Esempio n. 1
0
        private GlossaryViewModel GetViewModel(Glossary glossary)
        {
            var transformed = glossary.Steps.Select(x => BuildViewModelStep(x));

            return(new GlossaryViewModel {
                Steps = transformed
            });
        }
Esempio n. 2
0
        public int Run()
        {
            var stepDefinitions = _stepProvider
                .GetSteps();
            var descriptions = stepDefinitions
                .Select(x => _stepDescriber.Describe(x));

            foreach (var stepDescription in descriptions.OrderBy(x => x.Description))
                _bus.Raise(new GenericInformation { Text = stepDescription.Description });

            var glossary = new Glossary {Steps = stepDefinitions};
            _formatter.Handle(glossary) ;
            return 0;
        }
Esempio n. 3
0
        public int Run()
        {
            var stepDefinitions = _stepProvider
                                  .GetSteps();
            var descriptions = stepDefinitions
                               .Select(x => _stepDescriber.Describe(x));

            foreach (var stepDescription in descriptions.OrderBy(x => x.Description))
            {
                _bus.Raise(new GenericInformation {
                    Text = stepDescription.Description
                });
            }

            var glossary = new Glossary {
                Steps = stepDefinitions
            };

            _formatter.Handle(glossary);
            return(0);
        }
 private GlossaryViewModel GetViewModel(Glossary glossary)
 {
     var transformed = glossary.Steps.Select(x => BuildViewModelStep(x));
     return new GlossaryViewModel {Steps = transformed};
 }
 public void Handle(Glossary glossary)
 {
     var generator = new SparkReportGenerator<GlossaryView>(_fileWriter, _pathToTemplateFile);
     generator.Handle(GetViewModel(glossary));
 }
Esempio n. 6
0
        public void Handle(Glossary glossary)
        {
            var generator = new SparkReportGenerator <GlossaryView>(_fileWriter, _pathToTemplateFile);

            generator.Handle(GetViewModel(glossary));
        }