public OrderService( IOrderRepository orderRepository, IOrderLineItemRepository orderLineItemRepository) { _orderRepository = orderRepository; _orderLineItemRepository = orderLineItemRepository; }
public OrderController(IOrderRepository orderRepository, IUnitOfWork unitOfWork, IProductRepository productRepository, IOrderLineItemRepository orderLineItemRepository ) { _orderRepository = orderRepository; _unitOfWork = unitOfWork; _productRepository = productRepository; _orderLineItemRepository = orderLineItemRepository; }
/// <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; }
/// <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; }
public OrderRepository(IOrderLineItemRepository orderLineItemRepository) { _orderLineItemRepository = orderLineItemRepository; }
public OrderServiceTests() { _orderRepository = Substitute.For <IOrderRepository>(); _orderLineItemRepository = Substitute.For <IOrderLineItemRepository>(); }