Пример #1
0
 public BasketViewModelService(IRepository <Basket> basketRepository,
                               IRepository <CatalogItem> itemRepository,
                               IUriComposer uriComposer,
                               IBasketQueryService basketQueryService)
 {
     _basketRepository   = basketRepository;
     _uriComposer        = uriComposer;
     _basketQueryService = basketQueryService;
     _itemRepository     = itemRepository;
 }
Пример #2
0
 public BasketController(
     ICommandBus commandBus,
     IBasketQueryService basketQueryService,
     IUnauthorizedBasketQueryService unauthorizedBasketQueryService,
     ICookieQueryService cookieQueryService)
 {
     _commandBus                     = commandBus;
     _basketQueryService             = basketQueryService;
     _cookieQueryService             = cookieQueryService;
     _unauthorizedBasketQueryService = unauthorizedBasketQueryService;
 }