Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="EfOrderRepository" /> class.
        /// </summary>
        /// <param name="shopContext">The shop context.</param>
        public EfOrderRepository(ShopContext shopContext)
        {
            Assert.ArgumentNotNull(shopContext, "shopContext");
            Assert.IsNotNullOrEmpty(shopContext.OrdersDatabaseName, "shopContext.OrdersDatabaseName");

            this.databaseContext = new OrderModel(shopContext.OrdersDatabaseName);
        }
Example #2
0
 public Orders(
     IPaymentRequester requester,
     IOrdersContext context,
     AppConfiguration configuration
     )
 {
     this.requester     = requester;
     this.dbContext     = context;
     this.configuration = configuration;
 }
Example #3
0
 public OrderService(IMapper mapper, IOrdersContext ordersContext)
 {
     _mapper        = mapper;
     _ordersContext = ordersContext;
 }
 public OrdersRepository(IOrdersContext context)
 {
     this._context = context;
 }