public override void Setup()
        {
            base.Setup();

            AuthenticationService = new Mock<IUserAuthenticationService>();
            AuthenticationService.Setup(x => x.ReservedUsernames).Returns(new[] { "admin" });

            Controller = new AccountController(Session, Metrics, AuthenticationService.Object);
            ControllerUtilities.SetupControllerContext(Controller);
        }
        public override void Setup()
        {
            base.Setup();

            MailController = new Mock<IMailController>();
            var emailResult = new EmailResult(new Mock<IMailInterceptor>().Object, new Mock<IMailSender>().Object, new MailMessage(), "", "", Encoding.Unicode, false);
            MailController.Setup(x => x.ForgotPassword(It.IsAny<ViewModels.Mail.ForgotPassword>())).Returns(emailResult);
            MailController.Setup(x => x.Welcome(It.IsAny<ViewModels.Mail.Welcome>())).Returns(emailResult);
            UserService = new Mock<IUserService>();
            AuthenticationService = new Mock<IUserAuthenticationService>();
            AuthenticationService.Setup(x => x.ReservedUsernames).Returns(new[] { "admin" });

            Controller = new AccountController(Db, Metrics, Cache, MailController.Object, UserService.Object, AuthenticationService.Object);
            ControllerUtilities.SetupControllerContext(Controller);
        }