Ejemplo n.º 1
0
        public void DependenciesConfigurationRegister()
        {
            var dependencies = new DependenciesConfiguration();

            dependencies.Register <IService, Service1>();
            dependencies.Register <AbstractService, Service2>();
            Assert.Equal(2, dependencies.Count());
        }
Ejemplo n.º 2
0
        public void AsSelf()
        {
            var dependencies = new DependenciesConfiguration();

            dependencies.Register <ServiceImpl1, ServiceImpl1>();

            Assert.AreEqual(1, dependencies.Count());
        }