Example #1
0
        public void DeleteAllStylists_DeletesAllStylistsInDatabase_true()
        {
            //Arrange
            Stylist testStylist = new Stylist("Jamie Stephens", "509-200-2000", 3, 0);

            testStylist.SaveStylist();

            //Act
            Stylist.DeleteAllStylists();
            int result = Stylist.GetAllStylists().Count;

            //Assert
            Assert.AreEqual(result, 0);
        }
Example #2
0
        public void DeleteAllStylist_ReturnEmptyList_List()
        {
            //arrange
            Stylist newStylist1 = new Stylist("Kimberly", 3);
            Stylist newStylist2 = new Stylist("Berly", 2);
            Stylist newStylist3 = new Stylist("Joe", 1);

            newStylist1.Save();
            newStylist2.Save();
            newStylist3.Save();
            //action
            Stylist.DeleteAllStylists();
            List <Stylist> stylistList      = Stylist.GetAllStylists();
            int            stylistListCount = stylistList.Count;

            //assert
            Assert.AreEqual(stylistListCount, 0);
        }
Example #3
0
 public ActionResult DeleteAllStylists()
 {
     Stylist.DeleteAllStylists();
     return(View("Stylists"));
 }
Example #4
0
 public void Dispose()
 {
     Stylist.DeleteAllStylists();
     Client.DeleteAllClients();
 }
Example #5
0
 public void Dispose()
 {
     Stylist.DeleteAllStylists();
     Client.DeleteAllClients();
     Specialty.DeleteAllSpecialties();
 }