Ejemplo n.º 1
0
		public void DataProviderConfiguration()
		{
			SqlDataProvider dp = new SqlDataProvider();

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