Ejemplo n.º 1
0
 protected static void InitAppRuntime()
 {
     ManualConfigSource configSource = new ManualConfigSource { ObjectContainer = typeof(UnityObjectContainer) };
     application = AppRuntime.Create(configSource);
     application.AppInitEvent += application_AppInitEvent;
     application.Start();
 }
Ejemplo n.º 2
0
 public static void StartBDDD(TestContext context)
 {
     ManualConfigSource configSource = ConfigHelper.GetManualConfigSource();
     application = AppRuntime.Create(configSource);
     application.AppInitEvent += application_AppInitEvent;
     application.Start();
 }
Ejemplo n.º 3
0
        public static void Initial(TestContext context)
        {
            ManualConfigSource configSource = ConfigHelper.GetManualConfigSource();
            application = AppRuntime.Create(configSource);
            application.Start();

            var c = application.ObjectContainer.GetRealObjectContainer<UnityContainer>();
            c.RegisterType<ICache, MemcachedCache>();
            c.RegisterType<AbsoluteTimeExpiration, MemcachedAbsoluteTimeExpiration>("SCache",
                                                                                    new InjectionConstructor(
                                                                                        TimeSpan.FromSeconds(5)));
            c.RegisterType<AbsoluteTimeExpiration, MemcachedAbsoluteTimeExpiration>("S1Cache",
                                                                                    new InjectionConstructor(
                                                                                        TimeSpan.FromSeconds(15)));
        }