Пример #1
0
 public DocumentService(IBaseRepository<Document> documentRepository, 
     DocumentCacheService cacheService,
     DocumentConvertService documentConvertService,
     MessageBus bus,
     ImageService imageService,
     IStorePolicy storePolicy)
 {
     _documentRepository = documentRepository;
     _cacheService = cacheService;
     _documentConvertService = documentConvertService;
     _bus = bus;
     _imageService = imageService;
     _storePolicy = storePolicy;
 }
Пример #2
0
 public DocumentService(IBaseRepository <Document> documentRepository,
                        DocumentCacheService cacheService,
                        DocumentConvertService documentConvertService,
                        MessageBus bus,
                        ImageService imageService,
                        IStorePolicy storePolicy)
 {
     _documentRepository     = documentRepository;
     _cacheService           = cacheService;
     _documentConvertService = documentConvertService;
     _bus          = bus;
     _imageService = imageService;
     _storePolicy  = storePolicy;
 }
 public void SetUp()
 {
     _documentConvertService = new DocumentConvertService(_documenConverter, _storePolicy);
 }