12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
-
- using System;
- using System.Text;
- namespace CassiniDev
- {
-
- public class BrowserTestResults
- {
- public BrowserTestResults()
- {
- }
- public BrowserTestResults(RequestEventArgs eventArgs)
- {
- Id = eventArgs.Id;
- if (eventArgs.RequestLog.Body.Length > 0)
- {
- Log = Encoding.UTF8.GetString(eventArgs.RequestLog.Body);
- }
- Error = eventArgs.RequestLog.Exception;
- StatusCode = eventArgs.RequestLog.StatusCode;
- Url = eventArgs.RequestLog.Url;
- Success = Url.IndexOf("success", StringComparison.InvariantCultureIgnoreCase) > -1;
- }
- public bool Success { get; set; }
- public string Url { get; set; }
- public long? StatusCode { get; set; }
- public string Error { get; set; }
- public string Log { get; set; }
- public Guid Id { get; set; }
- }
- }
|