public void BuildChain_Success_WhenNoConstructorIsProvided() { _builder.WithHandler <EmptyConstructorHandler>().BuildChain(); IServiceProvider serviceProvider = _services.BuildServiceProvider(); serviceProvider.GetService <ITestChain>(); }
public void WithHandler_Success_NoCondition() { var builder = _builder.WithHandler <EmptyConstructorHandler>(); Assert.NotNull(builder); Assert.Same(_builder, builder); _serviceCollectionMock.VerifyNoOtherCalls(); }