Exemple #1
0
 public void CanAddHeaderAction()
 {
     Core.RouteBuilder route = this.CreateRoute();
     route.AddHeader("Test", (x) =>
     {
         return(x.Headers["Target"]);
     });
     Assert.IsTrue(route.ComponentCount == 1);
 }
Exemple #2
0
 public void CanAddHeaderActionTwo()
 {
     Core.RouteBuilder route = this.CreateRoute();
     route.AddHeader("Test", () =>
     {
         return("World");
     });
     Assert.IsTrue(route.ComponentCount == 1);
 }
Exemple #3
0
 public void CanAddHeader()
 {
     Core.RouteBuilder route = this.CreateRoute();
     route.AddHeader("Test", "Test");
     Assert.IsTrue(route.ComponentCount == 1);
 }