// // GET: /Tabs/ public TabsController(ITabsRepository tabsRepository, IJewelRepository jewelRepository, IFileSystem fileSystem, IXmlSourceFactory xmlSourceFactory, IPathBarGenerator pathBarGenerator, IMappingEngine mapper) { this.tabsRepository = tabsRepository; this.jewelRepository = jewelRepository; this.fileSystem = fileSystem; this.xmlSourceFactory = xmlSourceFactory; this.pathBarGenerator = pathBarGenerator; this.mapper = mapper; }
public TabsRepository(IXmlSourceFactory sourceFactory) { var xmldoc = sourceFactory.TabSource(); if (xmldoc == null) { throw new ArgumentNullException("The xmldoc was null"); } base.tabsource = xmldoc; // LoadTabsFromXML(); }
// // GET: /JewelDesign/ public JewelDesignController(IDiamondRepository diamondRepository, IJONFormatter formatter, IMappingEngine mapper, IJewelRepository jewelRepository, IWebHelpers webHelpers, IXmlSourceFactory xmlSourceFactory, IFileSystem fileSystem, DiamondHelpBuilder diamondHelpBuilder, ITabsRepository tabsRepository, IPathBarGenerator pathBarGenerator, ITestimonialRepository testimonialRepository) { this.diamondRepository = diamondRepository; this.formatter = formatter; this.mapper = mapper; this.jewelRepository = jewelRepository; this.webHelpers = webHelpers; this.xmlSourceFactory = xmlSourceFactory; this.fileSystem = fileSystem; this.diamondHelpBuilder = diamondHelpBuilder; this.tabsRepository = tabsRepository; this.pathBarGenerator = pathBarGenerator; this.testimonialRepository = testimonialRepository; }
public DiamondHelpBuilder(IXmlSourceFactory xmlSourceFactory) { source = xmlSourceFactory.DiamondHelpSource(); }