Exemplo n.º 1
0
 internal static string CreateRequestDescriptionString(IRequestDescription requestDescription)
 {
     var stringBuilder = new StringBuilder();
     stringBuilder.AppendLine();
     var areaName = requestDescription.AreaName.IsNullOrEmpty() ? "(not set)" : requestDescription.AreaName;
     stringBuilder.AppendLine("Area: {0}".FormatWith(areaName));
     stringBuilder.AppendLine("Controller: {0}".FormatWith(requestDescription.ControllerName));
     stringBuilder.Append("Action: {0}".FormatWith(requestDescription.ActionName));
     return stringBuilder.ToString();
 }
Exemplo n.º 2
0
        internal static string CreateRequestDescriptionString(IRequestDescription requestDescription)
        {
            var stringBuilder = new StringBuilder();

            stringBuilder.AppendLine();
            var areaName = requestDescription.AreaName.IsNullOrEmpty() ? "(not set)" : requestDescription.AreaName;

            stringBuilder.AppendLine("Area: {0}".FormatWith(areaName));
            stringBuilder.AppendLine("Controller: {0}".FormatWith(requestDescription.ControllerName));
            stringBuilder.Append("Action: {0}".FormatWith(requestDescription.ActionName));
            return(stringBuilder.ToString());
        }
Exemplo n.º 3
0
 public RequestDescription()
 {
     _request = new RequestThroughDispose();
 }
Exemplo n.º 4
0
 public RequestDescription(string result)
 {
     _request = new RequestThroughString(result);
 }
Exemplo n.º 5
0
 public RequestDescription(RemoteResult result)
 {
     _request = new RequestThroughRemoteResult(result);
 }
Exemplo n.º 6
0
 public RequestDescription(UserTransaction userTransaction)
 {
     _dataNotFound = false;
     _request      = new RequestThroughTransaction(userTransaction);
 }