public void SetMobileVerifiedTest() { 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); Account account = target.GetAccount(accountId); target.SetMobileVerified(account); account = target.GetAccount(accountId); Assert.IsTrue(account.IsMobileVerified); }
public void GetAccountTest() { 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); Account expected = null; Account actual; actual = target.GetAccount(accountId); Assert.IsNotNull(actual); }