public void UseConfigurationSource_WithNotNullConfigurationSource_ShouldBeNotNull()
        {
            var sut = new ObjectFactoryBuilder();

            var chain = sut.UseConfigurationSource(new [] {new Mock<IObjectFactoryConfigurationSource>().Object });

            chain.ShouldBeAssignableTo<IObjectFactoryInterceptorBuilder>();

            chain.ShouldNotBeNull();

            sut.ObjectFactoryConfigurationProvider.ShouldNotBeNull();
        }
        public void UseConfigurationSource_WithNullConfigurationSource_ShouldThrowException()
        {
            var sut = new ObjectFactoryBuilder();

            Should.Throw<ArgumentNullException>(() => sut.UseConfigurationSource(null));
        }