public CartService(IAppSettings appSettings, ILivisUserContext userContext, IMapper mapper, IRequestProcessor processor) { _mapper = mapper; _appSettings = appSettings; _userContext = userContext; _processor = processor; _productService = new ProductService(_userContext, _processor); }
private void InitializeServices(IServiceProvider serviceLocator) { _signInManager = serviceLocator.GetService <SignInManager <LevisUser> >(); _userManager = serviceLocator.GetService <UserManager <LevisUser> >(); _mapper = serviceLocator.GetService <IMapper>(); _processor = serviceLocator.GetService <IRequestProcessor>(); _appSettings = serviceLocator.GetService <IAppSettings>(); _userContext = new UserContext(_userManager, _appSettings, _processor, this); _cartService = new CartService(_appSettings, _userContext, _mapper, _processor); }
public ProductService(ILivisUserContext userContext, IRequestProcessor processor) { _userContext = userContext; _processor = processor; }