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