public AppContext()
        {
            _appProfile = AppProfile.FromConfig();

            _dataSourceConfig = new DataSourceConfig(
                _appProfile.DataSource,
                _appProfile.Database,
                _appProfile.Username,
                _appProfile.Password
                );

            _addressRepository     = new AddressRepository(_dataSourceConfig);
            _billingInfoRepository = new BillingInfoRepository(_dataSourceConfig, _addressRepository);
            _contactInfoRepository = new ContactInfoRepository(_dataSourceConfig);
            _supplierRepository    = new SupplierRepository(_dataSourceConfig, _billingInfoRepository, _contactInfoRepository);
            _receiverRepository    = new ReceiverRepository(_dataSourceConfig, _billingInfoRepository, _contactInfoRepository);
            _itemRepository        = new InvoiceItemRepository(_dataSourceConfig);
            _paymentRepository     = new InvoicePaymentRepository(_dataSourceConfig);
            _invoiceRepository     = new InvoiceRepository(_dataSourceConfig, _supplierRepository, _receiverRepository, _itemRepository, _paymentRepository
                                                           );

            _addressService     = new AddressService(_addressRepository);
            _billingInfoService = new BillingInfoService(_billingInfoRepository);
            _contactInfoService = new ContactInfoService(_contactInfoRepository);
            _supplierService    = new SupplierService(_supplierRepository);
            _receiverService    = new ReceiverService(_receiverRepository);
            _itemService        = new InvoiceItemService(_itemRepository);
            _paymentService     = new InvoicePaymentService(_paymentRepository);
            _invoiceService     = new InvoiceService(_invoiceRepository);
        }
Ejemplo n.º 2
0
 public ContactController(IContactInfoService contactInfoService, IMenuLinkService menuLinkService
                          , IWorkContext workContext)
 {
     this._contactInfoService = contactInfoService;
     this._menuLinkService    = menuLinkService;
     this._workContext        = workContext;
 }
Ejemplo n.º 3
0
 public ContactAdminController(ISiteService siteService, IContactInfoService cIS, IContactFormService cFS, IShapeFactory shapeFactory)
 {
     _siteService        = siteService;
     _contactFormService = cFS;
     _contactInfoService = cIS;
     T     = NullLocalizer.Instance;
     Shape = shapeFactory;
 }
Ejemplo n.º 4
0
 public ContactAdminController(ISiteService siteService, IContactInfoService cIS, IContactFormService cFS, IShapeFactory shapeFactory)
 {
     _siteService = siteService;
     _contactFormService = cFS;
     _contactInfoService = cIS;
     T = NullLocalizer.Instance;
     Shape = shapeFactory;
 }
Ejemplo n.º 5
0
 public ContactController(IContactInfoService contactInfoService, IMenuLinkService menuLinkService
                          , IMailSettingService mailSettingService
                          , ISystemSettingService systemSettingService
                          , ISendMailService sendMailService)
 {
     _contactInfoService   = contactInfoService;
     _systemSettingService = systemSettingService;
     _sendMailService      = sendMailService;
 }
Ejemplo n.º 6
0
 public ContactController(IOrchardServices services, IContactInfoService cis, IContactFormService cfs, INotifier notifier, IAuthorizer auth)
 {
     Services = services;
     _notifier = notifier;
     _authorizer = auth;
     _cIS = cis;
     _cFS = cfs;
     T = NullLocalizer.Instance;
 }
Ejemplo n.º 7
0
 public ContactController(IOrchardServices services, IContactInfoService cis, IContactFormService cfs, INotifier notifier, IAuthorizer auth)
 {
     Services    = services;
     _notifier   = notifier;
     _authorizer = auth;
     _cIS        = cis;
     _cFS        = cfs;
     T           = NullLocalizer.Instance;
 }
Ejemplo n.º 8
0
        public AccountService(IAddressService addressService,
                              IRolesService rolesService,
                              IContactInfoService contactInfoService)
        {
            this._addressService = addressService;

            this._rolesService = rolesService;

            this._contactInfoServices = contactInfoService;
        }
