Esempio n. 1
0
 public void GivenBundleNotFound_WhenProcessRequest_ThenNotFoundResponse()
 {
     bundleContainer.Setup(c => c.FindBundlesContainingPath(It.IsAny <string>()))
     .Returns(() => new Bundle[0]);
     handler.ProcessRequest(null);
     response.VerifySet(r => r.StatusCode = 404);
 }
Esempio n. 2
0
 public void GivenBundleIsNull_WhenProcessRequest_ThenNotFoundResponse()
 {
     handler.ProcessRequest(null);
     response.VerifySet(r => r.StatusCode = 404);
 }
Esempio n. 3
0
 public void GivenBundleNotFound_WhenProcessRequest_ThenNotFoundResponse()
 {
     bundles.Clear();
     handler.ProcessRequest(null);
     response.VerifySet(r => r.StatusCode = 404);
 }