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

            client.CryptoSuite = null;
            client.NewHFCAAffiliation("org1");
        }
Esempio n. 2
0
        public void TestHFCAIdentityIDNull()
        {
            HFCAClient client = HFCAClient.Create("http://localhost:99", null);

            client.CryptoSuite = crypto;
            client.NewHFCAAffiliation(null);
        }
Esempio n. 3
0
        public void TestBadAffiliationNameMultipleDots()
        {
            HFCAClient client = HFCAClient.Create("http://localhost:99", null);

            client.CryptoSuite = crypto;
            client.NewHFCAAffiliation("foo...bar");
        }
Esempio n. 4
0
        public void TestBadAffiliationNameEndingDot()
        {
            HFCAClient client = HFCAClient.Create("http://localhost:99", null);

            client.CryptoSuite = crypto;
            client.NewHFCAAffiliation("foo.");
        }
Esempio n. 5
0
        public void DeleteAffiliationNoServer()
        {
            HFCAClient client = HFCAClient.Create("http://localhost:99", null);

            client.CryptoSuite = crypto;
            HFCAAffiliation aff = client.NewHFCAAffiliation("neworg1");

            aff.Delete(admin);
        }
Esempio n. 6
0
        public void GetAffiliationNoServerResponse()
        {
            HFCAClient client = HFCAClient.Create("http://localhost:99", null);

            client.CryptoSuite = crypto;
            HFCAAffiliation aff = client.NewHFCAAffiliation("neworg1");

            aff.Read(admin);
        }
Esempio n. 7
0
        public void TestHFCAIdentityNewInstance()
        {
            HFCAClient client = HFCAClient.Create("http://localhost:99", null);

            client.CryptoSuite = crypto;
            HFCAAffiliation aff = client.NewHFCAAffiliation("org1");

            Assert.IsNotNull(aff);
            Assert.AreSame(typeof(HFCAAffiliation), aff.GetType());
        }