protected AdoContext(IAdoDbFactory adoDbFactory, Action <AdoContext> rolledBack = null, Action <AdoContext> committed = null) { _adoDbFactory = adoDbFactory; _rolledBack = rolledBack; _committed = committed; _connection = adoDbFactory.CreateConnection(); _transaction = _connection.BeginTransaction(); _repositoryContainer = new Dictionary <Type, Type>(); }
public TestAdoContext(IAdoDbFactory adoDbFactory, Action <AdoContext> rolledBack = null, Action <AdoContext> committed = null) : base(adoDbFactory, rolledBack, committed) { RegisterRepositories(); }