コード例 #1
0
ファイル: FileMigrationService.cs プロジェクト: neozhu/MrCMS
 public FileMigrationService(IKernel kernel, FileSystemSettings fileSystemSettings, ISession session,
     ICreateBatch createBatch, UrlHelper urlHelper)
 {
     IEnumerable<IFileSystem> fileSystems = TypeHelper.GetAllConcreteTypesAssignableFrom<IFileSystem>()
         .Select(type => kernel.Get(type) as IFileSystem);
     _allFileSystems =
         fileSystems
             .ToDictionary(system => system.GetType().FullName);
     _fileSystemSettings = fileSystemSettings;
     _session = session;
     _createBatch = createBatch;
     _kernel = kernel;
     _urlHelper = urlHelper;
 }
コード例 #2
0
        public FileMigrationService(IKernel kernel, FileSystemSettings fileSystemSettings, ISession session,
                                    ICreateBatch createBatch, UrlHelper urlHelper)
        {
            IEnumerable <IFileSystem> fileSystems = TypeHelper.GetAllConcreteTypesAssignableFrom <IFileSystem>()
                                                    .Select(type => kernel.Get(type) as IFileSystem);

            _allFileSystems =
                fileSystems
                .ToDictionary(system => system.GetType().FullName);
            _fileSystemSettings = fileSystemSettings;
            _session            = session;
            _createBatch        = createBatch;
            _kernel             = kernel;
            _urlHelper          = urlHelper;
        }
コード例 #3
0
 public OldImportProductsServiceTests()
 {
     _documentService = A.Fake<IDocumentService>();
     _importSpecificationsService = A.Fake<IImportProductSpecificationsService>();
     _importProductVariantsService = A.Fake<IImportProductVariantsService>();
     _importProductImagesService = A.Fake<IImportProductImagesService>();
     _importProductUrlHistoryService = A.Fake<IImportProductUrlHistoryService>();
     _uniquePageService = A.Fake<IUniquePageService>();
     _createBatch = A.Fake<ICreateBatch>();
     _importProductsService = new ImportProductsService(_documentService,
         _importSpecificationsService,
         _importProductVariantsService,
         _importProductImagesService,
         _importProductUrlHistoryService, Session, _uniquePageService, _createBatch, _getNewBrandPage);
 }
コード例 #4
0
 public OldImportProductsServiceTests()
 {
     _documentService                = A.Fake <IDocumentService>();
     _importSpecificationsService    = A.Fake <IImportProductSpecificationsService>();
     _importProductVariantsService   = A.Fake <IImportProductVariantsService>();
     _importProductImagesService     = A.Fake <IImportProductImagesService>();
     _importProductUrlHistoryService = A.Fake <IImportProductUrlHistoryService>();
     _uniquePageService              = A.Fake <IUniquePageService>();
     _createBatch           = A.Fake <ICreateBatch>();
     _importProductsService = new ImportProductsService(_documentService,
                                                        _importSpecificationsService,
                                                        _importProductVariantsService,
                                                        _importProductImagesService,
                                                        _importProductUrlHistoryService, Session, _uniquePageService, _createBatch, _getNewBrandPage);
 }
コード例 #5
0
 public ImportProductsService(IDocumentService documentService,
     IImportProductSpecificationsService importSpecificationsService,
     IImportProductVariantsService importProductVariantsService,
     IImportProductImagesService importProductImagesService,
     IImportProductUrlHistoryService importUrlHistoryService, ISession session,
     IUniquePageService uniquePageService, ICreateBatch createBatch, IGetNewBrandPage getNewBrandPage)
 {
     _documentService = documentService;
     _importSpecificationsService = importSpecificationsService;
     _importProductVariantsService = importProductVariantsService;
     _importProductImagesService = importProductImagesService;
     _importUrlHistoryService = importUrlHistoryService;
     _session = session;
     _uniquePageService = uniquePageService;
     _createBatch = createBatch;
     _getNewBrandPage = getNewBrandPage;
 }
コード例 #6
0
 public ImportProductsService(IDocumentService documentService,
                              IImportProductSpecificationsService importSpecificationsService,
                              IImportProductVariantsService importProductVariantsService,
                              IImportProductImagesService importProductImagesService,
                              IImportProductUrlHistoryService importUrlHistoryService, ISession session,
                              IUniquePageService uniquePageService, ICreateBatch createBatch, IGetNewBrandPage getNewBrandPage)
 {
     _documentService              = documentService;
     _importSpecificationsService  = importSpecificationsService;
     _importProductVariantsService = importProductVariantsService;
     _importProductImagesService   = importProductImagesService;
     _importUrlHistoryService      = importUrlHistoryService;
     _session           = session;
     _uniquePageService = uniquePageService;
     _createBatch       = createBatch;
     _getNewBrandPage   = getNewBrandPage;
 }
コード例 #7
0
 public ImportProductsService(IGetDocumentByUrl <MediaCategory> getByUrl,
                              IMediaCategoryAdminService mediaCategoryAdminService,
                              IImportProductSpecificationsService importSpecificationsService,
                              IImportProductVariantsService importProductVariantsService,
                              IImportProductImagesService importProductImagesService,
                              IImportProductUrlHistoryService importUrlHistoryService, ISession session,
                              IUniquePageService uniquePageService, ICreateBatch createBatch, IGetNewBrandPage getNewBrandPage)
 {
     _getByUrl = getByUrl;
     _mediaCategoryAdminService    = mediaCategoryAdminService;
     _importSpecificationsService  = importSpecificationsService;
     _importProductVariantsService = importProductVariantsService;
     _importProductImagesService   = importProductImagesService;
     _importUrlHistoryService      = importUrlHistoryService;
     _session           = session;
     _uniquePageService = uniquePageService;
     _createBatch       = createBatch;
     _getNewBrandPage   = getNewBrandPage;
 }
コード例 #8
0
 public ImportDocumentsService(ICreateBatch createBatch, IControlBatchRun controlBatchRun)
 {
     _createBatch = createBatch;
     _controlBatchRun = controlBatchRun;
 }
コード例 #9
0
 public CreateUpdateUrlBatch(ICreateBatch createBatch, IControlBatchRun controlBatchRun)
 {
     _createBatch     = createBatch;
     _controlBatchRun = controlBatchRun;
 }
コード例 #10
0
 public ImportDocumentsService(ICreateBatch createBatch, IControlBatchRun controlBatchRun)
 {
     _createBatch     = createBatch;
     _controlBatchRun = controlBatchRun;
 }