public void Delegates_to_internal_configuration()
{
var mockInternalConfiguration = new Mock<InternalConfiguration>(null, null, null, null, null);
Func<TransactionHandler> transactionHandlerFactory = () => new Mock<TransactionHandler>().Object;
new DbConfiguration(mockInternalConfiguration.Object).SetDefaultTransactionHandler(transactionHandlerFactory);
mockInternalConfiguration.Verify(m => m.AddDependencyResolver(new TransactionHandlerResolver(transactionHandlerFactory, null, null), false));
new DbConfiguration(mockInternalConfiguration.Object).SetTransactionHandler("p", transactionHandlerFactory);
mockInternalConfiguration.Verify(m => m.AddDependencyResolver(new TransactionHandlerResolver(transactionHandlerFactory, "p", null), false));
new DbConfiguration(mockInternalConfiguration.Object).SetTransactionHandler("p", transactionHandlerFactory, "s");
mockInternalConfiguration.Verify(m => m.AddDependencyResolver(new TransactionHandlerResolver(transactionHandlerFactory, "p", "s"), false));
}