Example #1
0
        public void Startup()
        {
            _orderRepository = new TestOrderRepository();
            _catalogRepository = new TestCatalogRepository();
            _addressValidation = new TestAddressValidator();
            _shippingRepository = new TestShippingRepository();
            _shippingService = new SimpleShippingService(_shippingRepository);
            _taxRepository = new TestTaxRepository();
            _taxService = new RegionalSalesTaxService(_taxRepository);
            _orderService = new OrderService(_orderRepository,_catalogRepository,_shippingRepository,_shippingService);
            _personalizationRepository = new TestPersonalizationRepository();
            _personalizationService = new PersonalizationService(_personalizationRepository,_orderRepository, _orderService,_catalogRepository);
            _catalogService = new CatalogService(_catalogRepository,_orderService);
            _paymentService = new FakePaymentService();
            _incentiveRepository = new TestIncentiveRepository();
            _incentiveService = new IncentiveService(_incentiveRepository);

            //this service throws the sent mailers into a collection
            //and does not use SMTP
            _mailerService = new TestMailerService();
            _inventoryRepository = new TestInventoryRepository();
            _inventoryService = new InventoryService(_inventoryRepository,_catalogService);
            _mailerRepository = new TestMailerRepository();
            _pipeline=new DefaultPipeline(
                _addressValidation,_paymentService,
                _orderService,_mailerService,
                _inventoryService
                );


        }
Example #2
0
        public void Startup()
        {
            _orderRepository           = new TestOrderRepository();
            _catalogRepository         = new TestCatalogRepository();
            _addressValidation         = new TestAddressValidator();
            _shippingRepository        = new TestShippingRepository();
            _shippingService           = new SimpleShippingService(_shippingRepository);
            _taxRepository             = new TestTaxRepository();
            _taxService                = new RegionalSalesTaxService(_taxRepository);
            _orderService              = new OrderService(_orderRepository, _catalogRepository, _shippingRepository, _shippingService);
            _personalizationRepository = new TestPersonalizationRepository();
            _personalizationService    = new PersonalizationService(_personalizationRepository, _orderRepository, _orderService, _catalogRepository);
            _catalogService            = new CatalogService(_catalogRepository, _orderService);
            _paymentService            = new FakePaymentService();
            _incentiveRepository       = new TestIncentiveRepository();
            _incentiveService          = new IncentiveService(_incentiveRepository);

            //this service throws the sent mailers into a collection
            //and does not use SMTP
            _mailerService       = new TestMailerService();
            _inventoryRepository = new TestInventoryRepository();
            _inventoryService    = new InventoryService(_inventoryRepository, _catalogService);
            _mailerRepository    = new TestMailerRepository();
            _pipeline            = new DefaultPipeline(
                _addressValidation, _paymentService,
                _orderService, _mailerService,
                _inventoryService
                );
        }
        public PersonalizationViewModel()
        {
            _dialogs = new DialogObjects();
            _dialogs.SetViewModel(this);

            _service = new PersonalizationService();

            AccentCmd = new DelegateCommand <string>(OnSetAccent);
            ThemeCmd  = new DelegateCommand <string>(OnSetTheme);
        }
        public DeviceFeaturesPage()
        {
            InitializeComponent();

            _vibrateService         = Injector.Get <IVibrateService>();
            _deviceInfoService      = Injector.Get <IDeviceInfoService>();
            _statusBarService       = Injector.Get <IStatusBarService>();
            _localStorageService    = Injector.Get <ILocalStorageService>();
            _personalizationService = Injector.Get <IPersonalizationService>();
            _dialogService          = Injector.Get <IDialogService>();
        }
 public AccountController(IShoppingCartService shoppingCartService,
                          IAuthenticationService authenticationService,
                          IPersonalizationService personalizationService,
                          IUserRepository userRepository,
                          IAuthorizationService authorizationService)
 {
     _shoppingCartService = shoppingCartService;
     _authenticationService = authenticationService;
     _personalizationService = personalizationService;
     _userRepository = userRepository;
     _authorizationService = authorizationService;
 }
        public CatalogController(ICatalogService catalogService, 
            IPersonalizationService personalizationService) {

            _catalogService = catalogService;
            _personalizationService = personalizationService;
        }
 public CatalogController(ICatalogService catalogService,
                          IPersonalizationService personalizationService)
 {
     _catalogService         = catalogService;
     _personalizationService = personalizationService;
 }
Example #8
0
 public PersonalizationController(IPersonalizationService pService)
 {
     _pService = pService;
 }
 public PersonalizationController(IPersonalizationService pService) {
     _pService = pService;
 }