Exemple #1
0
        public bool AddResult(string description, bool itemResult, Verbosity.Level verbosity)
        {
            try
            {
                var currentOutcome = new Outcome(description, itemResult, verbosity);
                result.Add(currentOutcome);
                if (!itemResult)
                {
                    //TODO
                    // write a method in here to log a bug in JIRA Calling the API
                    // not sure how to do so yet so leaving as a todo
                    //LogBug(currentOutcome.VerbosityLevel);
                }

                return(true);
            }
            catch (NullReferenceException)
            {
                //Logger.WriteExceptionToLog(string.Format("Value {0} has not been added to the string list of results. Exeception thrown {1}", _result, ex.InnerException));
                return(false);
            }
        }
 public Outcome(string description, bool itemResult, Verbosity.Level verbosity)
 {
     Description    = description;
     ItemResult     = itemResult;
     VerbosityLevel = verbosity;
 }