private void CreatePanelbarItem(PanelBarItemFactory item, AccordionItemContainer accordionItem, IAccordionContentSpecificationProcessor specificationProcessor) { var content = specificationProcessor.GetContent(accordionItem); item.Add().Text(accordionItem.Title).Expanded(accordionItem.Expanded) .Content(content); }
public PanelBarItemFactoryTests() { Mock <ViewContext> viewContext = new Mock <ViewContext>(); item = new PanelBarItem(); factory = new PanelBarItemFactory(item, viewContext.Object); }
public PanelBarItemFactoryTests() { Mock<ViewContext> viewContext = new Mock<ViewContext>(); item = new PanelBarItem(); factory = new PanelBarItemFactory(item, viewContext.Object); }