public static IEnumerable <Handler> GetParameters(TestContext ctx, string filter) { var list = new List <Handler> (); if (!hasNetwork) { return(list); } list.Add(new HelloWorldHandler("Hello World")); list.AddRange(TestPost.GetParameters(ctx, filter)); return(list); }
public IEnumerable <Handler> GetParameters(TestContext ctx, string filter) { var list = new List <Handler> (); switch (filter) { case "martin": // list.Add (HelloWorldHandler.GetSimple ()); list.Add(new PostHandler("Normal post", HttpContent.HelloWorld)); break; default: list.Add(HelloWorldHandler.GetSimple()); list.AddRange(TestPost.GetParameters(ctx, filter, HttpServerFlags.Proxy)); break; } return(list); }
public IEnumerable <Handler> GetParameters(TestContext ctx, string filter) { var list = new List <Handler> (); if (!hasNetwork) { return(list); } switch (filter) { case "martin": list.Add(HelloWorldHandler.Simple); break; default: list.Add(HelloWorldHandler.Simple); list.AddRange(TestPost.GetParameters(ctx, filter, HttpServerFlags.Proxy)); break; } return(list); }
public IEnumerable <Handler> GetParameters(TestContext ctx, string filter) { return(TestPost.GetParameters(ctx, filter, Flags)); }