public void Ioc4()
        {
            IocManager.AddTransient <IMonitor, NLogMonitor>();


            IocManager.AddTransient <IMonitor, TestMonitor>();
            var monitors = IocManager.GetServices <IMonitor>().ToList();

            Assert.Equal(2, monitors.Count);
            Assert.Equal(typeof(NLogMonitor).FullName, monitors[0].GetType().FullName);
            Assert.Equal(typeof(TestMonitor).FullName, monitors[1].GetType().FullName);
        }
        public void Ioc3()
        {
            IocManager.AddTransient <NLogMonitor, NLogMonitor>();
            var nlogMonitor = IocManager.GetService <NLogMonitor>();

            Assert.NotNull(nlogMonitor);

            IocManager.AddTransient <TestMonitor, TestMonitor>();
            var monitor = IocManager.GetService <TestMonitor>();

            Assert.Equal(typeof(TestMonitor).FullName, monitor.GetType().FullName);
        }