public void isDuplicateUserEmailAddress()
        {
            RegistrationProviderDAL objRegistrationDAL = new RegistrationProviderDAL();
            bool returnVal = objRegistrationDAL.isDuplicateUserEmailAddress(Cryptography.Encrypt("*****@*****.**"));

            Assert.AreNotEqual(-1, returnVal, "It should not return  -1");
        }
Esempio n. 2
0
 /// <summary>
 /// Saves user registration requests
 /// </summary>
 /// <param name="userRegistrationRequestBO"></param>
 /// <returns></returns>
 public int SaveUserRegistrationRequest(UserRegistrationRequestBO userRegistrationRequestBO)
 {
     int result = 0;
     if (ValidateUserRegistrationRequest(userRegistrationRequestBO))
     {
         RegistrationProviderDAL objRegistrationProvider = new RegistrationProviderDAL();
         result = objRegistrationProvider.SaveUserRegistrationRequest(userRegistrationRequestBO);
     }
     return result;
 }
Esempio n. 3
0
        /// <summary>
        /// Saves registered users (after user peforms email varification)
        /// </summary>
        /// <param name="registeredUserBO"></param>
        /// <returns></returns>
        public int SaveRegisteredUser(RegisteredUserBO registeredUserBO)
        {
            int result = 0;
            if (ValidateRegisteredUser(registeredUserBO))
            {

                RegistrationProviderDAL objRegistrationProvider = new RegistrationProviderDAL();
                result = objRegistrationProvider.SaveRegisteredUser(registeredUserBO);
            }
            return result;
        }
Esempio n. 4
0
 /// <summary>
 /// Checks for duplicate user email address
 /// </summary>
 /// <param name="emailAddress"></param>
 /// <returns></returns>
 public bool isDuplicateUserEmailAddress(byte[] emailAddress)
 {
     RegistrationProviderDAL objRegistrationProvider = new RegistrationProviderDAL();
     return objRegistrationProvider.isDuplicateUserEmailAddress(emailAddress);
 }