public HtmlDocument get_occasional_error_HelloText(OccasionalInput inputModel) { var rand = new Random(); if (rand.Next(0, 100) < 10) { throw new Exception("Boom"); } var document = new HtmlDocument(); document.Add("h1").Text(inputModel.HelloText); return document; }
public HtmlDocument get_occasional_error_HelloText(OccasionalInput inputModel) { var rand = new Random(); if (rand.Next(0, 100) < 10) { throw new Exception("Boom"); } var document = new HtmlDocument(); document.Add("h1").Text(inputModel.HelloText); return(document); }