コード例 #1
0
 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);
 }
コード例 #2
0
ファイル: FileNetService.cs プロジェクト: lulzzz/UITest-POC
 public FileNetService(IFileNetScan fileScan, IFileNetProxy fileNetProxy)
 {
     _fileScan     = fileScan;
     _fileNetProxy = fileNetProxy;
 }