コード例 #1
0
        public void GetServices_IfTheTypeIsConcreteWithParameterlessConstructorAndIfTheTypeIsNotRegistered_ShouldReturnAnEmptyCollection()
        {
            TestHelper.ClearStructureMap();
            TestHelper.AssertStructureMapIsCleared();

            var instances = new DependencyResolver(ObjectFactory.Container).GetServices(typeof(SomeConcreteClassWithParameterlessConstructor)).ToArray();

            Assert.IsNotNull(instances);
            Assert.IsFalse(instances.Any());
        }