Esempio n. 1
0
 public void TestExecuteSql()
 {
     var storage = new SqlDataStorage(ConnectionString);
       string guid = Guid.NewGuid().ToString();
       string sql = string.Format("Insert into parameter(id) values('{0}')", guid);
       int result = storage.Execute(sql, exceptionHandle: new TestBackgroudData(1));
       Assert.AreEqual(1, result);
       sql = string.Format("Delete from parameter where id = '{0}'", guid);
       result = storage.Execute(sql, exceptionHandle: new TestBackgroudData(1));
       Assert.AreEqual(1, result);
 }