public void test_setup()
        {
            this.formsAuthenticationMock = new Mock<IFormsAuthenticationWrapper>();
            this.formsAuthenticationMock.Setup(x => x.SetAuthCookie(It.IsAny<string>(), It.IsAny<bool>()));

            this.postHandler = new LogOn.PostHandler(formsAuthenticationMock.Object);
        }
Exemplo n.º 2
0
        public void test_setup()
        {
            this.formsAuthenticationMock = new Mock <IFormsAuthenticationWrapper>();
            this.formsAuthenticationMock.Setup(x => x.SetAuthCookie(It.IsAny <string>(), It.IsAny <bool>()));

            this.postHandler = new LogOn.PostHandler(formsAuthenticationMock.Object);
        }
Exemplo n.º 3
0
        public void test_setup()
        {
            this.authContextMock = new Mock<IAuthenticationContext>();
            this.authContextMock.Setup(x => x.ThisUserHasBeenAuthenticated(It.IsAny<string>(), It.IsAny<bool>()));

            this.postHandler = new LogOn.PostHandler(authContextMock.Object, userData);
        }