Ejemplo n.º 1
0
        public void EnsureLoaded()
        {
            if (_loaded)
            {
                return;
            }

            _loaded = true;

            Mvx.LazyConstructAndRegisterSingleton(typeof(IMvxRoutingService), () =>
            {
                MvxRoutingService.LoadRoutes(_configuration.SourceAssemblies);
                return(Mvx.IocConstruct <MvxRoutingService>());
            });
        }
Ejemplo n.º 2
0
 public static void SetupFixture()
 {
     MvxRoutingService.LoadRoutes(new[] { typeof(RoutingServiceTests).Assembly });
 }