public void Test_Application() { var application = new Application(); application.Setup(); application.Initialize(); Assert.AreEqual(1, application.Modules.Count, "Modules"); Assert.AreEqual("test", application.Modules[0].Name, "Modules.Name"); Assert.AreEqual("1.0", application.Modules[0].Version, "Modules.Version"); Assert.IsTrue(application.Modules[0].IsActive, "Modules.Version"); Assert.IsTrue(TestInstaller.IsInitialized, "IsInitialized"); Assert.AreEqual(1, application.Modules.Count, "Modules"); Assert.AreEqual("value", Setting.GetByKey("test"), "Setting"); }
/// <summary> /// Called when [application started]. /// </summary> protected override void OnApplicationStarted() { HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.Initialize(); var application = new Application(); application.Setup(); application.Initialize(); }