Esempio n. 1
0
        public void Test_Ctor()
        {
            IServiceCollection services = new ServiceCollection();
            var module = new DependencyModule();

            services = module.AddServices(services);
        }
Esempio n. 2
0
        public void Test_Ignore()
        {
            IServiceCollection services = new ServiceCollection();
            var module = new DependencyModule();

            services = module.AddServices(services);

            services.ShouldContain(m => m.ServiceType == typeof(ITestService));
            services.ShouldNotContain(m => m.ServiceType == typeof(IIgnoreService));
        }