コード例 #1
0
        public void Ctor_Test()
        {
            DependencyPack     pack     = new DependencyPack();
            IServiceCollection services = new ServiceCollection();

            services = pack.AddServices(services);
        }
コード例 #2
0
        public void Ignore_Test()
        {
            IServiceCollection services = new ServiceCollection();
            DependencyPack     pack     = new DependencyPack();

            services = pack.AddServices(services);

            services.ShouldContain(m => m.ServiceType == typeof(ITestContract));
            services.ShouldNotContain(m => m.ServiceType == typeof(IIgnoreContract));
        }