public void ForceStopTest()
        {
            var container = new Wcf.WcfServiceContainer <TestService>();

            Assert.IsNotNull(container);

            var service = Wcf.WcfServiceContainer <TestService> .CreateService();

            var initialized = container.Initialize(service);

            Assert.IsTrue(initialized);

            Assert.IsTrue(container.Start());

            Assert.IsTrue(container.ForceStop());
        }
        public void TryStopTest()
        {
            var container = new Wcf.WcfServiceContainer <TestService>();

            Assert.IsNotNull(container);

            var service = Wcf.WcfServiceContainer <TestService> .CreateService();

            var initialized = container.Initialize(service);

            Assert.IsTrue(initialized);

            Assert.IsTrue(container.Start());

            Assert.IsTrue(container.TryStop(TimeSpan.FromSeconds(5)));
        }