Exemplo n.º 1
0
        public void ShouldNotGetMethodInfoWhenNameDoesntMatch()
        {
            MethodInfo result;

            result = RouteUtils.GetMethodInfo <BooksRouteHandler>("GetBook2");
            Assert.IsNull(result);
        }
Exemplo n.º 2
0
        public void ShouldNotGetMethodInfoWhenRouteAttributeNotSet()
        {
            MethodInfo result;

            result = RouteUtils.GetMethodInfo <BooksRouteHandler>("GetBook3");
            Assert.IsNull(result);
        }
Exemplo n.º 3
0
        public void ShouldGetMethodInfo()
        {
            MethodInfo result;

            result = RouteUtils.GetMethodInfo <BooksRouteHandler>("GetBook");
            Assert.IsNotNull(result);
        }
Exemplo n.º 4
0
        static MethodInfos()
        {
            GetBooks = RouteUtils.GetMethodInfo <BooksRouteHandler>("GetBooks");

            GetBook = RouteUtils.GetMethodInfo <BooksRouteHandler>("GetBook");
        }