public void SearchVHR_EmptyID() { DBConnection_Accessor connection = new DBConnection_Accessor(); SearchFunction_Accessor SF = new SearchFunction_Accessor(connection.GetDB()); DataTable dt = new DataTable(); try { dt = SF.SearchVHR(""); } catch (OleDbException ex) { throw ex; } }
public void SearchVHR_EmptyID() { DBConnection_Accessor connection = new DBConnection_Accessor(); SearchFunction_Accessor SF = new SearchFunction_Accessor(connection.GetDB()); DataTable dt = new DataTable(); try { dt = SF.SearchVHR(""); } catch (OleDbException ex) { throw ex; } }
public void SearchVHR_NormalPath() { DBConnection_Accessor connection = new DBConnection_Accessor(); SearchFunction_Accessor SF = new SearchFunction_Accessor(connection.GetDB()); DataTable dt = new DataTable(); try { dt = SF.SearchVHR("121"); } catch (OleDbException ex) { } Assert.IsTrue(dt.Rows.Count == 1); }
public void SearchVHR_NormalPath() { DBConnection_Accessor connection = new DBConnection_Accessor(); SearchFunction_Accessor SF = new SearchFunction_Accessor(connection.GetDB()); DataTable dt = new DataTable(); try { dt = SF.SearchVHR("121"); } catch (OleDbException ex) { } Assert.IsTrue(dt.Rows.Count == 1); }
public void SearchVHR_NonExistent() { DBConnection_Accessor connection = new DBConnection_Accessor(); SearchFunction_Accessor SF = new SearchFunction_Accessor(connection.GetDB()); DataTable dt = new DataTable(); try { dt = SF.SearchVHR("123456"); } catch (OleDbException ex) { throw ex; } Assert.IsTrue(dt.Rows.Count == 0); }
public void SearchVHR_NonExistent() { DBConnection_Accessor connection = new DBConnection_Accessor(); SearchFunction_Accessor SF = new SearchFunction_Accessor(connection.GetDB()); DataTable dt = new DataTable(); try { dt = SF.SearchVHR("123456"); } catch (OleDbException ex) { throw ex; } Assert.IsTrue(dt.Rows.Count == 0); }