public void TestHFCAIdentityCryptoNull() { HFCAClient client = HFCAClient.Create("http://localhost:99", null); client.CryptoSuite = null; client.NewHFCAAffiliation("org1"); }
public void TestHFCAIdentityIDNull() { HFCAClient client = HFCAClient.Create("http://localhost:99", null); client.CryptoSuite = crypto; client.NewHFCAAffiliation(null); }
public void TestBadAffiliationNameMultipleDots() { HFCAClient client = HFCAClient.Create("http://localhost:99", null); client.CryptoSuite = crypto; client.NewHFCAAffiliation("foo...bar"); }
public void TestBadAffiliationNameEndingDot() { HFCAClient client = HFCAClient.Create("http://localhost:99", null); client.CryptoSuite = crypto; client.NewHFCAAffiliation("foo."); }
public void DeleteAffiliationNoServer() { HFCAClient client = HFCAClient.Create("http://localhost:99", null); client.CryptoSuite = crypto; HFCAAffiliation aff = client.NewHFCAAffiliation("neworg1"); aff.Delete(admin); }
public void GetAffiliationNoServerResponse() { HFCAClient client = HFCAClient.Create("http://localhost:99", null); client.CryptoSuite = crypto; HFCAAffiliation aff = client.NewHFCAAffiliation("neworg1"); aff.Read(admin); }
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()); }