public void RemoveIssuerShouldPass()
        {
            XmlPolicyStore store = new XmlPolicyStore("My Xml Store Path", new MockXmlRepository(@"..\..\content\claimMappings-PassingTest4.xml"));

            store.RemoveIssuer(new Uri("http://localhost/1"), new Issuer("http://myIssuer21"));

            Assert.AreEqual(1, store.RetrieveScopes().ElementAt(0).Issuers.Count);
        }
        public void RemoveIssuerShouldThrowIsThereAreRulesForIssuer()
        {
            XmlPolicyStore store = new XmlPolicyStore("My Xml Store Path", new MockXmlRepository(@".\content\claimMappings-FailingTest12.xml"));

            store.RemoveIssuer(new Uri("http://localhost/1"), new Issuer("http://myIssuer1"));

            Assert.AreEqual(1, store.RetrieveScopes().ElementAt(0).Issuers.Count());
        }
        public void RemoveIssuerShouldThrowIsThereAreRulesForIssuer()
        {
            XmlPolicyStore store = new XmlPolicyStore("My Xml Store Path", new MockXmlRepository(@"..\..\content\claimMappings-FailingTest12.xml"));

            Assert.Throws <PolicyScopeException>(() => store.RemoveIssuer(new Uri("http://localhost/1"), new Issuer("http://myIssuer1")));
        }