public XdsOrganization(string organization) { _organization = DataType.Parse(new XON(), organization); }
public XdsOrganization(XON organization) { _organization = organization; }
public void Should_Serialize_LastComponent() { var field = new XON { OrganizationIdentifier = new ST { Value = "XON.OrganizationIdentifier" } }; Assert.AreEqual(Last, field.ToString()); }
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()); }
public void Should_Serialize_FirstComponent() { var field = new XON { OrganizationName = new ST { Value = "XON.OrganizationName" } }; Assert.AreEqual(First, field.ToString()); }