Exemplo n.º 1
0
 public UnitOfWork(string connectionString,
                   ISqlConnectionFactory sqlConnectionFactory,
                   IConnectionThrottleGuard connectionThrottleGuard)
 {
     _connectionString        = connectionString;
     _sqlConnectionFactory    = sqlConnectionFactory;
     _connectionThrottleGuard = connectionThrottleGuard;
 }
 public void TestInitialize()
 {
     _testee = new ConnectionThrottleGuard(new ThrottlingConfig {
         MaxCountOfConcurrentSqlConnections = 2
     });
 }