private string WebRequestAsStringWithoutToken() { var webRequestAsString = _webRequest.ToString(); string[] parsedWebRequestString = webRequestAsString.Split("\n"); var stringBuilder = new StringBuilder(); foreach (var webRequestStringPart in parsedWebRequestString) { if (!webRequestStringPart.StartsWith("Token:")) { stringBuilder.Append(webRequestStringPart); } } return(stringBuilder.ToString()); }
public override string ToString() { return(_webRequest.ToString()); }