Пример #1
0
        private void bntUpdate_Click(object sender, RoutedEventArgs e)
        {
            if (TBCPR.Text == patient.CPR)
            {
                patient.Email       = TBEmail.Text;
                patient.MobilNummer = TBPhonenumber.Text;
                uc2ManagePatient.SaveUpdates(patient);
                MessageBox.Show("Ændringen er gemt");
            }

            TBEmail.IsEnabled       = false;
            TBPhonenumber.IsEnabled = false;
        }
Пример #2
0
        private void bntUpdate_Click(object sender, RoutedEventArgs e)
        {
            if (TBCPR.Text == patient.CPR)
            {
                patient.Email       = TBEmail.Text;
                patient.MobilNummer = TBPhonenumber.Text;
                patient.Age         = 0;
                uc2ManagePatient.SaveUpdates(patient);
                MessageBox.Show("Patientens e-mail og telefonnummer er opdateret");
            }

            TBEmail.IsEnabled       = false;
            TBPhonenumber.IsEnabled = false;
        }
Пример #3
0
 public void SaveUpdates_ExpectedResult_CallDatabaseUpdate()
 {
     uut.SaveUpdates(patient);
     clinicDatabase.Received(1).UpdatePatient(patient);
 }