コード例 #1
0
        bool AreFieldsValid()
        {
            bool isFirstNameValid         = FirstName.Validate();
            bool isLastNameValid          = LastName.Validate();
            bool isEmailValid             = Email.Validate();
            bool isPasswordValid          = Password.Validate();
            bool isTermsAndConditionValid = TermsAndCondition.Validate();

            return(isFirstNameValid && isLastNameValid && isEmailValid && isPasswordValid && isTermsAndConditionValid);
        }
コード例 #2
0
        private 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);
        }