public FileNetProxyTest() { _configuration = SetupConfigurations.GetApplicationConfiguration(Directory.GetCurrentDirectory()); _rootConfiguration = new Mock <IOptionsSnapshot <RootConfigurations> >(); _rootConfiguration.Setup(m => m.Value).Returns(_configuration); _certificateEncryption = new CertificateEncryption(_rootConfiguration.Object); _contentEncryptionManger = new ContentEncryptionManger(_certificateEncryption, _rootConfiguration.Object); _mockLogger = new Mock <ILogger <FileNetScan> >(); _fileNetScan = new FileNetScan(_mockLogger.Object, _rootConfiguration.Object); _fileNetProxy = new FileNetProxy(_contentEncryptionManger, _rootConfiguration.Object); _fileNetService = new FileNetService(_fileNetScan, _fileNetProxy); }
public FileNetService(IFileNetScan fileScan, IFileNetProxy fileNetProxy) { _fileScan = fileScan; _fileNetProxy = fileNetProxy; }