public void TestContainerIsSetAsSupplied() { var container = new UnityContainer(); var candidate = new PollingHostConfigurator(container).Container; Assert.AreSame(container, candidate); }
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()); }
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()); }
public void TestContainerPropertyIsNotNull() { var container = new PollingHostConfigurator().Container; Assert.IsNotNull(container); }