コード例 #1
0
 public AddShoppingCartCommandHandler(IShopingCartRepository repository, IMapper mapper)
 {
     EnsureArg.IsNotNull(mapper);
     EnsureArg.IsNotNull(repository);
     this.repository = repository;
     this.mapper     = mapper;
 }
コード例 #2
0
 public GetShoppingCartsQueryHandler(IShopingCartRepository repository, IMapper mapper)
 {
     EnsureArg.IsNotNull(mapper);
     EnsureArg.IsNotNull(repository);
     this.repository = repository;
     this.mapper     = mapper;
 }
コード例 #3
0
 public AddProductToShoppingCartCommandHandler(IShopingCartRepository shoppingCartRepository, IProductRepository productRepository)
 {
     EnsureArg.IsNotNull(shoppingCartRepository);
     this.shoppingCartRepository = shoppingCartRepository;
     this.productRepository      = productRepository;
 }
コード例 #4
0
 public OrderService(IOrderRepository orderRepository, IShopingCartRepository shopingCartRepository)
 {
     this.orderRepository       = orderRepository;
     this.shopingCartRepository = shopingCartRepository;
 }
コード例 #5
0
 public DeleteShoppingCartCommandHandler(IShopingCartRepository repository)
 {
     EnsureArg.IsNotNull(repository);
     this.repository = repository;
 }
コード例 #6
0
 public ShopingCartService(IShopingCartRepository cartRepository, IProductRepository productRepository)
 {
     this.cartRepository    = cartRepository;
     this.productRepository = productRepository;
 }