示例#1
0
 public void TestResponsiblePartyMustHaveAContactNumber()
 {
     PhoneNumber testPhoneNumber = new PhoneNumber();
     testPhoneNumber = TestRelative.ContactNumber;
     Assert.NotNull(testPhoneNumber);
 }
示例#2
0
 public void TestPossibleToHaveOnlyOnePhoneNumber()
 {
     PhoneNumber testNumber = new PhoneNumber("testNumber");
     Assert.NotNull(testNumber.ContactNumber);
 }
示例#3
0
 public void TestResponsiblePartyCanHaveBothHomeAndMobileNumber()
 {
     ResponsibleParty testRelative1 = new ResponsibleParty("first", "last", "testHomeNumber", "testMobileNumber", "testStreet", "testCity");
     PhoneNumber testPhoneNumber = new PhoneNumber();
     testPhoneNumber.Home = testRelative1.ContactNumber.Home;
     testPhoneNumber.Mobile = testRelative1.ContactNumber.Mobile;
     Assert.NotNull(testPhoneNumber.Home);
     Assert.NotNull(testPhoneNumber.Mobile);
 }
示例#4
0
 public void TestPhoneNumberCanBeMobileAndHome()
 {
     PhoneNumber testNumber = new PhoneNumber("testHome", "testMobile");
     Assert.NotNull(testNumber.Home);
     Assert.NotNull(testNumber.Mobile);
 }