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