示例#1
0
        public void DependenciesConfigurationRegister()
        {
            var dependencies = new DependenciesConfiguration();

            dependencies.Register <IService, Service1>();
            dependencies.Register <AbstractService, Service2>();
            Assert.Equal(2, dependencies.Count());
        }
示例#2
0
文件: UnitTest1.cs 项目: Ajololr/MPP
        public void AsSelf()
        {
            var dependencies = new DependenciesConfiguration();

            dependencies.Register <ServiceImpl1, ServiceImpl1>();

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