コード例 #1
0
        public void Test_Update_UpdatesClientsInDatabase()
        {
            //Arrange
            string appointmentDay = "Monday";
            Client testClient     = new Client("Susie", 1, appointmentDay, "11:30");

            testClient.Save();
            string newAppointmentDay = "Tuesday";

            //Act
            testClient.Update(newAppointmentDay, "11:30");
            string result = testClient.GetAppointmentDay();

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