예제 #1
0
        public void BuildChain_Success_WhenNoConstructorIsProvided()
        {
            _builder.WithHandler <EmptyConstructorHandler>().BuildChain();
            IServiceProvider serviceProvider = _services.BuildServiceProvider();

            serviceProvider.GetService <ITestChain>();
        }
예제 #2
0
        public void WithHandler_Success_NoCondition()
        {
            var builder = _builder.WithHandler <EmptyConstructorHandler>();

            Assert.NotNull(builder);
            Assert.Same(_builder, builder);

            _serviceCollectionMock.VerifyNoOtherCalls();
        }