예제 #1
0
        public void CreateInvalidFeedback()
        {
            FeedbackUtil feedbackUtil = new FeedbackUtil();
            Feedback feedback = new Feedback();

            feedbackUtil.SendFeedback(feedback);
        }
예제 #2
0
 public void CreateValidFeedback()
 {
     FeedbackUtil feedbackUtil = new FeedbackUtil();
     Feedback feedback = new Feedback();
     feedback.UserId = 1;
     feedback.Message = "FEEDBACK TEST MESSAGE";
     feedback.ReportType = "REPORT TYPE";
     feedbackUtil.SendFeedback(feedback);
 }
예제 #3
0
 public void SendFeedback(Feedback userFeedback)
 {
     try
     {
         FeedbackUtil utility = new FeedbackUtil();
         utility.SendFeedback(userFeedback);
     }
     catch (ModelException ex)
     {
         CapitalError error = new CapitalError(ex);
         throw new FaultException<CapitalError>(error, error.Message);
     }
     catch (Exception)
     {
         return;
     }
 }