/// <summary>
 /// Craig Barkley
 /// Created: 02/06/2019
 /// Create new Appointment type
 /// </summary>
 ///
 /// <remarks>
 ///  Adds if the return is true.
 /// </remarks>
 private void BtnAppointmentTypeAction_Click(object sender, RoutedEventArgs e)
 {
     if (createNewAppointmentType())
     {
         try
         {
             var result = _appointmentTypeManager.AddAppointmentType(_newAppointmentType);
             //add if this returns true
             if (result == true)
             {
                 this.DialogResult = true;
             }
         }
         catch (Exception ex)
         {
             MessageBox.Show(ex.Message, "Appointment Type Added");
         }
     }
 }
        public void TestCreateAppointmentTypeValidInput()
        {
            bool expectedResult = true;
            bool actualResult;

            // arrange
            AppointmentType testAppointmentType = new AppointmentType()
            {
                AppointmentTypeID = "GoodID",
                Description       = "Good  Long Description",
            };

            // act
            actualResult = appointmenttManager.AddAppointmentType(testAppointmentType);

            // assert - check if AppointmentType was added
            Assert.AreEqual(expectedResult, actualResult);
        }