コード例 #1
0
        public void TestContainerIsSetAsSupplied()
        {
            var container = new UnityContainer();
            var candidate = new PollingHostConfigurator(container).Container;

            Assert.AreSame(container, candidate);
        }
コード例 #2
0
 public void TestStandardRegistrars()
 {
     var container = new UnityContainer();
     var configurator = new PollingHostConfigurator(container);
     configurator.StandardRegistrars();
     var candidate = UnityContainerExtensions.Resolve<IContainerRegistrar>(container, typeof(PollingHostRegistrar).FullName);
     Assert.AreEqual(typeof(PollingHostRegistrar), candidate.GetType());
 }
コード例 #3
0
        public void TestStandardRegistrars()
        {
            var container    = new UnityContainer();
            var configurator = new PollingHostConfigurator(container);

            configurator.StandardRegistrars();
            var candidate = UnityContainerExtensions.Resolve <IContainerRegistrar>(container, typeof(PollingHostRegistrar).FullName);

            Assert.AreEqual(typeof(PollingHostRegistrar), candidate.GetType());
        }
コード例 #4
0
        public void TestContainerPropertyIsNotNull()
        {
            var container = new PollingHostConfigurator().Container;

            Assert.IsNotNull(container);
        }
コード例 #5
0
 public void TestContainerPropertyIsNotNull()
 {
     var container = new PollingHostConfigurator().Container;
     Assert.IsNotNull(container);
 }
コード例 #6
0
 public void TestContainerIsSetAsSupplied()
 {
     var container = new UnityContainer();
     var candidate = new PollingHostConfigurator(container).Container;
     Assert.AreSame(container, candidate);
 }