예제 #1
0
 public OrderService(
     IOrderRepository orderRepository,
     IOrderLineItemRepository orderLineItemRepository)
 {
     _orderRepository         = orderRepository;
     _orderLineItemRepository = orderLineItemRepository;
 }
예제 #2
0
 public OrderController(IOrderRepository orderRepository, IUnitOfWork unitOfWork, IProductRepository productRepository, IOrderLineItemRepository orderLineItemRepository
     )
 {
     _orderRepository = orderRepository;
     _unitOfWork = unitOfWork;
     _productRepository = productRepository;
     _orderLineItemRepository = orderLineItemRepository;
 }
예제 #3
0
 public OrderController(IOrderRepository orderRepository, IUnitOfWork unitOfWork, IProductRepository productRepository, IOrderLineItemRepository orderLineItemRepository
                        )
 {
     _orderRepository         = orderRepository;
     _unitOfWork              = unitOfWork;
     _productRepository       = productRepository;
     _orderLineItemRepository = orderLineItemRepository;
 }
예제 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ShipmentRepository"/> class.
 /// </summary>
 /// <param name="work">
 /// The work.
 /// </param>
 /// <param name="cache">
 /// The cache.
 /// </param>
 /// <param name="orderLineItemRepository">
 /// The order Line Item Repository.
 /// </param>
 public ShipmentRepository(IDatabaseUnitOfWork work, IRuntimeCacheProvider cache, IOrderLineItemRepository orderLineItemRepository)
     : base(work, cache)
 {
     Mandate.ParameterNotNull(orderLineItemRepository, "orderLineItemRepository");
     _orderLineItemRepository = orderLineItemRepository;
 }
예제 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ShipmentRepository"/> class.
 /// </summary>
 /// <param name="work">
 /// The work.
 /// </param>
 /// <param name="cache">
 /// The cache.
 /// </param>
 /// <param name="orderLineItemRepository">
 /// The order Line Item Repository.
 /// </param>
 /// <param name="logger">
 /// The logger.
 /// </param>
 /// <param name="sqlSyntax">
 /// The SQL Syntax.
 /// </param>
 public ShipmentRepository(IDatabaseUnitOfWork work, IRuntimeCacheProvider cache, IOrderLineItemRepository orderLineItemRepository, ILogger logger, ISqlSyntaxProvider sqlSyntax)
     : base(work, cache, logger, sqlSyntax)
 {
     Mandate.ParameterNotNull(orderLineItemRepository, "orderLineItemRepository");
     _orderLineItemRepository = orderLineItemRepository;
 }
예제 #6
0
 public OrderRepository(IOrderLineItemRepository orderLineItemRepository)
 {
     _orderLineItemRepository = orderLineItemRepository;
 }
 public OrderServiceTests()
 {
     _orderRepository         = Substitute.For <IOrderRepository>();
     _orderLineItemRepository = Substitute.For <IOrderLineItemRepository>();
 }