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); }
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); }
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); }