public void CustomersInsertEasy() { var storage = new SqlServerStorage(typeof(CustomersVerticalBar)); storage.ServerName = "NEON-64"; storage.DatabaseName = "Northwind"; storage.InsertSqlCallback = new InsertSqlHandler(GetInsertSqlCust); try { FileDataLink.EasyInsertFromFile(storage, TestCommon.GetPath("Good", "CustomersVerticalBar.txt")); } catch (SqlException ex) { if (ex.Number == 208) { Assert.Ignore("You dont have this tables in your SqlServer"); } if (ex.Number == 6) { Assert.Ignore("SqlServer not found, skipping this test."); } Assert.Ignore(ex.ToString()); } }
public void OrdersInsertEasy() { SqlServerStorage storage = new SqlServerStorage(typeof(CustomersVerticalBar)); storage.ServerName = "NEON-64"; storage.DatabaseName = "Northwind"; storage.InsertSqlCallback = new InsertSqlHandler(GetInsertSqlCust); FileDataLink.EasyInsertFromFile(storage, TestCommon.TestPath(@"Good\CustomersVerticalBar.txt")); }