public void Init() { Setup(TestContext.CurrentContext); var dfsOptions = new DfsOptions(new BlockOptions(), new DiscoveryOptions(), new RepositoryOptions(FileSystem, Constants.DfsDataSubDir), Substitute.For <KeyChainOptions>(), Substitute.For <SwarmOptions>(), Substitute.For <IDnsClient>()); _keyStoreService = new KeyStoreService(dfsOptions); _keyStoreService.SetPassphraseAsync(new SecureString()).Wait(); }
public async Task SetPassphraseAsync(SecureString passphrase, CancellationToken cancel = default) { await _keyStoreService.SetPassphraseAsync(passphrase, cancel); }