コード例 #1
0
 private bool ArePatientFieldsValid()
 {
     return(IsValid.Valid(FirstName, RegexPatterns.namePattern) &&
            IsValid.Valid(LastName, RegexPatterns.namePattern) &&
            IsValid.Valid(PESEL, RegexPatterns.peselPattern) &&
            IsValid.Valid(Gender, RegexPatterns.genderPattern));
 }
コード例 #2
0
 private bool AreReservationFieldsValid()
 {
     return(IsValid.Valid(FirstName, RegexPatterns.namePattern) &&
            IsValid.Valid(LastName, RegexPatterns.namePattern) &&
            DateTime.Today < StartDate &&
            DateTime.Today < EndDate &&
            IsValid.Valid(AmountOfBeds.ToString(), RegexPatterns.amountOfBedspattern) &&
            IsValid.Valid(Type, RegexPatterns.typePattern));
 }
コード例 #3
0
 private bool AreOpinionFieldsValid()
 {
     return(IsValid.Valid(Rate, RegexPatterns.descriptionPattern) &&
            IsValid.Valid(Description, RegexPatterns.descriptionPattern) &&
            IsValid.Valid(Price.ToString(), RegexPatterns.pricePattern));
 }
コード例 #4
0
 private bool AreVisitFieldsValid()
 {
     return(IsValid.Valid(Diagnose, RegexPatterns.descriptionPattern) &&
            IsValid.Valid(Indications, RegexPatterns.descriptionPattern) &&
            IsValid.Valid(Price.ToString(), RegexPatterns.pricePattern));
 }