Example #1
0
 public void BAddressWithInvalidNameCityOrPostalCode_WhenUpdateValidated_IsFalse()
 {
     BAddress address = new BAddress {
         Street_Number = 1,
         City = "123123123123123123123123123",
         Postal_Code = "VVVVVVVVVV"
     };
     bool valid = address.UpdateValid();
     Assert.AreEqual(valid, false);
 }
Example #2
0
        public void BAddress_WhenCheckedForEquivilance_IsFalse()
        {
            //Arrange: An address with all valid members is created.
            BAddress address = new BAddress();

            //Act: The address is checked to be valid for creation.
            bool valid = address.Equivilant(null);

            //Assert: The address is create valid.
            Assert.AreEqual(valid, false);
        }
Example #3
0
 public void BAddressWithValidNameCityOrPostalCode_WhenUpdateValidated_IsTrue()
 {
     BAddress address = new BAddress {
         Street_Number = 1,
         Street_Name="Street Name",
         City = "City",
         Postal_Code = "VVV VVV"
     };
     bool valid = address.UpdateValid();
     Assert.AreEqual(valid, true);
 }
Example #4
0
 public void BAddress_WhenDeleteValidated_IsTrue()
 {
     BAddress address = new BAddress();
     bool valid = address.DeleteValid();
     Assert.AreEqual(valid, true);
 }