/// <summary>
        /// Creator: Awaab Elamin
        /// Created: 2020/02/04
        /// Approver : Mohamed Elamin
        /// after reviewer select a customer record, btnOpenRecord retrireve that customer data and filled
        /// the customer details and hidden the adoption appliaction then show the customer data
        /// </summary>
        /// <param name="e"></param>
        /// <param name="sender"></param>
        private void btnOpenRecord_Click(object sender, RoutedEventArgs e)
        {
            List <Questionnair> questionnairs = new List <Questionnair>();

            try
            {
                adoptionApplication = (AdoptionApplication)DGViewData.SelectedItem;
                if (adoptionApplication != null)
                {
                    this.customerEmail = adoptionApplication.CustomerEmail;
                    reviewerManager    = new ReviewerManager();
                    customer           = reviewerManager.retrieveCustomerByCustomerName(this.customerEmail);

                    List <CustomerQuestionnar> customerQuestionnars = reviewerManager.retrieveCustomerQuestionnar(this.customerEmail);
                    lblCustomerName.Content = adoptionApplication.CustomerEmail;

                    DGViewQuestionnair.ItemsSource = customerQuestionnars;
                    adoptionApplication            = new AdoptionApplication();

                    ReviewerDecission.Visibility        = Visibility.Hidden;
                    ViewAdoptionApplications.Visibility = Visibility.Hidden;
                    CustomerQustionnair.Visibility      = Visibility.Visible;
                }
                else
                {
                    lblAdoptionApplicationErrorMessage.Content = "Please select a customer";
                }
            }
            catch (Exception)
            {
                lblAdoptionApplicationErrorMessage.Content = "This customer did not fill the questionnar!";
            }
        }
        public void TestGetCustomerByCustomerName()
        {
            //arrange
            AdoptionCustomer customer     = null;
            string           customerName = "Elamin";

            //acct
            customer = reviewerManager.retrieveCustomerByCustomerName(customerName);
            //assert
            Assert.AreEqual(customerName, customer.LastName);
        }