public void TestPassportValidation( string info1, string info2, string info3, string info4, bool isValid) { var passport = new Passport(info1); passport.AddInfo(info2); passport.AddInfo(info3); passport.AddInfo(info4); passport.IsValid.ShouldBe(isValid); }
public void TestPassportInfo( string info1, string info2, string info3, string info4, int?birthYear, int?issueYear, int?expirationYear, string height, string hairColor, string eyeColor, string passportId, int?countryId) { var passport = new Passport(info1); passport.AddInfo(info2); passport.AddInfo(info3); passport.AddInfo(info4); passport.BirthYear.ShouldBe(birthYear); passport.IssueYear.ShouldBe(issueYear); passport.ExpirationYear.ShouldBe(expirationYear); passport.Height.ShouldBe(height); passport.HairColor.ShouldBe(hairColor); passport.EyeColor.ShouldBe(eyeColor); passport.PassportId.ShouldBe(passportId); passport.CountryId.ShouldBe(countryId); }