/// <summary> /// </summary> /// <param name="genericResultCode"></param> /// <param name="code"></param> /// <param name="description"></param> public GenericResult(GenericResultCodes genericResultCode, int code, string description) { GenericResultCode = genericResultCode; Code = code; Description = description; SubResults = new List <IGenericResult>(); }
/// <summary> /// </summary> /// <param name="genericResultCode"></param> public GenericResult(GenericResultCodes genericResultCode) : this(genericResultCode, genericResultCode == GenericResultCodes.SUCCESS ? 0 : 1) { GenericResultCode = genericResultCode; }
/// <summary> /// </summary> /// <param name="genericResultCode"></param> /// <param name="code"></param> public GenericResult(GenericResultCodes genericResultCode, int code) : this(genericResultCode, code, genericResultCode.ToString()) { GenericResultCode = genericResultCode; }