Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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));
     }
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 5
0
 public IEnumerable <Handler> GetParameters(TestContext ctx, string filter)
 {
     return(TestPost.GetParameters(ctx, filter, Flags));
 }
Ejemplo n.º 6
0
 public static IEnumerable <Handler> GetAllTests()
 {
     return(TestPost.GetAllTests());
 }