forked from connamara/quickfixn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use AT runner '-o' option to write TestResult.xml instead of using IO…
… redirection. AT 11c passing (send Reject for invalid seq reset)
- Loading branch information
Showing
11 changed files
with
256 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,61 @@ | ||
| ||
namespace QuickFix | ||
{ | ||
public class FixValue<T> | ||
{ | ||
private T value_; | ||
private string description_; | ||
|
||
public T Value { get { return value_; } } | ||
public string Description { get { return description_; } } | ||
|
||
public FixValue(T value, string description) | ||
{ | ||
value_ = value; | ||
description_ = description; | ||
} | ||
|
||
public override bool Equals(object obj) | ||
{ | ||
if ((null == obj) || (this.GetType() != obj.GetType())) | ||
return false; | ||
FixValue<T> rhs = (FixValue<T>)obj; | ||
return this.Value.Equals(rhs.Value); | ||
} | ||
|
||
public override int GetHashCode() | ||
{ | ||
return value_.GetHashCode(); | ||
} | ||
|
||
public override string ToString() | ||
{ | ||
return description_; | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// TODO generate this class | ||
/// </summary> | ||
namespace FixValues | ||
{ | ||
public class MsgType | ||
{ | ||
public const string HEARTBEAT = "0"; | ||
public const string TEST_REQUEST = "1"; | ||
public const string RESEND_REQUEST = "2"; | ||
public const string REJECT = "3"; | ||
public const string SEQUENCE_RESET = "4"; | ||
public const string LOGOUT = "5"; | ||
public const string LOGON = "A"; | ||
public const string HEARTBEAT = "0"; | ||
public const string TEST_REQUEST = "1"; | ||
public const string RESEND_REQUEST = "2"; | ||
public const string REJECT = "3"; | ||
public const string SEQUENCE_RESET = "4"; | ||
public const string LOGOUT = "5"; | ||
public const string LOGON = "A"; | ||
public const string NEW_ORDER_SINGLE = "D"; | ||
} | ||
|
||
public class SessionRejectReason | ||
{ | ||
public const int VALUE_IS_INCORRECT = 5; | ||
public static FixValue<int> INVALID_TAG_NUMBER = new FixValue<int>(0, "Invalid tag number"); | ||
public static FixValue<int> VALUE_IS_INCORRECT = new FixValue<int>(5, "Value is incorrect (out of range) for this tag"); | ||
public static FixValue<int> INVALID_MSGTYPE = new FixValue<int>(11, "Invalid MsgType"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters