예제 #1
0
        public RouteInstaller_Tests()
        {
            urlModifier.Setup(m => m.Modify(It.IsAny <string>()))
            .Returns <string>(url => url);

            var container = new Mock <ICassetteApplicationContainer <ICassetteApplication> >();

            container.SetupGet(c => c.Application.Bundles).Returns(Enumerable.Empty <Bundle>());
            routing = new RouteInstaller(container.Object, "_cassette");
        }
예제 #2
0
        static void InstallRoutes()
        {
            var routing = new RouteInstaller(_container, UrlGenerator.RoutePrefix);

            routing.InstallRoutes(RouteTable.Routes);
        }