public void CreateInvalidFeedback() { FeedbackUtil feedbackUtil = new FeedbackUtil(); Feedback feedback = new Feedback(); feedbackUtil.SendFeedback(feedback); }
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); }
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; } }