Example #1
0
        public void Test_Update_UpdatesStylistsInDatabase()
        {
            //Arrange
            string  availability = "MTuWTh";
            Stylist testStylist  = new Stylist("Lisa", availability, "Color and Style");

            testStylist.Save();
            string newAvailability = "TuWThF";

            //Act
            testStylist.Update(newAvailability, "Color and Style");
            string result = testStylist.GetAvailability();

            //Assert
            Assert.Equal(newAvailability, result);
        }