Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
 IEnumerable <Handler> GetAllTests()
 {
     if (IPAddress.IsLoopback(TestRunner.GetAddress()))
     {
         yield break;
     }
     foreach (var handler in TestPost.GetAllTests())
     {
         yield return(handler);
     }
     foreach (var handler in TestPost.GetAllTests())
     {
         yield return(new AuthenticationHandler(AuthenticationType.Basic, handler));
     }
     foreach (var handler in TestPost.GetAllTests())
     {
         yield return(new AuthenticationHandler(AuthenticationType.NTLM, handler));
     }
 }
Example #4
0
        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));
 }
 public static IEnumerable <Handler> GetAllTests()
 {
     return(TestPost.GetAllTests());
 }