Exemple #1
0
 public void GivenContextWithNon404Response_ReturnsFalse()
 {
     _nancyContext.Response.StatusCode = HttpStatusCode.OK;
     PassThroughDecider.ConfigureAndPerformPassThroughIfNeeded(_nancyContext).Should().BeFalse();
 }
Exemple #2
0
 public void GivenContextWithoutResponse_ReturnsFalse()
 {
     _nancyContext.Response = null;
     PassThroughDecider.ConfigureAndPerformPassThroughIfNeeded(_nancyContext).Should().BeFalse();
 }
Exemple #3
0
 public void GivenContextWith404Response_ReturnsTrue()
 {
     _nancyContext.Response.StatusCode = HttpStatusCode.NotFound;
     PassThroughDecider.ConfigureAndPerformPassThroughIfNeeded(_nancyContext).Should().BeTrue();
 }
Exemple #4
0
 public void GivenNullContext_ReturnsFalse()
 {
     PassThroughDecider.ConfigureAndPerformPassThroughIfNeeded(null).Should().BeFalse();
 }