public void RegisterTest()
        {
            if (accountId == null)
            {
                IAuthenticationProvider authenticationProvider = new AuthenticationProvider(new HttpRuntimeCache());
                ICaptchaProvider captchaProvider = new ReCaptchaProvider();
                IEmailProvider emailProvider = new EmailProvider();
                IMobileProvider mobileProvider = new MobileProvider();
                var target = new AccountProvider(authenticationProvider, captchaProvider, emailProvider,
                                                 mobileProvider);

                string captchaChallenge = "test";
                string captchaResponse = "test";
                string ipAddress = "127.0.0.1";
                string authId = string.Empty;
                bool accountExists = true;
                bool accountExistsExpected = false;
                bool captchaValid = false;
                bool captchaValidExpected = true;
                bool expected = true;
                bool actual;
                actual = target.Register(email, firstName, lastName, mobile, captchaChallenge, captchaResponse,
                                         ipAddress, out authId, out accountExists, out captchaValid);
                Assert.IsNotNull(authId);
                Assert.AreEqual(captchaValidExpected, captchaValid);
                Assert.AreEqual(expected, actual);
                accountId = target.GetAccountId(email);
            }
        }
        public void GetAccountIdTest1()
        {
            IAuthenticationProvider authenticationProvider = new AuthenticationProvider(new HttpRuntimeCache());
            ICaptchaProvider captchaProvider = new ReCaptchaProvider();
            IEmailProvider emailProvider = new EmailProvider();
            IMobileProvider mobileProvider = new MobileProvider();
            var target = new AccountProvider(authenticationProvider, captchaProvider, emailProvider, mobileProvider);

            string expected = accountId;
            string actual;
            actual = target.GetAccountId(socialAccountId, socialAccountType);
            Assert.AreEqual(expected, actual);
        }
        public void RegisterSocialTest()
        {
            if (accountId == null)
            {
                IAuthenticationProvider authenticationProvider = new AuthenticationProvider(new HttpRuntimeCache());
                ICaptchaProvider captchaProvider = new ReCaptchaProvider();
                IEmailProvider emailProvider = new EmailProvider();
                IMobileProvider mobileProvider = new MobileProvider();
                var target = new AccountProvider(authenticationProvider, captchaProvider, emailProvider,
                                                 mobileProvider);

                string ipAddress = "127.0.0.1";
                string authId = string.Empty;
                bool accountExists = true;
                bool accountExistsExpected = true;
                bool expected = true;
                bool actual;
                actual = target.RegisterSocial(socialAccountId, socialAccountType, email, firstName, lastName, mobile,
                                               ipAddress, out authId, out accountExists);
                Assert.IsNotNull(authId);
                Assert.AreEqual(expected, actual);
                accountId = target.GetAccountId(socialAccountId, socialAccountType);
            }
        }
        public void GetAccountIdTest()
        {
            IAuthenticationProvider authenticationProvider = new AuthenticationProvider(new HttpRuntimeCache());
            ICaptchaProvider captchaProvider = new ReCaptchaProvider();
            IEmailProvider emailProvider = new EmailProvider();
            IMobileProvider mobileProvider = new MobileProvider();
            var target = new AccountProvider(authenticationProvider, captchaProvider, emailProvider, mobileProvider);

            string accountType = string.Empty;
            string expected = accountId;
            string actual;
            actual = target.GetAccountId(email, accountType);
            accountId = actual;
        }