// // 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; }
// // 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 TabsViewModelBuilder(string tabKey, string tabId, XDocument tabsource, ITabsRepository tabsRepository, IJewelRepository jewelRepository, IFileSystem fileSystem) { this.tabKey = tabKey; this.tabId = tabId; this.tabsRepository = tabsRepository; this.jewelRepository = jewelRepository; this.fileSystem = fileSystem; this.tabsource = tabsource; //defaults itemsPerPage = 21; page = 1; JewelMediaTypeFilter = new MetalFilter(JewelMediaType.WhiteGold); OrderByPriceFilter = new OrderByPriceFilter(OrderByPrice.LowToHigh); }
public TabsViewModelBuilder(ITabsViewModel model, XDocument tabsource, ITabsRepository tabsRepository, IJewelRepository jewelRepository, IFileSystem fileSystem) { tabKey = model.TabKey; tabId = model.TabId; this.tabsRepository = tabsRepository; this.jewelRepository = jewelRepository; this.fileSystem = fileSystem; this.tabsource = tabsource; //extract from model itemsPerPage = model.ItemsPerPage; page = model.Page; JewelMediaTypeFilter = new MetalFilter(model.MetalFilter); OrderByPriceFilter = new OrderByPriceFilter(model.OrderByPrice); if (model.CustomFilters != null) { CustomFiltersStateList = model.CustomFilters; } }