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; }
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; }
/// <summary> /// Restituisce il valore di HttpContentType /// </summary> /// <param name="type"></param> /// <returns></returns> public static string ToStringValue(this HttpPostMethod type) { return(type.GetDescription()); }
/// <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; }