public void Should_return_flows()
        {
            _flowTemplates.Add(new FlowTemplate {
                Id = 1
            });
            _flowTemplates.Add(new FlowTemplate {
                Id = 2
            });

            var result = _flowTemplateService.GetFlowTemplates();

            Assert.Equal(2, result.Count());
        }
        public ActionResult Index()
        {
            var model = new FlowTemplateIndexViewModel();

            model.Templates = _flowTemplateService.GetFlowTemplates();
            return(View(model));
        }
Example #3
0
        public IEnumerable <FlowTemplateDto> Get()
        {
            var flowTemplates = _templates.GetFlowTemplates().ToList();
            var mapped        = flowTemplates.Select(Map <FlowTemplateDto>).ToList();

            return(mapped);
        }