Skip to content

Commit b098417

Browse files
committed
Fixed a breaking unit test
1 parent 1beb538 commit b098417

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

Source/Shared/LastReferenceIdManager/DefaultLastReferenceIdManager.cs

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,29 @@
1111

1212
namespace Exceptionless {
1313
internal class DefaultLastReferenceIdManager : ILastReferenceIdManager {
14-
private string _lastErrorId;
14+
private string _lastReferenceId;
1515

1616
/// <summary>
17-
/// Gets the last event's client id that was submitted to the server.
17+
/// Gets the last event's reference id that was submitted to the server.
1818
/// </summary>
1919
/// <returns>The client id</returns>
2020
public string GetLast() {
21-
return _lastErrorId;
21+
return _lastReferenceId;
2222
}
2323

2424
/// <summary>
25-
/// Clears the last error id.
25+
/// Clears the last event's reference id.
2626
/// </summary>
2727
public void ClearLast() {
28-
_lastErrorId = String.Empty;
28+
_lastReferenceId = null;
2929
}
3030

31+
/// <summary>
32+
/// Sets the last event's reference id.
33+
/// </summary>
34+
/// <param name="errorId"></param>
3135
public void SetLast(string errorId) {
32-
_lastErrorId = errorId;
36+
_lastReferenceId = errorId;
3337
}
3438
}
3539
}

0 commit comments

Comments
 (0)