Ejemplo n.º 1
0
        public void IIRootNullNullFlavorExtensionTest()
        {
            II interaction = new II("1.234.54.32", null);

            interaction.NullFlavor = null;
            Assert.IsTrue(interaction.Validate());
        }
Ejemplo n.º 2
0
        public void IIExampleTest04()
        {
            II token = new II(Guid.NewGuid());

            token.NullFlavor = NullFlavor.NoInformation;
            Assert.IsFalse(token.Validate());
        }
Ejemplo n.º 3
0
        public void IINullFlavorExtensionRootTest()
        {
            II interaction = new II("1.2.3", "extension");

            interaction.NullFlavor = NullFlavor.Other;
            Assert.IsFalse(interaction.Validate());
        }
Ejemplo n.º 4
0
        public void IINullFlavorExtensionRootNullTest()
        {
            II interaction = new II(null, null);

            interaction.NullFlavor = null;
            Assert.IsFalse(interaction.Validate());
        }
Ejemplo n.º 5
0
        public void IIExampleTest03()
        {
            II rootExtension = new II(new OID("1.2.3.4.5.6"), "1234");

            rootExtension.NullFlavor = NullFlavor.Unknown;
            Assert.IsFalse(rootExtension.Validate());
        }
Ejemplo n.º 6
0
        public void IIPublicNullFlavorExtensionRootTest()
        {
            // JF: The II Data must be valid for this run, changing the root a n OID
            II interaction = new II("1.3.6.1", "extension");

            interaction.NullFlavor  = NullFlavor.Other;
            interaction.Displayable = true;
            Assert.IsFalse(II.IsValidPublicFlavor(interaction));
            Assert.IsFalse(interaction.Validate());
            Assert.AreEqual(true, interaction.Displayable);
        }
Ejemplo n.º 7
0
        public void IIExampleTest01()
        {
            II rootExtension  = new II(new OID("1.2.3.4.5"), "1234");
            II rootExtension2 = new II("1.2.3.4.5.6", "1234");

            rootExtension.NullFlavor  = null;
            rootExtension2.NullFlavor = null;
            Console.WriteLine("1= {0}, 2={1}", rootExtension.Root, rootExtension2.Root);
            Assert.IsTrue(rootExtension.Validate());
            Assert.IsTrue(rootExtension2.Validate());
        }
Ejemplo n.º 8
0
        public void IIBusNullFlavorRootExtensionTest()
        {
            // JF: This test assumes a valid II and tests whether a null flavor with proper data is valid
            II interaction = new II("1.3.6.1", "extension");

            interaction.NullFlavor = NullFlavor.Other;
            interaction.Scope      = IdentifierScope.BusinessIdentifier;
            Assert.IsFalse(II.IsValidBusFlavor(interaction));
            Assert.IsFalse(interaction.Validate());
            Assert.AreEqual(IdentifierUse.Business, interaction.Use);
            Assert.AreEqual(null, interaction.Displayable);
        }
Ejemplo n.º 9
0
        public void IIExampleTest02()
        {
            II token  = new II(Guid.NewGuid());
            II token2 = Guid.NewGuid();

            token.Extension   = null;
            token2.Extension  = null;
            token.NullFlavor  = null;
            token2.NullFlavor = null;
            Assert.IsTrue(token.Validate());
            Assert.IsTrue(token2.Validate());
        }
Ejemplo n.º 10
0
 public void IIExampleTest03()
 {
     II rootExtension = new II(new OID("1.2.3.4.5.6"), "1234");
     rootExtension.NullFlavor = NullFlavor.Unknown;
     Assert.IsFalse(rootExtension.Validate());
 }
Ejemplo n.º 11
0
 public void IIExampleTest02()
 {
     II token = new II(Guid.NewGuid());
     II token2 = Guid.NewGuid();
     token.Extension = null;
     token2.Extension = null;
     token.NullFlavor = null;
     token2.NullFlavor = null;
     Assert.IsTrue(token.Validate());
     Assert.IsTrue(token2.Validate());
 }
Ejemplo n.º 12
0
 public void IINullFlavorExtensionRootTest()
 {
     II interaction = new II("1.2.3", "extension");
     interaction.NullFlavor = NullFlavor.Other;
     Assert.IsFalse(interaction.Validate());
 }
Ejemplo n.º 13
0
 public void IIRootNullNullFlavorExtensionTest()
 {
     II interaction = new II("1.234.54.32",null);
     interaction.NullFlavor = null;
     Assert.IsTrue(interaction.Validate());
 }
Ejemplo n.º 14
0
 public void IIBusNullFlavorRootExtensionTest()
 {
     // JF: This test assumes a valid II and tests whether a null flavor with proper data is valid
     II interaction = new II("1.3.6.1", "extension");
     interaction.NullFlavor = NullFlavor.Other;
     interaction.Scope = IdentifierScope.BusinessIdentifier;
     Assert.IsFalse(II.IsValidBusFlavor(interaction));
     Assert.IsFalse(interaction.Validate());
     Assert.AreEqual(IdentifierUse.Business, interaction.Use);
     Assert.AreEqual(null, interaction.Displayable);
 }
Ejemplo n.º 15
0
 public void IIPublicNullFlavorExtensionRootTest()
 {
     // JF: The II Data must be valid for this run, changing the root a n OID
     II interaction = new II("1.3.6.1", "extension");
     interaction.NullFlavor = NullFlavor.Other;
     interaction.Displayable = true;
     Assert.IsFalse(II.IsValidPublicFlavor(interaction));
     Assert.IsFalse(interaction.Validate());
     Assert.AreEqual(true, interaction.Displayable);
 }
Ejemplo n.º 16
0
 public void IIExampleTest04()
 {
     II token = new II(Guid.NewGuid());
     token.NullFlavor = NullFlavor.NoInformation;
     Assert.IsFalse(token.Validate());
 }
Ejemplo n.º 17
0
 public void IIExampleTest01()
 {
     II rootExtension = new II(new OID("1.2.3.4.5"), "1234");
     II rootExtension2 = new II("1.2.3.4.5.6", "1234");
     rootExtension.NullFlavor = null;
     rootExtension2.NullFlavor = null;
     Console.WriteLine("1= {0}, 2={1}", rootExtension.Root, rootExtension2.Root);
     Assert.IsTrue(rootExtension.Validate());
     Assert.IsTrue(rootExtension2.Validate());
 }
Ejemplo n.º 18
0
 public void IINullFlavorExtensionRootNullTest()
 {
     II interaction = new II(null, null);
     interaction.NullFlavor = null;
     Assert.IsFalse(interaction.Validate());
 }