예제 #1
0
        public void DynamicRouteWithPrefix()
        {
            AutoPocoConfiguration.DashboardPathPrefix = "testPrefix";
            var attr = new DynamicRoutePrefixAttribute("test");

            Assert.AreEqual("testPrefix/test", attr.Prefix);
        }
예제 #2
0
        public void DynamicRouteWithoutPrefix()
        {
            var attr = new DynamicRoutePrefixAttribute("test");

            Assert.AreEqual("test", attr.Prefix);
        }