示例#1
0
 public RackInfoBuilder(
     IGalerySession session,
     IActiveRackService activeRackService,
     IDirectoryMethods directoryMethods
     )
 {
     _session           = session;
     _activeRackService = activeRackService;
     _directoryMethods  = directoryMethods;
 }
示例#2
0
 public BinderFactory(
     IHasher hasher,
     IBinderRepository binderRepository,
     IActiveRackService activeRackServices
     )
 {
     _hasher             = hasher;
     _binderRepository   = binderRepository;
     _activeRackServices = activeRackServices;
 }
示例#3
0
 public PhysicalFilesParser(
     IDirectoryMethods directoryMethods,
     IHasher hasher,
     IActiveRackService activeRackService,
     IBinderFactory binderFactory
     )
 {
     _directoryMethods  = directoryMethods;
     _hasher            = hasher;
     _activeRackService = activeRackService;
     _binderFactory     = binderFactory;
 }
 public FileImportApplication(
     RackInfoBuilder rackInfoBuilder,
     IActiveRackService dbInfoProvider,
     PhysicalFilesParser physicalFilesParser,
     IPersister <Content> contentEntityPersister
     )
 {
     _rackInfoBuilder        = rackInfoBuilder;
     _dbInfoProvider         = dbInfoProvider;
     _physicalFilesParser    = physicalFilesParser;
     _contentEntityPersister = contentEntityPersister;
 }
示例#5
0
        public BinderFactory CreateTestBinder()
        {
            CoreTestData ctd = new();

            IHasher            hasher                      = ctd.CreateTestHasher();
            IBinderRepository  binderRepository            = CreateTestBinderRepository();
            IActiveRackService currentDatabaseInfoProvider = ctd.CreateTestCurrentDatabaseInfoProvider();

            BinderFactory binder = new(hasher, binderRepository, currentDatabaseInfoProvider);

            return(binder);
        }