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

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

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

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

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