/// <summary> /// Returns an enumerator that iterates through the collection. /// </summary> /// <returns>An enumerator that can be used to iterate through the collection.</returns> public IEnumerator <IText> GetEnumerator() { return (new TextCollection( new Mapped <Exception, string>( _source.Errors(), err => err.ToString() ) ).GetEnumerator()); }
public BadCredentialViewModel(IAttempt attempt) : this(attempt.Errors()) { }