public void TestEmptyName() { options.Names.Clear(); var actual = FhirUtility.GenerateCandidateRegistry(options); Assert.AreEqual(0, actual.Name.Count); }
public void TestEmptyGender() { options.Gender = null; var actual = FhirUtility.GenerateCandidateRegistry(options); Assert.AreEqual(AdministrativeGender.Unknown, actual.Gender); }
public void TestEmptyDateOfBirth() { options.DateOfBirthOptions = null; var actual = FhirUtility.GenerateCandidateRegistry(options); Assert.IsNull(actual.BirthDate); }
public void TestEmptyAlternateIdentifiers() { options.OtherIdentifiers.Clear(); var actual = FhirUtility.GenerateCandidateRegistry(options); Assert.AreEqual(0, actual.Identifier.Count); }
public void TestEmptyAddress() { options.Addresses.Clear(); var actual = FhirUtility.GenerateCandidateRegistry(options); Assert.IsNull(actual.Address.Select(x => x.City).FirstOrDefault()); Assert.IsNull(actual.Address.Select(x => x.Country).FirstOrDefault()); Assert.IsNull(actual.Address.Select(x => x.Line).FirstOrDefault()); Assert.IsNull(actual.Address.Select(x => x.State).FirstOrDefault()); Assert.IsNull(actual.Address.Select(x => x.PostalCode).FirstOrDefault()); }
public void TestEmptyPhone() { var actual = FhirUtility.GenerateCandidateRegistry(options); Assert.AreEqual(0, actual.Telecom.Count); }