// // GET: /Checkout/ public CheckoutController(IShoppingCartWrapper shoppingCartWrapper, ShoppingCartItemsFactory cartItemsFactory, IJewelRepository jewelRepository, IDiamondRepository diamondRepository, IOrderRepository orderRepository, IMappingEngine mapper, IUserMailer mailer, IAuthentication authentication,ICustomerAccountService accountService) { this.shoppingCartWrapper = shoppingCartWrapper; this.cartItemsFactory = cartItemsFactory; this.jewelRepository = jewelRepository; this.diamondRepository = diamondRepository; this.orderRepository = orderRepository; this.mapper = mapper; this.mailer = mailer; this.authentication = authentication; this.accountService = accountService; }
private ShoppingCartItemsFactory CreateDefaultShoppingCartItemsFactory() { var jewelryRepository = new FakeJewelRepository(new FakeSettingManager()); var diamondRepository = new FakeDiamondRepository(mapper); var factory = new ShoppingCartItemsFactory(jewelryRepository,diamondRepository); return factory; }