public ShippingAddressService(IShippingAddressRepository repo,
                               IMapper mapper,
                               IUserRepository userRepository)
 {
     _repo           = repo;
     _mapper         = mapper;
     _userRepository = userRepository;
 }
 public ProductShippingDetailImpl(IProductShippingDetailRepository productShippingDetailRepository, IProductShoppingRepository productShoppingRepository, IShippingPaymentRepository shippingPaymentRepository, IShippingAddressRepository shippingAddressRepository, IProductRepository productRepository)
 {
     _productShippingDetailRepository = productShippingDetailRepository;
     _productShoppingRepository       = productShoppingRepository;
     _shippingPaymentRepository       = shippingPaymentRepository;
     _shippingAddressRepository       = shippingAddressRepository;
     _productRepository = productRepository;
 }
        public void BillingShippindAddressInitialize()
        {
            _shippingAddressRepository = new ShippingAddressRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>());
            _shippingAddressBL         = new ShippingAddressImpl(_shippingAddressRepository);

            _billingAddressRepository = new BillingAddressRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>());
            _billingAddressBL         = new BillingAddressImpl(_billingAddressRepository);
        }
        public ShippingAddressController(IShippingAddressRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.ToLong();
            this._UserId = view.UserId.ToInt();
            this._OfficeId = view.OfficeId.ToInt();
            this._Catalog = catalog;

            this.ShippingAddressRepository = repository;
        }
 public void ProductInitialize()
 {
     _productShippingDetailRepository = new ProductShippingDetailRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>());
     _productShoppingRepository       = new ProductShoppingRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>());
     _shippingPaymentRepository       = new ShippingPaymentRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>());
     _shippingAddressRepository       = new ShippingAddressRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>());
     _productRepository        = new ProductRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>());
     _IProductShippingDetailBL = new ProductShippingDetailImpl(_productShippingDetailRepository, _productShoppingRepository, _shippingPaymentRepository, _shippingAddressRepository, _productRepository);
 }
Ejemplo n.º 6
0
        public ShippingAddressController(IShippingAddressRepository repository, string catalog, LoginView view)
        {
            this._LoginId  = view.LoginId.ToLong();
            this._UserId   = view.UserId.ToInt();
            this._OfficeId = view.OfficeId.ToInt();
            this._Catalog  = catalog;

            this.ShippingAddressRepository = repository;
        }
        public ShippingAddressController()
        {
            this._LoginId = AppUsers.GetCurrent().View.LoginId.ToLong();
            this._UserId = AppUsers.GetCurrent().View.UserId.ToInt();
            this._OfficeId = AppUsers.GetCurrent().View.OfficeId.ToInt();
            this._Catalog = AppUsers.GetCurrentUserDB();

            this.ShippingAddressRepository = new MixERP.Net.Schemas.Core.Data.ShippingAddress
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId = this._UserId
            };
        }
Ejemplo n.º 8
0
        public ShippingAddressController()
        {
            this._LoginId  = AppUsers.GetCurrent().View.LoginId.ToLong();
            this._UserId   = AppUsers.GetCurrent().View.UserId.ToInt();
            this._OfficeId = AppUsers.GetCurrent().View.OfficeId.ToInt();
            this._Catalog  = AppUsers.GetCurrentUserDB();

            this.ShippingAddressRepository = new MixERP.Net.Schemas.Core.Data.ShippingAddress
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId  = this._UserId
            };
        }
Ejemplo n.º 9
0
 public OrderService(IOrderRepository repo,
                     IMapper mapper,
                     IShoppingCartRepository shoppingCartRepository,
                     IShippingAddressRepository shippingAddressRepository,
                     IUserRepository userRepository,
                     IEmailSenderExtension emailSender,
                     IDocumentService documentService)
 {
     _repo   = repo;
     _mapper = mapper;
     _shoppingCartRepository    = shoppingCartRepository;
     _shippingAddressRepository = shippingAddressRepository;
     _userRepository            = userRepository;
     _emailSender     = emailSender;
     _documentService = documentService;
 }
Ejemplo n.º 10
0
        public SportStoreRepository()
        {
            this.dbContext = new SportStoreDbContext();

            this.cartRepository             = new CartRepository();
            this.categoryRepository         = new CategoryRepository();
            this.configRepository           = new ConfigRepository();
            this.manufacturerRepository     = new ManufacturerRepository();
            this.paymentRepository          = new PaymentMethodRepository();
            this.productRepository          = new ProductRepository();
            this.purchaseRepository         = new PurchaseRepository();
            this.purchasedProductRepository = new PurchasedProductRepository();
            this.reviewRepository           = new ReviewRepository();
            this.roleRepository             = new RoleRepository();
            this.sessionRepository          = new SessionRepository();
            this.shippingAddressRepository  = new ShippingAddressRepository();
            this.userRepository             = new UserRepository();
        }
Ejemplo n.º 11
0
 public ShippingAddressController(IShippingAddressRepository shippingAddressRepository)
 {
     this.shippingAddressRepository = shippingAddressRepository;
 }
Ejemplo n.º 12
0
 public AddressController(ICustomerRepository customerRepo,
     IShippingAddressRepository shippingRepo)
 {
     _customerRepo = customerRepo;
     _shippingRepo = shippingRepo;
 }
 public ShippingAddressImpl(IShippingAddressRepository shippingAddressRepository)
 {
     _shippingAddressRepository = shippingAddressRepository;
 }