Пример #1
0
        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();
        }
Пример #2
0
        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();
        }
Пример #3
0
        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();
        }
Пример #4
0
        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();
        }