Ejemplo n.º 1
0
        public void CanReturnCollectionOfTypes()
        {
            var services = _resolver.GetServices <FirstContainerRegisteredController>();

            Assert.That(services.Count(), Is.EqualTo(2));

            foreach (var service in services)
            {
                Assert.That(service, Is.TypeOf(typeof(FirstContainerRegisteredController)), "Service Returned was not of the expected Type.");
            }
        }
Ejemplo n.º 2
0
        public void CanReturnCollectionOfTypes()
        {
            var services = _resolver.GetServices(typeof(FirstContainerRegisteredController));

            Assert.That(services.Count(), Is.EqualTo(2));
        }