Ejemplo n.º 9
0
 public HomeController(IHomePageSliderService homePageSliderService, ISiteIdentityService siteIdentityService, IAboutMeService aboutMeService, IContactInfoService contactInfoService, IArticleService articleService, IMessageService messageService, ICommentService commentService)
 {
     _homePageSliderService = homePageSliderService;
     _siteIdentityService   = siteIdentityService;
     _aboutMeService        = aboutMeService;
     _contactInfoService    = contactInfoService;
     _articleService        = articleService;
     _messageService        = messageService;
     _commentService        = commentService;
 }
 public ContactInformationController(
     IContactInfoService contactInfoService
     , IProvinceService provinceService
     , ILanguageService languageService
     , ILocalizedPropertyService localizedPropertyService
     )
 {
     this._contactInfoService       = contactInfoService;
     this._provinceService          = provinceService;
     this._languageService          = languageService;
     this._localizedPropertyService = localizedPropertyService;
 }
Ejemplo n.º 11
0
 public PostController(
     IPostService postService
     , IMenuLinkService menuLinkService
     , IGalleryService galleryService
     , IWorkContext workContext
     , IGenericControlService genericControlService
     , ICacheManager cacheManager, IContactInfoService contactInfoService)
 {
     _postService     = postService;
     _menuLinkService = menuLinkService;
     _galleryService  = galleryService;
 }
Ejemplo n.º 12
0
 public SummaryController(IMenuLinkService menuLinkService
                          , IProvinceService provinceService, IDistrictService districtService, ISystemSettingService systemSettingService
                          , IContactInfoService contactInfoService
                          , ISettingSeoGlobalService settingSeoGlobal
                          , IWorkContext workContext)
 {
     this._menuLinkService      = menuLinkService;
     this._provinceService      = provinceService;
     this._districtService      = districtService;
     this._systemSettingService = systemSettingService;
     this._contactInfoService   = contactInfoService;
     this._settingSeoGlobal     = settingSeoGlobal;
     this._workContext          = workContext;
 }
        public ContactInformationController(
            IContactInfoService contactInfoService
            , IProvinceService provinceService
            , ILanguageService languageService
            , ILocalizedPropertyService localizedPropertyService
            , ICacheManager cacheManager
            )
        {
            _contactInfoService       = contactInfoService;
            _provinceService          = provinceService;
            _languageService          = languageService;
            _localizedPropertyService = localizedPropertyService;

            //Clear cache
            cacheManager.RemoveByPattern(CacheContactinfoKey);
        }
Ejemplo n.º 14
0
 public SummaryController(IMenuLinkService menuLinkService
                          , IProvinceService provinceService, IDistrictService districtService, ISystemSettingService systemSettingService
                          , IContactInfoService contactInfoService
                          , ISettingSeoGlobalService settingSeoGlobal
                          , IWorkContext workContext
                          , ICacheManager cacheManager, IPostService postService, IStaticContentService staticContentService)
 {
     _menuLinkService      = menuLinkService;
     _provinceService      = provinceService;
     _districtService      = districtService;
     _systemSettingService = systemSettingService;
     _contactInfoService   = contactInfoService;
     _settingSeoGlobal     = settingSeoGlobal;
     _postService          = postService;
     _staticContentService = staticContentService;
 }
Ejemplo n.º 15
0
        public ContactInformationController(
            IContactInfoService contactInfoService
            , IProvinceService provinceService
            , ILanguageService languageService
            , ILocalizedPropertyService localizedPropertyService
            , ICacheManager cacheManager
            )
        {
            this._contactInfoService       = contactInfoService;
            this._provinceService          = provinceService;
            this._languageService          = languageService;
            this._localizedPropertyService = localizedPropertyService;
            _cacheManager = cacheManager;

            //Clear cache
            _cacheManager.RemoveByPattern(CACHE_CONTACTINFO_KEY);
        }
