public void Disassociate_All_Domains_From_PolicyGroup_Test() { InitDomainRecords(); InitCertPolicyRecords(); InitCertPolicyGroupRecords(); CertPolicyGroupManager groupMgr = CreateManager(); CertPolicyGroup policyGroup = groupMgr.Get("PolicyGroup1"); policyGroup.CertPolicies.Count.Should().Be(0); groupMgr.AssociateToOwner(policyGroup.Name, "domain1.test.com"); groupMgr.AssociateToOwner(policyGroup.Name, "domain2.test.com"); policyGroup = groupMgr.Get("PolicyGroup1"); policyGroup.CertPolicyGroupDomainMaps.Count.Should().Be(2); groupMgr.DisassociateFromDomains(policyGroup.ID); policyGroup = groupMgr.Get("PolicyGroup1"); policyGroup.CertPolicyGroupDomainMaps.Count.Should().Be(0); }