Пример #1
0
 public Result(HttpStatusCode httpStatusCode,
     string currentHtml,
     long elapsedTimeInMilliseconds,
     HttpPostMethod httpPostMethod,
     string url,
     string scenarioName,
     Guid testRunGuid,
     string stepName,
     DateTime date)
 {
     _date = date;
     _httpStatusCode = httpStatusCode;
     _currentHtml = currentHtml;
     _elapsedTimeInMilliseconds = elapsedTimeInMilliseconds;
     _httpPostMethod = httpPostMethod;
     _url = url;
     _scenarioName = scenarioName;
     _testRunGuid = testRunGuid;
     _stepName = stepName;
 }
Пример #2
0
 public ResultEntity(HttpStatusCode httpStatusCode,
     byte[] currentHtml,
     long elapsedTimeInMilliseconds,
     HttpPostMethod httpPostMethod,
     string url,
     string scenarioName,
     Guid testRunGuid,
     string stepName,
     DateTime date)
 {
     PartitionKey = Guid.NewGuid().ToString();
     RowKey = Guid.NewGuid().ToString();
     Timestamp = DateTime.Now;
     Date = date;
     HttpStatusCode = httpStatusCode.ToString();
     CurrentHtml = currentHtml;
     ElapsedTimeInMilliseconds = elapsedTimeInMilliseconds;
     HttpPostMethod = httpPostMethod.ToString();
     Url = url;
     ScenarioName = scenarioName;
     TestRunGuid = testRunGuid;
     StepName = stepName;
 }
Пример #3
0
 /// <summary>
 ///     Restituisce il valore di HttpContentType
 /// </summary>
 /// <param name="type"></param>
 /// <returns></returns>
 public static string ToStringValue(this HttpPostMethod type)
 {
     return(type.GetDescription());
 }
Пример #4
0
 /// <summary>
 ///     Crea una nuova istanza di HttpPostMessage
 /// </summary>
 /// <param name="contentType"></param>
 /// <param name="messageData"></param>
 public HttpPostMessage(HttpPostMethod contentType, string messageData)
 {
     ContentType = contentType;
     MessageData = messageData;
 }