Exemplo n.º 1
0
        public void ProfileAssertionHandling()
        {
            ResourceEntry<Patient> p = new ResourceEntry<Patient>();

            var prof1 = new Uri("http://profiles.com/important/profiles/1");
            var prof2 = new Uri("http://profiles.com/important/profiles/2");

            p.AddProfileAssertion(prof1);
            p.AddProfileAssertion(prof2);
            Assert.AreEqual(2, p.Tags.Count());

            Assert.IsTrue(p.GetAssertedProfiles().Contains(prof1));
            Assert.IsTrue(p.GetAssertedProfiles().Contains(prof2));

            p.RemoveProfileAssertion(prof2);
            Assert.IsTrue(p.GetAssertedProfiles().Contains(prof1));
            Assert.IsFalse(p.GetAssertedProfiles().Contains(prof2));
        }
Exemplo n.º 2
0
        public void ProfileAssertionHandling()
        {
            ResourceEntry <Patient> p = new ResourceEntry <Patient>();

            var prof1 = new Uri("http://profiles.com/important/profiles/1");
            var prof2 = new Uri("http://profiles.com/important/profiles/2");

            p.AddProfileAssertion(prof1);
            p.AddProfileAssertion(prof2);
            Assert.AreEqual(2, p.Tags.Count());

            Assert.IsTrue(p.GetAssertedProfiles().Contains(prof1));
            Assert.IsTrue(p.GetAssertedProfiles().Contains(prof2));

            p.RemoveProfileAssertion(prof2);
            Assert.IsTrue(p.GetAssertedProfiles().Contains(prof1));
            Assert.IsFalse(p.GetAssertedProfiles().Contains(prof2));
        }