コード例 #1
0
 public CollectibleExportService(IProductService productService, 
     ICategoryService categoryService,
     IManufacturerService manufacturerService,
     IPictureService pictureService,
     IUrlRecordService urlRecordService,
     IStoreContext storeContext,
     INewsLetterSubscriptionService newsLetterSubscriptionService,
     ICountryService countryService,   //not used
     IStateProvinceService stateProvinceService,
     IConsignorService consignorService,
     IAuthenticationService authenticationService,
     ILogger logger,
     IRepository<AUCountryLotRecord> countrylotRepo,
     IRepository<AUStateProvinceLotRecord> stateprovincelotRepo
     )
 {
     this._productService = productService;
     this._categoryService = categoryService;
     this._manufacturerService = manufacturerService;
     this._pictureService = pictureService;
     this._urlRecordService = urlRecordService;
     this._storeContext = storeContext;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._countryService = countryService;
     this._stateProvinceService = stateProvinceService;
     this._consignorService = consignorService;
     this._authenticationService = authenticationService;
     this._logger = logger;                          //NJM: AUConsignor
     this._countrylotRepo = countrylotRepo;
     this._stateprovincelotRepo = stateprovincelotRepo;
 }
コード例 #2
0
        public ApplyMaximumsTask(IRepository<AUMaxBidJobControlRecord> maxbidjobcontrolRepo,
                                        IRepository<AUMaxBidRecord> maxbidRepo,
                                        IRepository<AULotLastBidChangeRecord> lotlastbidchangeRepo,

                                        ILogger logger, 
                                        IConsignorService consignorService, 
                                        ICustomerService customerService, 
                                        IQueuedEmailService queuedEmailService,
                                        IEmailAccountService emailAccountService,
                                        EmailAccountSettings emailAccountSettings,
                                        IAUCatalogService AUcatalogService,
                                        ILotService lotService)
        {
            //this._customerService = customerService;
            this._logger = logger;
            this._maxbidjobcontrolRepo = maxbidjobcontrolRepo;
            this._maxbidRepo = maxbidRepo;
            this._lotlastbidchangeRepo = lotlastbidchangeRepo;
            this._consignorService = consignorService;
            this._customerService = customerService;
            this._queuedEmailService = queuedEmailService;
            this._emailAccountService = emailAccountService;
            this._emailAccountSettings = emailAccountSettings;
            this._AUcatalogService = AUcatalogService;
            this._lotService = lotService;
        }
コード例 #3
0
        public AUSaleService(
            IRepository<AULotRecord> lotRepo,
            IConsignorService consignorService,
            IAuthenticationService authenticationService,
            IRepository<AUConsignmentLotRecord> consignmentlotRepo,
            IRepository<AUCountryLotRecord> countrylotRepo,
            IRepository<AUStateProvinceLotRecord> stateprovincelotRepo,
            IRepository<AULotLotRecord> lotlotRepo,
            IRepository<AUSaleRecord> saleRepo,
            IProductService productService,
            IDataProvider dataProvider,
            IDbContext dbContext,
            ICategoryService categoryService

            )
        {
            this._lotRepo = lotRepo;
            this._consignorService = consignorService;
            this._authenticationService = authenticationService;
            this._consignmentlotRepo = consignmentlotRepo;
            this._countrylotRepo = countrylotRepo;
            this._stateprovincelotRepo = stateprovincelotRepo;
            this._lotlotRepo = lotlotRepo;
            this._saleRepo = saleRepo;
            this._productService = productService;
            this._dataProvider = dataProvider;
            this._dbContext = dbContext;
            this._categoryService = categoryService;
        }
コード例 #4
0
 public ActivateSaleTask(   IRepository<AUSaleRecord> saleRepo, 
                                 ILogger logger, 
                                 IConsignorService consignorService, 
                                 ICustomerService customerService, 
                                 IQueuedEmailService queuedEmailService,
                                 IEmailAccountService emailAccountService,
                                 EmailAccountSettings emailAccountSettings)
 {
     //this._customerService = customerService;
     this._logger = logger;
     this._saleRepo = saleRepo;
     this._consignorService = consignorService;
     this._customerService = customerService;
     this._queuedEmailService = queuedEmailService;
     this._emailAccountService = emailAccountService;
     this._emailAccountSettings = emailAccountSettings;
 }
