Пример #1
0
        private bool AreFieldsValid()
        {
            bool isName          = Name.Validate();
            bool isPhoneNumber   = PhoneNumber.Validate();
            bool isEmailValid    = Email.Validate();
            bool isPasswordValid = Password.Validate();
            bool isBirthday      = BirthDay.Validate();

            return(isName && isPhoneNumber && isEmailValid && isPasswordValid && isBirthday);
        }
Пример #2
0
        bool AreFieldsValid()
        {
            bool isFirstNameValid         = FirstName.Validate();
            bool isLastNameValid          = LastName.Validate();
            bool isBirthDayValid          = BirthDay.Validate();
            bool isPhoneNumberValid       = PhoneNumber.Validate();
            bool isEmailValid             = Email.Validate();
            bool isPasswordValid          = Password.Validate();
            bool isTermsAndConditionValid = TermsAndCondition.Validate();

            return(isFirstNameValid && isLastNameValid && isBirthDayValid &&
                   isPhoneNumberValid && isEmailValid && isPasswordValid && isTermsAndConditionValid);
        }