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);
        }
Пример #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);
        }
Пример #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);
        }