コード例 #5
0
        public LotService(
            IRepository<AULotRecord> lotRepo,
            IRepository<AULotActivityRecord> lotactivityRepo,
            IRepository<AUSaleRecord> saleRepo,
            IRepository<AUSaleLotRecord> salelotRepo,
            IRepository<Product> productRepo,
            IRepository<AUBidHistoryRecord> bidhistoryRepo,
            IRepository<AULotLastBidChangeRecord> lotlastbidchangeRepo,

            IConsignorService consignorService,
            IAuthenticationService authenticationService,
            IRepository<AUConsignmentLotRecord> consignmentlotRepo,
            IRepository<AUCountryLotRecord> countrylotRepo,
            IRepository<AUStateProvinceLotRecord> stateprovincelotRepo,
            IRepository<AULotLotRecord> lotlotRepo,
            IProductService productService,
            IDbContext dbContext,
            IDataProvider dataProvider,
            IWorkContext workContext,
            ICacheManager cacheManager


        //    IRepository<AUConsignorRecord> consignorRepo,
        //    IRepository<AUSaleRecord> saleRepo,
           
        //    IRepository<AUSaleLotRecord> salelotRepo,
        //    IRepository<StateProvince> stateprovinceRepo,
        //    IRepository<AUConsignmentRecord> consignmentRepo,
        //    IRepository<AUAddressRecord> addressRepo,
        //    IRepository<Country> countryRepo,
        //    IRepository<AUIncrementRecord> incrementRepo,
        //    IRepository<AUFeesRecord> feesRepo,
        //    IRepository<Customer> customerRepo,
        //    IRepository<GenericAttribute> gaRepo,
        //    ILanguageService languageService,
        //    
        //    IDbContext dbContext,
        //    CatalogSettings catalogSettings,
        //    CommonSettings commonSettings,
        //    IShoppingCartService shoppingCartService,
        //    ICustomerService customerService,
        //    IProductService productService,
            )
        {   
            this._lotRepo = lotRepo;
            this._lotactivityRepo = lotactivityRepo;
            this._saleRepo = saleRepo;
            this._salelotRepo = salelotRepo;
            this._bidhistoryRepo = bidhistoryRepo;
            this._lotlastbidchangeRepo = lotlastbidchangeRepo;

            this._productRepo = productRepo;
            this._consignorService = consignorService;
            this._authenticationService = authenticationService;
            this._consignmentlotRepo = consignmentlotRepo;
            this._countrylotRepo = countrylotRepo;
            this._stateprovincelotRepo = stateprovincelotRepo;
            this._lotlotRepo = lotlotRepo;
            this._productService = productService;
            this._dbContext = dbContext;
            this._dataProvider = dataProvider;
            this._workContext = workContext;
            this._cacheManager = cacheManager;


            //this._consignorRepo = consignorRepo;
        //    this._saleRepo = saleRepo;
        //    this._salelotRepo = salelotRepo;
        //    this._addressRepo = addressRepo;
        //    this._languageService = languageService;
        //    this._dbContext = dbContext;
        //    this._catalogSettings = catalogSettings;
        //    this._commonSettings = commonSettings;
        //    this._shoppingCartService = shoppingCartService;
        //    this._customerService = customerService;
        //    this._productService = productService;
        //    this._consignmentRepo = consignmentRepo;
        //    this._countryRepo = countryRepo;
        //    this._stateprovinceRepo = stateprovinceRepo;
        //    this._incrementRepo = incrementRepo;
        //    this._feesRepo = feesRepo;
        //    this._customerRepo = customerRepo;
        //    this._gaRepo = gaRepo;

        }
