public void TestGetContactById()
 {
     //Arrange
     CustomerModel model = new CustomerModel(new FakeUnitOfWork());
     //Act
     CS_Contact result = model.GetContactById(1);
     //Assert
     Assert.IsNotNull(result);
 }
 /// <summary>
 /// Add Contact to a selected contact list
 /// </summary>
 public void AddContactToCallEntry()
 {
     try
     {
         using (_customerModel = new CustomerModel())
         {
             CS_Contact contact = _customerModel.GetContactById(_view.SelectedContactId);
             _view.SelectedPersons.Add(new CS_CallLogResource() { ContactID = contact.ID, CS_Contact = contact });
         }
     }
     catch (Exception ex)
     {
         Logger.Write(string.Format("An Error has ocurred while trying to AddContactToCallEntry.\n{0}\n{1}", ex.Message, ex.StackTrace));
         _view.DisplayMessage("An Internal Error has ocurred while trying to load the Information. Please try again.", false);
     }
 }
        public void GetContactName()
        {
            string name = "--";

            if (_view.Identifier.HasValue)
            {
                using (_customerModel = new CustomerModel())
                {
                    name = _customerModel.GetContactById(_view.Identifier.Value).FullContactInformation;
                }
            }

            _view.ParamName = name;
        }