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

            return(new GlossaryViewModel {
                Steps = transformed
            });
        }
예제 #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;
        }
예제 #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);
        }
예제 #4
0
 private GlossaryViewModel GetViewModel(Glossary glossary)
 {
     var transformed = glossary.Steps.Select(x => BuildViewModelStep(x));
     return new GlossaryViewModel {Steps = transformed};
 }
예제 #5
0
 public void Handle(Glossary glossary)
 {
     var generator = new SparkReportGenerator<GlossaryView>(_fileWriter, _pathToTemplateFile);
     generator.Handle(GetViewModel(glossary));
 }
예제 #6
0
        public void Handle(Glossary glossary)
        {
            var generator = new SparkReportGenerator <GlossaryView>(_fileWriter, _pathToTemplateFile);

            generator.Handle(GetViewModel(glossary));
        }