コード例 #6
0
        //I think this is the method that uses dependancy injection to create the repos - as opposed to manual
        //see:http://alexwolfthoughts.com/creating-a-generic-repository-with-entity-framework-and-mvc
        public AUPublicController(IRepository<AUConsignorRecord> consignorRepo,
                                        IRepository<AUConsignmentRecord> consignmentRepo,
                                        IRepository<AUConsignorConsignmentRecord> consignorconsignmentRepo,
                                        IRepository<AUConsignorList> consignorlistRepo,
                                        IRepository<AUSaleRecord> saleRepo,
                                        IRepository<AUSessionRecord> sessionRepo,
                                        IRepository<AUIncrementRecord> incrementRepo,
                                        IRepository<AUAddressRecord> addressRepo,
                                        IRepository<AUCombAddress> combAddressRepo,
                                        IRepository<AULotList> lotlistRepo,
                                        IRepository<AUFeesRecord> feesRepo,
                                        IRepository<AUBidHistoryRecord> bidhistoryRepo,

                                        ICacheManager cacheManager,
                                        IPictureService pictureService,
                                        IConsignmentService consignmentservice,
                                        ILotService lotService,
                                        IForumService forumservice,

                                        IConsignorService consignorservice,
                                        IDateTimeHelper dateTimeHelper,
                                        IAuthenticationService authenticationService,
                                        ILocalizationService localizationService,
                                        ICountryService countryService,
                                        IStateProvinceService stateProvinceService, 
                                        IWorkContext workContext,                                        
                                        ICollectibleImportService collectibleimportService, 
                                        //IRepository<AUCombConsignorConsignment> combinedRepo,
                                        ICategoryService categoryService,
                                        IStoreService storeService,
                                        IShippingService shippingService,
                                        IPermissionService permissionService,
                                        IEventPublisher eventPublisher,
                                        ISettingService settings,
                                        IProductService productService,
                                        IDbContext dbContext,
                                        IPhilatelicPdfService philatelicpdfService,
                                        ICollectibleExportService collectibleexportService,
                                        IAUSaleService ausaleService,
                                        IAclService aclService,
                                        IStoreMappingService storeMappingService,
                                        CatalogSettings catalogSettings,
                                        IWebHelper webHelper,
                                        IPriceFormatter priceFormatter,
                                        ICurrencyService currencyService,
                                        IStoreContext storeContext,
                                        MediaSettings mediaSettings,
                                        IPriceCalculationService priceCalculationService,
                                        ISpecificationAttributeService specificationAttributeService,
                                        ITaxService taxService,
                                        ICategoryTemplateService categoryTemplateService,
                                        ICustomerActivityService customerActivityService,
                                        ShoppingCartSettings shoppingCartSettings,
                                        IAUCatalogService AUcatalogService,     
                                        IForumService forumService,             
                                        ICustomerService customerService,      
                                        ForumSettings forumSettings,          
                                        ILogger logger,
                                        IRecentlyViewedProductsService recentlyViewedProductsService,
                                        SeoSettings seoSettings,
                                        IVendorService vendorService,
                                        VendorSettings vendorSettings,
                                        IProductTagService productTagService,
                                        IProductTemplateService productTemplateService,
                                        IProductAttributeParser productAttributeParser,
                                        IManufacturerService manufacturerService,
                                        IMeasureService measureService,
                                        IProductAttributeService productAttributeService,
                                        CustomerSettings customerSettings,
                                        IGenericAttributeService genericAttributeService,
                                        ISearchTermService searchTermService,
                                        IShoppingCartService shoppingCartService,
                                        IProductAttributeFormatter productAttributeFormatter)                         
        {
            _cacheManager = cacheManager;
            _pictureService = pictureService;
            _lotService = lotService;
            _forumservice = forumservice;

            _consignorRepo = consignorRepo;
            _consignmentRepo = consignmentRepo;
            _consignorconsignmentRepo = consignorconsignmentRepo;
            _consignorService = consignorservice;
            _consignmentService = consignmentservice;
            _consignorlistRepo = consignorlistRepo;
            _saleRepo = saleRepo;
            _sessionRepo = sessionRepo;
            _incrementRepo = incrementRepo;
            _addressRepo = addressRepo;
            _combAddressRepo = combAddressRepo;
            _lotlistRepo = lotlistRepo;
            _feesRepo = feesRepo;
            _bidhistoryRepo = bidhistoryRepo;
            _dateTimeHelper = dateTimeHelper;
            _authenticationService = authenticationService;
            _localizationService = localizationService;
            _countryService = countryService;
            _stateProvinceService = stateProvinceService;
            _workContext = workContext;
            _collectibleimportService = collectibleimportService;
            _categoryService = categoryService;
            _storeService = storeService;
            _shippingService = shippingService;
            _permissionService = permissionService;
            _eventPublisher = eventPublisher;
            _settings = settings;
            _productService = productService;
            _dbContext = dbContext;
            _philatelicpdfService = philatelicpdfService;
            _collectibleexportService = collectibleexportService;
            _ausaleService = ausaleService;
            _aclService = aclService;
            _storeMappingService = storeMappingService;
            _catalogSettings = catalogSettings;
            _webHelper = webHelper;
            _priceFormatter = priceFormatter;
            _currencyService = currencyService;
            _storeContext = storeContext;
            _mediaSettings = mediaSettings;
            _priceCalculationService = priceCalculationService;
            _specificationAttributeService = specificationAttributeService;
            _taxService = taxService;
            _categoryTemplateService = categoryTemplateService;
            _customerActivityService = customerActivityService;
            _shoppingCartSettings = shoppingCartSettings;
            _AUcatalogService = AUcatalogService;      
            _forumService = forumService;              
            _customerService = customerService;       
            _forumSettings = forumSettings;            
            _logger = logger;
            _recentlyViewedProductsService = recentlyViewedProductsService;          
            _seoSettings = seoSettings;
            _vendorService = vendorService;
            _vendorSettings = vendorSettings;
            _productTemplateService = productTemplateService;
            _productTagService = productTagService;
            _productAttributeParser = productAttributeParser;
            _manufacturerService = manufacturerService;
            _measureService = measureService;
            _productAttributeService = productAttributeService;
            _customerSettings = customerSettings;
            _genericAttributeService = genericAttributeService;
            _searchTermService = searchTermService;
            _shoppingCartService = shoppingCartService;
            _productAttributeFormatter = productAttributeFormatter;
        }
