Exemplo n.º 1
0
        public void ServiceLocatorEnsureWithDescriptorsShouldAddDescriptors()
        {
            var serviceLocator = new ServiceLocator();

            serviceLocator.BuildServiceProviderWithDescriptors(
                new ServiceDescriptor(typeof(Test), new Test()));

            Assert.IsNotNull(serviceLocator.ServiceProvider.GetService <Test>());
        }