public HttpResult(IEnumerable<HttpOutcome> outcomes)
{
if (outcomes == null)
{
throw new ArgumentNullException("outcomes");
}
var httpOutcomes = outcomes.ToList();
if (httpOutcomes.Count == 0)
{
throw new ArgumentException(Resources.HttpResult_NoHttpOutcomeProvided);
}
_outcomes = new ReadOnlyCollection<HttpOutcome>(httpOutcomes);
}