コード例 #7
0
        //-------------------------------------------------------
        //Possibly deprecate
        //////private readonly IDateTimeHelper _dateTimeHelper;  //helper to format date time
        //////private readonly ILocalizationService _localizationService;
        //////private readonly ICountryService _countryService;
        //////private readonly IStateProvinceService _stateProvinceService;

        //////private readonly IWorkContext _workContext;
        //////private readonly IPermissionService _permissionService;
        //////private readonly ICategoryService _categoryService;
        //////private readonly IStoreService _storeService;
        //////private readonly IShippingService _shippingService;
        
        //////private readonly IDbContext _dbContext;

        //////private readonly IEventPublisher _eventPublisher;

        //TODO: SHOULD YOU MAKE SERVICES PRIVATE READONLY ALL THE TIME?
        //////private readonly ICollectibleImportService _collectibleimportService;

        //////private IPictureService _pictureService;
        //////private ICacheManager _cacheService;

        //////private ISettingService _settings;  //will need this for settings

        //////private readonly IProductService _productService;
        //////private readonly ILotService _lotService;


        #endregion

        #region Ctor
        //I think this is the method that uses dependancy injection to create the repos - as opposed to manual
        //see:http://alexwolfthoughts.com/creating-a-generic-repository-with-entity-framework-and-mvc
        public AUFileController(IAUFileService fileService,
                                IConsignorService consignorService
                               )
        {
            _fileService = fileService;
            _consignorService = consignorService;
        }
コード例 #8
0
 //I think this is the method that uses dependancy injection to create the repos - as opposed to manual
 //see:http://alexwolfthoughts.com/creating-a-generic-repository-with-entity-framework-and-mvc
 public AULotController( IRepository<AULotRecord> lotRepo,
                         IRepository<AUFeesRecord> feesRepo,
                         IRepository<AUFinderFeesRecord> finderfeesRepo,
                         IRepository<AUBidHistoryRecord> bidhistoryRepo,
                         IRepository<AULotLastBidChangeRecord> lotlastbidchangeRepo,
                         IConsignorService consignorservice,
                         IAuthenticationService authenticationService,
                         IProductService productService,
                         ICopyProductService copyProductService,
                         ILotService lotService,
                         ISettingService settings,
                         IStoreService storeService,
                         IWorkContext workContext,
                         IAUSaleService ausaleService,
                         ILocalizationService localizationService
                        )
 {
     _lotRepo = lotRepo;
     _feesRepo = feesRepo;
     _finderfeesRepo = finderfeesRepo;
     _bidhistoryRepo = bidhistoryRepo;
     _consignorService = consignorservice;
     _authenticationService = authenticationService;
     _productService = productService;
     _copyProductService = copyProductService;
     _lotService = lotService;
     _settings = settings;
     _storeService = storeService;
     _workContext = workContext;
     _ausaleService = ausaleService;
     _localizationService = localizationService;
     _lotlastbidchangeRepo = lotlastbidchangeRepo;
 }