public void StopAllServicesShould_StopAllRunningServices() { m_Manager.Initialize(m_Settings); var svc = m_Manager.AddHostingService(typeof(TestHostingService), "test"); svc.HostingServiceContentRoots.Add("/"); Assert.IsFalse(svc.IsHostingServiceRunning); svc.StartHostingService(); Assert.IsTrue(svc.IsHostingServiceRunning); m_Manager.StopAllServices(); Assert.IsFalse(svc.IsHostingServiceRunning); }