コード例 #1
0
 // Constructors
 public UseCaseDescription(string description, string url, ActionDescription declaringAction)
 {
     if (string.IsNullOrEmpty(description))
     {
         throw new ArgumentNullException("code");
     }
     if (declaringAction == null)
     {
         throw new ArgumentNullException("declaringAction");
     }
     this._url = url;
     this._description = description;
     this._declaringAction = declaringAction;
 }
コード例 #2
0
 // Constructors
 public ErrorCaseDescription(string description, string url, string errorCode, int httpStatusCode, ActionDescription declaringAction)
 {
     if (string.IsNullOrEmpty(description))
     {
         throw new ArgumentNullException("code");
     }
     if (declaringAction == null)
     {
         throw new ArgumentNullException("declaringAction");
     }
     this._description = description;
     this._url = url;
     this._errorCode = errorCode;
     this._httpStatusCode = httpStatusCode;
     this._declaringAction = declaringAction;
 }
コード例 #3
0
 // Constructors
 public ParameterDescription(ParameterInfo parameter, ActionDescription declaringAction)
 {
     this._declaringAction = declaringAction;
     this._parameter = parameter;
 }