예제 #1
0
 public void Dispose()
 {
     Client.DeleteAll();
     Stylist.DeleteAll();
     Specialty.DeleteAll();
     ClientTests.DeleteJoin();
 }
예제 #2
0
        public ActionResult Delete()
        {
            Specialty.DeleteAll();
            List <Specialty> allSpecialties = Specialty.GetAll();

            return(RedirectToAction("Index", allSpecialties));
        }
예제 #3
0
 public void Dispose()
 {
     Tutor.DeleteAll();
     Client.DeleteAll();
     Appointment.DeleteAll();
     Specialty.DeleteAll();
 }
예제 #4
0
        public ActionResult DeleteAllSpecialties()
        {
            Specialty.DeleteAll();
            List <Specialty> allSpecialties = Specialty.GetAll();

            return(View("Index", allSpecialties));
        }
예제 #5
0
        public void Dispose()
        {
            Stylist.DeleteAll();
            Specialty.DeleteAll();

            /* we can omit Client.DeleteAll() on account of no
             * association between Specialties and Clients */
        }
예제 #6
0
 public void Dispose()
 {
     Client.DeleteAll();
     Stylist.DeleteAll();
     Client.DeleteAllStylistClient();
     Specialty.DeleteAll();
     Specialty.DeleteAllstylistsSpecialties();
 }
예제 #7
0
        public ActionResult DeleteAll()
        {
            Stylist.DeleteAll();
            Client.DeleteAll();
            Specialty.DeleteAll();

            return(RedirectToAction("Index", "Home"));
        }
예제 #8
0
        public ActionResult DeleteAll()
        {
            Specialty.DeleteAll();
            specialtys_stylists.DeleteAll();
            List <Specialty> allSpecialtys = Specialty.GetAll();

            return(View("Index", allSpecialtys));
        }
예제 #9
0
 public void Dispose()
 {
     Stylist.DeleteAll();
     Client.DeleteAll();
     Specialty.DeleteAll();
     clients_stylists.DeleteAll();
     specialtys_stylists.DeleteAll();
 }
예제 #10
0
        public void DeleteAll_DeletesAllSpecialtysFromDb_SpecialtyList()
        {
            Specialty newSpecialty = new Specialty("Chemistry", "Science");

            newSpecialty.Save();
            Specialty.DeleteAll();
            List <Specialty> expectedList = new List <Specialty> {
            };
            List <Specialty> actualList   = Specialty.GetAll();

            CollectionAssert.AreEqual(expectedList, actualList);
        }
예제 #11
0
        public void Specialtys_DeteleAll()
        {
            Specialty firstSpecialty  = new Specialty("color");
            Specialty secondSpecialty = new Specialty("cutting");

            firstSpecialty.Save();
            secondSpecialty.Save();
            Specialty.DeleteAll();

            int num = Specialty.GetAll().Count;

            Assert.AreEqual(0, num);
        }
예제 #12
0
        public void DeleteAll_DeletesAllEntries_True()
        {
            Specialty newSpecialtyCool = new Specialty("Cool");

            newSpecialtyCool.Save();
            Specialty newSpecialtyNice = new Specialty("Nice");

            newSpecialtyNice.Save();
            Specialty.DeleteAll();
            List <Specialty> newList = Specialty.GetAll();

            Assert.AreEqual(newList.Count, 0);
        }
예제 #13
0
        public void DeleteAll_DeletesAllSpecialtiesFromDataBase_0()
        {
            //Arrange
            Specialty newSpecialty1 = new Specialty("Some Title", "Some description...");
            Specialty newSpecialty2 = new Specialty("Another Title", "Another description...");

            //Act
            Specialty.DeleteAll();
            int result = Specialty.GetAll().Count;

            //Assert
            Assert.AreEqual(0, result);
        }
예제 #14
0
        public void DeleteAll_DeletesAllSpecialties_True()
        {
            //Arrange
            Specialty testSpecialty = new Specialty("Faiza");

            testSpecialty.Save();

            //Act
            Specialty.DeleteAll();
            int result = Specialty.GetAll().Count;

            //Assert
            Assert.AreEqual(result, 0);
        }
예제 #15
0
        public void DeleteAll_DeletesAllSpecialtiesFromDatabase_SpecialtyList()
        {
            //Arrange
            Specialty testSpecialty  = new Specialty("buzz cuts");
            Specialty testSpecialty2 = new Specialty("bleaching");

            testSpecialty.Save();
            testSpecialty2.Save();

            //Act
            Specialty.DeleteAll();
            List <Specialty> result = Specialty.GetAll();

            //Assert
            Assert.AreEqual(0, result.Count);
        }
        public void DeleteAll_DeletesAllSpecialtysInDatabase_SpecialtyList()
        {
            Specialty testSpecialty01 = new Specialty("braids", 1);

            testSpecialty01.Save();
            Specialty testSpecialty02 = new Specialty("locs", 2);

            testSpecialty02.Save();

            Specialty.DeleteAll();
            List <Specialty> expectedList = new List <Specialty> {
            };
            List <Specialty> resultList   = Specialty.GetAll();



            CollectionAssert.AreEqual(expectedList, resultList);
        }
예제 #17
0
        public void DeleteAll_DeletesAllStylistsFromDatabase()
        {
            //Arrange
            string    specialty    = "Colorist";
            Specialty newSpecialty = new Specialty(specialty);

            newSpecialty.Save();
            Specialty.DeleteAll();

            //Act
            List <Specialty> newList = new List <Specialty> {
                newSpecialty
            };
            List <Specialty> resultList = Specialty.GetAll();

            //Assert
            CollectionAssert.AreNotEqual(newList, resultList);
        }
예제 #18
0
 public void Dispose()
 {
     Stylist.DeleteAll();
     Client.ClearAll();
     Specialty.DeleteAll();
 }
예제 #19
0
 public void Dispose()
 {
     Employee.DeleteAll();
     Client.DeleteAll();
     Specialty.DeleteAll();
 }
예제 #20
0
        public ActionResult DeleteAll()
        {
            Specialty.DeleteAll();

            return(RedirectToAction("SpecialtyIndex"));
        }
예제 #21
0
 public void Dispose()
 {
     Customer.DeleteAll();
     Stylist.DeleteAll();
     Specialty.DeleteAll();
 }
예제 #22
0
 public ActionResult DeleteAllSpecialties()
 {
     Specialty.DeleteAll();
     return(View());
 }
예제 #23
0
 public void Dispose()
 {
     Doctor.DeleteAll();
     Specialty.DeleteAll();
 }
예제 #24
0
 public ActionResult DeleteAll()
 {
     Specialty.DeleteAll();
     return(RedirectToAction("Display"));
 }
예제 #25
0
 public IActionResult DeleteALl()
 {
     Specialty.DeleteAll();
     return(RedirectToAction("Index", "Home"));
 }
        public ActionResult DeleteAll()
        {
            Specialty.DeleteAll();

            return(RedirectToAction("ViewAll"));
        }
예제 #27
0
 public static void Cleanup()
 {
     Specialty.DeleteAll();
 }
예제 #28
0
 public void Dispose()
 {
     Client.DeleteAll();
     Stylist.DeleteAll();
     Specialty.DeleteAll();
 }
 public void Dispose()
 {
     Specialty.DeleteAll();
 }
예제 #30
0
 public ActionResult DeleteAll()
 {
     Specialty.DeleteAll();
     return(View("Index", Specialty.GetAll()));
 }