Exemplo n.º 1
0
        // To retrieve all Tests
        public List <ITest> GetTest()
        {
            List <ITest> list_Test = new List <ITest>();
            ITestDB      objTestDB = TestDBFactory.CreateTestDB();

            list_Test = objTestDB.Get_TestDetails();
            return(list_Test);
        }
Exemplo n.º 2
0
        public int  Validate(int TestAdminID, int VacancyID, DateTime WrittenTestDate, DateTime TechnicalTestDate, DateTime HRInterviewDate)
        {
            ITestDB objTestDB = TestDBFactory.CreateTestDB();

            listTest = objTestDB.Get_TestDetails();
            int success = CheckDetails(TestAdminID, VacancyID, WrittenTestDate, TechnicalTestDate, HRInterviewDate);

            if (success == 0)
            {
                TestID++;
                objTestDB.SaveTestDates(TestAdminID, VacancyID, WrittenTestDate, TechnicalTestDate, HRInterviewDate);
                return(0);
            }
            else
            {
                return(success);
            }
        }