コード例 #1
0
        public void BatchModeShould_StartAllServices()
        {
            m_Manager.Initialize(m_Settings);
            var svc = m_Manager.AddHostingService(typeof(TestHostingService), "test");

            Assert.IsFalse(svc.IsHostingServiceRunning);
            HostingServicesManager.BatchMode(m_Settings);
            Assert.IsTrue(svc.IsHostingServiceRunning);
        }
コード例 #2
0
 public void BatchModeShould_InitializeManagerWithDefaultSettings()
 {
     Assert.IsFalse(m_Manager.IsInitialized);
     HostingServicesManager.BatchMode(m_Settings);
     Assert.IsTrue(m_Manager.IsInitialized);
 }