protected void VerifyProtocolException(ProtocolEventArgs <ProtocolException> args, long messageId, EtpErrorCodes errorCode) { VerifyCorrelationId(args, messageId); // Verify Error Code Assert.IsNotNull(args?.Message); Assert.AreEqual((int)errorCode, args.Message.ErrorCode); }
/// <summary> /// Sets the properties of the specified <see cref="IErrorInfo"/> instance. /// </summary> /// <param name="errorInfo">The <see cref="IErrorInfo"/> instance to update.</param> /// <param name="errorCode">The error code.</param> /// <param name="errorMessage">The error message.</param> /// <returns>The initialized <see cref="IErrorInfo"/> instance.</returns> public static IErrorInfo Set(this IErrorInfo errorInfo, EtpErrorCodes errorCode, string errorMessage) { return(errorInfo.Set((int)errorCode, errorMessage)); }