public static void Setup(TestContext testContext)
        {
            var mockedUserRepository = new Mock<IUserRepository>();
            _mockedSiteConfiguration = new Mock<ISiteConfiguration>();
            _mockedHttpResponseBase = new Mock<HttpResponseBase>();
            _mockedHttpRequestBase = new Mock<HttpRequestBase>();

            _mockedSiteConfiguration.Setup(x => x.SecureMode).Returns(false);

            mockedUserRepository.Setup(x => x.FetchUserByEmailAddress("*****@*****.**"))
                .Returns((IUser)null);

            mockedUserRepository.Setup(x => x.FetchUserByEmailAddress("*****@*****.**"))
                .Returns(new User()
                {
                    EmailAddress = "*****@*****.**",
                    PasswordHash = "HyeF+GbkROa/eaUyYgVqCm8zMdNn/AEIzOnd+luTsgQ=",
                    PasswordSalt = "i2U3DxA=",
                    FirstName = "Margaret",
                    MiddleName = "J",
                    LastName = "Smith",
                    BusinessEntityID = 303,
                    CustomerID = 29490,
                    PersonID = 303,
                    Title = "Ms."
                });

            mockedUserRepository.Setup(x => x.FetchUserByEmailAddress("*****@*****.**"))
                .Returns(new User()
                {
                    EmailAddress = "*****@*****.**",
                    FirstName = "Brenda",
                    LastName = "Garcia"
                });

            AutoMapperConfig.RegisterMapping();

            // In the future maybe mock PasswordManager too.
            _userProvider = new UserProvider(mockedUserRepository.Object, new PasswordManager(),
                _mockedSiteConfiguration.Object);
        }
        public static void Setup(TestContext testContext)
        {
            var mockedUserRepository = new Mock<IUserRepository>();
            var passwordManager = new PasswordManager();
            _mockedSiteConfiguration = new Mock<ISiteConfiguration>();
            _mockedHttpResponseBase = new Mock<HttpResponseBase>();
            _mockedHttpRequestBase = new Mock<HttpRequestBase>();

            _mockedSiteConfiguration.Setup(x => x.SecureMode).Returns(true);

            mockedUserRepository.Setup(x => x.FetchUserByEmailAddress("*****@*****.**"))
                .Returns((IUser)null);

            mockedUserRepository.Setup(x => x.FetchUserByEmailAddress("*****@*****.**"))
                .Returns(new User()
                {
                    EmailAddress = "*****@*****.**",
                    PasswordHash = "HyeF+GbkROa/eaUyYgVqCm8zMdNn/AEIzOnd+luTsgQ=",
                    PasswordSalt = "i2U3DxA="
                });

            AutoMapperConfig.RegisterMapping();

            _userProvider = new UserProvider(mockedUserRepository.Object, passwordManager, _mockedSiteConfiguration.Object);
        }