public void DataProviderConfiguration() { SqlDataProvider dp = new SqlDataProvider(); using (DbManager db = /*[a]*/new DbManager(dp, connectionString)/*[/a]*/) { Assert.AreEqual(ConnectionState.Open, db.Connection.State); } }
public DbManager GetDbManager() { SqlDataProvider dataProvider = new SqlDataProvider(); var db = new DbManager(dataProvider, ConnectionString); return db; }