public void Setup() { // model _carEquipment = new CarEquipment(); _carProfile = new CarProfile(); _dayThatIsRented = new DayThatIsRented(); _possibleToRentDay = new PossibleToRentDay(); _message = new Message(); _messagesWithUsers = new MessagesWithUsers(); _user = new User(); //security _carAgeValidator = new CarAgeValidator(); _emailValidator = new EmailValidator(); _licensePlateValidator = new LicensePlateValidator(); _nameValidator = new NameValidator(); _passwordMatchValidator = new PasswordMatchValidator(); _passwordValidator = new PasswordValidator(); _priceValidator = new PriceValidator(); }
/// <summary> /// Returns true if the license plate number is valid. /// </summary> /// <returns></returns> public bool IsValid() { return(LicensePlateValidator.IsValidLicensePlate(PlateNumber)); }