Esempio n. 1
0
        public void Test_GenerateRandomHPI_O()
        {
            IHealthcareProviderIdentifierOrganisationGenerator Generator = new HealthcareProviderIdentifierOrganisationGenerator();
            string NewRandom = Generator.Generate();
            IHealthcareProviderIdentifierOrganisation       HPIO;
            IHealthcareProviderIdentifierOrganisationParser Parser = new HealthcareProviderIdentifierOrganisationParser();

            Assert.IsTrue(Parser.TryParse(NewRandom, out HPIO));
        }
Esempio n. 2
0
        public void Test_IHI_HealthcareIdentifierType_IsHPI_O_True()
        {
            string Value = "8003626499446203";
            IHealthcareProviderIdentifierOrganisation       HPIO;
            IHealthcareProviderIdentifierOrganisationParser Parser = new HealthcareProviderIdentifierOrganisationParser();

            Assert.IsTrue(Parser.TryParse(Value, out HPIO));
            Assert.AreEqual("80", HPIO.IndustryCode);
            Assert.AreEqual("036", HPIO.CountryCode);
            Assert.AreEqual("2", HPIO.NumberIssuerCode);
            Assert.AreEqual("649944620", HPIO.UniqueReference);
            Assert.AreEqual("3", HPIO.CheckDigit);
            Assert.AreEqual(Value, HPIO.Value);
        }