public void AddVHR_DuplicateID() { DBConnection_Accessor db = new DBConnection_Accessor(); String[] D = new String[] { "1", "22", "123", "123", "123", "123" }; MakeVHR_Accessor mc = new MakeVHR_Accessor(D, db.GetDB()); TestingFunctions t = new TestingFunctions(db.GetDB()); MakeVehicle_Accessor mp = new MakeVehicle_Accessor(D, db.GetDB()); try { t.DeleteVHR(1); } catch (Exception) { } mc.CreateVHR(); mc.CreateVHR(); }
public void AddVHR_NullID() { DBConnection_Accessor db = new DBConnection_Accessor(); String[] D = new String[] { "", "", "", "", "", "" }; MakeVHR_Accessor mc = new MakeVHR_Accessor(D, db.GetDB()); TestingFunctions t = new TestingFunctions(db.GetDB()); MakeVehicle_Accessor mp = new MakeVehicle_Accessor(D, db.GetDB()); mc.CreateVHR(); }