public void PrepareTest() { MsDbCleaner msDbCleaner = new MsDbCleaner("name=StaffContextTests"); msDbCleaner.clearTableDb("Pupils"); msDbCleaner.clearTableDb("Schedules"); msDbCleaner.clearTableDb("Events"); }
public void PrepareTest() { MsDbCleaner msDbCleaner = new MsDbCleaner("name=StaffContextTests"); msDbCleaner.clearTableDb("Pupils"); msDbCleaner.clearTableDb("Schedules"); msDbCleaner.clearTableDb("Events"); MsDbFiller msDbFiller = new MsDbFiller("name=StaffContextTests"); var AllStaff = getStaffListTest(); var AllClasses = getClassesListTest(); msDbFiller.FillMsDb(AllStaff, AllClasses); }
public void clearAllTablesBesidesPupilsTest() { PrepareTest(); MsDbCleaner msDbCleaner = new MsDbCleaner("name=StaffContextTests"); msDbCleaner.clearTableDb("Schedules"); msDbCleaner.clearTableDb("Events"); EmptyChecker emptyChecker = new EmptyChecker("StaffContextTests"); Assert.IsTrue(true == emptyChecker.IsTableEmpty("Schedules")); Assert.IsTrue(true == emptyChecker.IsTableEmpty("Events")); Assert.IsTrue(false == emptyChecker.IsTableEmpty("Pupils")); }
public void clearTableDbTest() { MsDbCleaner msDbCleaner = new MsDbCleaner("name=StaffContextTests"); msDbCleaner.clearTableDb("Schedules"); EmptyChecker emptyChecker = new EmptyChecker("StaffContextTests"); Assert.IsTrue(true == emptyChecker.IsTableEmpty("Schedules")); }
void PrepareTest() { MsDbCleaner msDbCleaner = new MsDbCleaner("name=StaffContextTests"); msDbCleaner.clearTableDb("Pupils"); StaffFiller staffFiller = new StaffFiller("name=StaffContextTests"); var AllStaff = getStaffListTestOld(); staffFiller.FillStaffDb(AllStaff); }
public void IsTableExistTest() { Boolean IsTableExist = false; ExistChecker existChecker = new ExistChecker("StaffContextTests"); MsDbFiller msDbFiller = new MsDbFiller("name=StaffContextTests"); var AllStaff = getStaffListTest(); var AllClasses = getClassesListTest(); msDbFiller.FillMsDb(AllStaff, AllClasses); IsTableExist = existChecker.IsTableExist("Pupils"); Assert.IsTrue(IsTableExist == true); IsTableExist = existChecker.IsTableExist("Events"); Assert.IsTrue(IsTableExist == true); IsTableExist = existChecker.IsTableExist("Schedules"); Assert.IsTrue(IsTableExist == true); MsDbCleaner msDbCleaner = new MsDbCleaner("name=StaffContextTests"); msDbCleaner.clearTableDb("Pupils"); msDbCleaner.clearTableDb("Schedules"); msDbCleaner.clearTableDb("Events"); }
void PrepareTest() { MsDbCleaner msDbCleaner = new MsDbCleaner("name=StaffContextTests"); msDbCleaner.clearTableDb("Pupils"); }