Exemplo n.º 1
0
        public void ToAddressPostalType_NullRoad_ThrowsException()
        {
            var citizen = new CitizenReadyAddress()
            {
            };

            citizen.ToAddressPostalType();
        }
Exemplo n.º 2
0
        public void ToAddressPostalType_Valid_CorrectPostCodeIdentifier(CitizenReadyAddress citizen)
        {
            var postCode = Utilities.RandomShort();

            citizen.PostCode = postCode;
            var result = citizen.ToAddressPostalType();

            Assert.AreEqual(postCode.ToString(), result.PostCodeIdentifier);
        }
Exemplo n.º 3
0
        public void ToAddressPostalType_Valid_SuiteIdentifierNotNull(CitizenReadyAddress citizen)
        {
            var result = citizen.ToAddressPostalType();

            Assert.IsNotNullOrEmpty(result.SuiteIdentifier);
        }
Exemplo n.º 4
0
        public void ToAddressPostalType_Valid_PostOfficeBoxIdentifierEmpty(CitizenReadyAddress citizen)
        {
            var result = citizen.ToAddressPostalType();

            Assert.IsNullOrEmpty(result.PostOfficeBoxIdentifier);
        }
Exemplo n.º 5
0
        public void ToAddressPostalType_Valid_MailDeliverySublocationIdentifierEmpty(CitizenReadyAddress citizen)
        {
            var result = citizen.ToAddressPostalType();

            Assert.IsNullOrEmpty(result.MailDeliverySublocationIdentifier);
        }
Exemplo n.º 6
0
        public void ToAddressPostalType_Valid_CountryIdentificationCodeNotNull(CitizenReadyAddress citizen)
        {
            var result = citizen.ToAddressPostalType();

            Assert.IsNotNull(result.CountryIdentificationCode);
        }
Exemplo n.º 7
0
        public void ToAddressPostalType_Valid_NotNull(CitizenReadyAddress citizen)
        {
            var result = citizen.ToAddressPostalType();

            Assert.IsNotNull(result);
        }