21 lines
625 B
C#
21 lines
625 B
C#
using CertMgr.Core.Storage;
|
|
|
|
using NUnit.Framework;
|
|
|
|
namespace certmgrTest;
|
|
|
|
public class CertStoreStorageTest
|
|
{
|
|
[Test]
|
|
public async Task First()
|
|
{
|
|
using (MemoryStream target = new MemoryStream())
|
|
{
|
|
CertStoreStorage storage = new CertStoreStorage();
|
|
CertStoreStorageContext context = new CertStoreStorageContext(CertStoreLocation.User, CertStoreName.My, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags.DefaultKeySet);
|
|
context.Password = "aaa";
|
|
await storage.ReadAsync(target, context, CancellationToken.None);
|
|
}
|
|
}
|
|
}
|