public void GivenContextWithNon404Response_ReturnsFalse() { _nancyContext.Response.StatusCode = HttpStatusCode.OK; PassThroughDecider.ConfigureAndPerformPassThroughIfNeeded(_nancyContext).Should().BeFalse(); }
public void GivenContextWithoutResponse_ReturnsFalse() { _nancyContext.Response = null; PassThroughDecider.ConfigureAndPerformPassThroughIfNeeded(_nancyContext).Should().BeFalse(); }
public void GivenContextWith404Response_ReturnsTrue() { _nancyContext.Response.StatusCode = HttpStatusCode.NotFound; PassThroughDecider.ConfigureAndPerformPassThroughIfNeeded(_nancyContext).Should().BeTrue(); }
public void GivenNullContext_ReturnsFalse() { PassThroughDecider.ConfigureAndPerformPassThroughIfNeeded(null).Should().BeFalse(); }