public void ReturnsFalse() { var handler = new SqrlHttpHandler(); bool reusable = handler.IsReusable; reusable.Should().BeFalse(); }
public ProcessRequest() { var mockHandler = new Mock<ISqrlAuthenticationHandler>(); mockHandler.Setup(x => x.VerifySession(It.IsAny<string>(), It.IsAny<string>())).Returns(true); var mockFactory = new Mock<ISqrlAuthenticationHandlerFactory>(); mockFactory.Setup(x => x.Create()).Returns(mockHandler.Object); SqrlConfig.AuthenticationHandlerFactory = mockFactory.Object; _handler = new SqrlHttpHandler(); _context = MvcMockHelpers.FakeHttpContext(); }
public ProcessRequest() { var mockHandler = new Mock <ISqrlAuthenticationHandler>(); mockHandler.Setup(x => x.VerifySession(It.IsAny <string>(), It.IsAny <string>())).Returns(true); var mockFactory = new Mock <ISqrlAuthenticationHandlerFactory>(); mockFactory.Setup(x => x.Create()).Returns(mockHandler.Object); SqrlConfig.AuthenticationHandlerFactory = mockFactory.Object; _handler = new SqrlHttpHandler(); _context = MvcMockHelpers.FakeHttpContext(); }