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

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

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

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

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

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

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

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

            aff.Read(admin);
        }
示例#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());
        }