Ejemplo n.º 1
0
        public void DeleteIdentityNoServerResponse()
        {
            HFCAClient client = HFCAClient.Create("http://localhost:99", null);

            client.CryptoSuite = crypto;

            HFCAIdentity ident = client.NewHFCAIdentity("testuser1");

            ident.Delete(admin);
        }
Ejemplo n.º 2
0
        public void TestHFCAIdentityNewInstance()
        {
            HFCAClient client = HFCAClient.Create("http://localhost:99", null);

            client.CryptoSuite = crypto;
            HFCAIdentity ident = client.NewHFCAIdentity("testid");

            Assert.IsNotNull(ident);
            Assert.AreSame(typeof(HFCAIdentity), ident.GetType());
            Assert.AreEqual(ident.EnrollmentId, "testid");
        }