public void CompositeEmpty()
        {
            FakeCompositeServiceLocatorObject result = (FakeCompositeServiceLocatorObject)this.ServiceLocator.ResolveSingle <IFakeServiceLocatorObject>("Composite");

            Assert.AreEqual(1, result.Count);

            Assert.IsTrue(result.OfType <FakeServiceLocatorObject>().Any());
        }
        public void CompositeNone()
        {
            IFakeServiceLocatorObject result = this.ServiceLocator.ResolveSingle <IFakeServiceLocatorObject>("Composite");

            Assert.IsInstanceOfType(result, typeof(FakeCompositeServiceLocatorObject));

            FakeCompositeServiceLocatorObject composite = (FakeCompositeServiceLocatorObject)result;

            Assert.AreEqual(0, composite.Count);
        }
        public void CompositeExplicit()
        {
            IFakeServiceLocatorObject result = this.ServiceLocator.ResolveSingle <IFakeServiceLocatorObject>("Composite");

            Assert.IsInstanceOfType(result, typeof(FakeCompositeServiceLocatorObject));

            FakeCompositeServiceLocatorObject composite = (FakeCompositeServiceLocatorObject)result;

            Assert.AreEqual(2, composite.Count);

            Assert.AreEqual(1, composite.OfType <FakeServiceLocatorObject>().Count());
            Assert.AreEqual(1, composite.OfType <FakeServiceLocatorObjectSimple>().Count());
        }