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

            Assert.AreNotEqual(-1,returnVal, "It should not return -1");
        }
        /// <summary>
        /// Saves user registration request
        /// </summary>
        /// <param name="userRegistrationRequestBO"></param>
        /// <returns></returns>
        public int SaveUserRegistrationRequest(UserRegistrationRequestBO userRegistrationRequestBO)
        {
            tblUserRegistrationRequestDto tblUserRegRequestDto = new tblUserRegistrationRequestDto();
            Mapper.CreateMap<UserRegistrationRequestBO, tblUserRegistrationRequestDto>();
            Mapper.Map(userRegistrationRequestBO, tblUserRegRequestDto);

            RegistrationProvider objUserProfileDataProvider = new RegistrationProvider();
            return objUserProfileDataProvider.SaveUserRegistrationRequest(tblUserRegRequestDto);
        }
        /// <summary>
        /// Saves registered users (records moves to this table after email varification process completed successfully)
        /// </summary>
        /// <param name="registeredUserBO"></param>
        /// <returns></returns>
        public int SaveRegisteredUser(RegisteredUserBO registeredUserBO)
        {
            tblRegisteredUserDto tblRegUserDto = new tblRegisteredUserDto();
            Mapper.CreateMap<RegisteredUserBO, tblRegisteredUserDto>();
            Mapper.Map(registeredUserBO, tblRegUserDto);

            RegistrationProvider objUserProfileDataProvider = new RegistrationProvider();
            return objUserProfileDataProvider.SaveRegisteredUser(tblRegUserDto);
        }
        public void SaveRegisteredUser()
        {
            tblRegisteredUserDto objDto = new tblRegisteredUserDto();

            objDto.UserEmail = Cryptography.Encrypt("*****@*****.**");
            objDto.CountryOfRegistration = 101;
            objDto.NewsLetter = true;
            objDto.RegistrationDate = DateTime.Now;
            objDto.RegistrationIP = "192.168.1.101";
            objDto.ConfirmationDate = DateTime.Now;
            objDto.ConfirmationIP = "192.168.1.10";

            RegistrationProvider objRegistrationProvider = new RegistrationProvider();
            int returnVal = objRegistrationProvider.SaveRegisteredUser(objDto);

            Assert.AreEqual(1, returnVal, "It should return 1");
        }
        public void SaveUserRegistrationRequest()
        {
            //Unified Data Store
            tblUserRegistrationRequestDto objDto = new tblUserRegistrationRequestDto();

            objDto.UserEmail = Cryptography.Encrypt("*****@*****.**");
            objDto.CountryOfRegistration = 101;
            objDto.RegistrationDate = DateTime.Now;
            objDto.RegistrationIP = "192.168.1.101";
            objDto.UserStatus = 0;
            objDto.NewsLetter = true;
            objDto.LoginPassword = Cryptography.Encrypt("*****@*****.**");

            RegistrationProvider objUserProfileDataProvider = new RegistrationProvider();
            int returnVal = objUserProfileDataProvider.SaveUserRegistrationRequest(objDto);

            Assert.AreEqual(1, returnVal, "It should return 1");
        }
 /// <summary>
 /// Checks for duplicate email address (User id)
 /// </summary>
 /// <param name="emailAddress"></param>
 /// <returns></returns>
 public bool isDuplicateUserEmailAddress(byte[] emailAddress)
 {
     RegistrationProvider objUserProfileDataProvider = new RegistrationProvider();
     return objUserProfileDataProvider.isDuplicateUserEmailAddress(emailAddress);
 }