Ejemplo n.º 1
0
        public void Can_handle_GET_routes_with_a_single_parameter2()
        {
            using (var app = new TestApp())
            {
                var context = new QuickContextSpy();

                app.FindRouteFor(SupportedHttpMethod.GET, "/hi/bob").Handle(context);

                context.Response.ShouldEqual("Hello bob");
            }
        }
Ejemplo n.º 2
0
        public void Monkey2()
        {
            var context = new QuickContextSpy();

            app.FindRouteFor(SupportedHttpMethod.GET, "/hi").Handle(context);

            context.Response.ShouldEqual("hello");
        }