Exemple #1
0
 public XdsOrganization(string organization)
 {
     _organization = DataType.Parse(new XON(), organization);
 }
Exemple #2
0
 public XdsOrganization(XON organization)
 {
     _organization = organization;
 }
Exemple #3
0
 public void Should_Serialize_LastComponent()
 {
     var field = new XON
     {
         OrganizationIdentifier = new ST { Value = "XON.OrganizationIdentifier" }
     };
     Assert.AreEqual(Last, field.ToString());
 }
Exemple #4
0
 public void Should_Serialize_AllComponents()
 {
     var field = new XON
     {
         OrganizationName = new ST { Value = "XON.OrganizationName" },
         OrganizationNameTypeCode = new IS { Value = "XON.OrganizationNameTypeCode" },
         IdNumber = new NM { Value = 17023m },
         CheckDigit = new NM { Value = 3m },
         CheckDigitScheme = new ID { Value = "XON.CheckDigitScheme" },
         AssigningAuthority = new HD
         {
             NamespaceId = new IS { Value = "XON.AssigningAuthority.NamespaceId" },
             UniversalId = new ST { Value = "XON.AssigningAuthority.UniversalId" },
             UniversalIdType = new ID { Value = "XON.AssigningAuthority.UniversalIdType" }
         },
         IdentifierTypeCode = new ID { Value = "XON.IdentifierTypeCode" },
         AssigningFacility = new HD
         {
             NamespaceId = new IS { Value = "XON.AssigningFacility.NamespaceId" },
             UniversalId = new ST { Value = "XON.AssigningFacility.UniversalId" },
             UniversalIdType = new ID { Value = "XON.AssigningFacility.UniversalIdType" }
         },
         NameRepresentationCode = new ID { Value = "XON.NameRepresentationCode" },
         OrganizationIdentifier = new ST { Value = "XON.OrganizationIdentifier" }
     };
     Assert.AreEqual(All, field.Encode());
 }
Exemple #5
0
 public void Should_Serialize_FirstComponent()
 {
     var field = new XON
     {
         OrganizationName = new ST { Value = "XON.OrganizationName" }
     };
     Assert.AreEqual(First, field.ToString());
 }