Ejemplo n.º 16
0
        public ShoppingCartController(
            IProductsService productService,
            IOrderService orderService,
            IOrderDetailsService orderDetailsService,
            IContactInfoService contactInfoService,
            IUserService userService)
        {
            Guard.WhenArgument(productService, "productService").IsNull().Throw();
            Guard.WhenArgument(orderService, "orderService").IsNull().Throw();
            Guard.WhenArgument(orderDetailsService, "orderDetailsService").IsNull().Throw();
            Guard.WhenArgument(contactInfoService, "contactInfoService").IsNull().Throw();
            Guard.WhenArgument(userService, nameof(userService)).IsNull().Throw();

            this.productService      = productService;
            this.orderService        = orderService;
            this.orderDetailsService = orderDetailsService;
            this.contactInfoService  = contactInfoService;
            this.userService         = userService;
        }
Ejemplo n.º 17
0
 public GoogleMapController(IContactInfoService contactInfoService)
 {
     _contactInfoService = contactInfoService;
 }
 public ContactInfoController(IContactInfoService contactInfoService)
 {
     _contactInfoService = contactInfoService;
 }
Ejemplo n.º 19
0
 public IndexrController(IContactInfoService iContactInfoService)
 {
     this._iContactInfoService = iContactInfoService;
 }
 public SupplierController(IAddressService addressService, IContactInfoService contactInfoService)
 {
     _supplierService = new SupplierService(addressService, contactInfoService);
 }
Ejemplo n.º 21
0
		public ContactInfoController(IContactInfoService contactInfoService)
		{
			_contactInfoService = contactInfoService;
		}
Ejemplo n.º 22
0
 public AdminMenu(IContactInfoService contactInfoService, IContactFormService contactFormService, IAuthorizer authorizer)
 {
     _contactFormService = contactFormService;
     _contactInfoService = contactInfoService;
     _authorizer = authorizer;
 }
Ejemplo n.º 23
0
 public AdminMenu(IContactInfoService contactInfoService, IContactFormService contactFormService, IAuthorizer authorizer)
 {
     _contactFormService = contactFormService;
     _contactInfoService = contactInfoService;
     _authorizer         = authorizer;
 }
Ejemplo n.º 24
0
 public ContactController(IContactInfoService contactService, IMapper mapper) : base()
 {
     this._contactService = contactService;
     this._mapper         = mapper;
 }
Ejemplo n.º 25
0
 public ReportsController(IContactInfoService contactInfoService)
 {
     _contactInfoService = contactInfoService;
 }
Ejemplo n.º 26
0
 public ContactInfoViewModel(IContactInfoService contactInfoService)
 {
     _contactInfoService = contactInfoService;
 }
Ejemplo n.º 27
0
 public IndexrController(IContactInfoService iContactInfoService)
 {
     this._iContactInfoService = iContactInfoService;
 }
Ejemplo n.º 28
0
 public ContactInfoController(IContactInfoService contactInfoService, IRedisCacheService redisCacheService)
 {
     _contactInfoService = contactInfoService;
     _redisCacheService  = redisCacheService;
 }
Ejemplo n.º 29
0
 public StoreListController(IProvinceService provinceService, IContactInfoService contactInfoService)
 {
     _provinceService    = provinceService;
     _contactInfoService = contactInfoService;
 }
Ejemplo n.º 30
0
        public SupplierService(IAddressService addressService, IContactInfoService contactInfoService)
        {
            this._addressService = addressService;

            this._contactInfoService = contactInfoService;
        }
Ejemplo n.º 31
0
 public FooterAdress(IContactInfoService contactInfoService)
 {
     _contactInfoService = contactInfoService;
 }
Ejemplo n.º 32
0
 public AccountController(IAddressService addressService, IRolesService rolesService, IContactInfoService contactInfoService)
 {
     _accountService = new AccountService(addressService, rolesService, contactInfoService);
 }