protected internal Datasource(string connectionString, Core.DataProvider provider) { try { dataProvider = provider; if (dataProvider == Core.DataProvider.SQL) { sqlConnection = new SqlConnection(connectionString); } else { oledbConnection = new OleDbConnection(connectionString); } } catch (Exception) { throw; } }
public Connection(string connectionString, Core.DataProvider provider) { checkConnection = new Data.CheckConnection(connectionString, provider); dataProvider = provider; }
public void SaveTest() { string connectionString = string.Empty; // TODO: Initialize to an appropriate value Core.DataProvider provider = new Core.DataProvider(); // TODO: Initialize to an appropriate value BTSS.Data.Projects.User target = new BTSS.Data.Projects.User(connectionString, provider); // TODO: Initialize to an appropriate value BTSS.Logic.Projects.User user = null; // TODO: Initialize to an appropriate value target.Save(user); Assert.Inconclusive("A method that does not return a value cannot be verified."); }