Skip to content

Commit 63432a0

Browse files
committed
Correct sort order for by-endpoint responses view
1 parent 583c22f commit 63432a0

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

netmockery/ResponseRegistry.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,7 @@ public void WriteResolvedInfoToConsole()
4848
}
4949
}
5050

51-
public class FailedRequestItem
52-
{
53-
public DateTime Timestamp;
54-
}
55-
51+
5652
public class ResponseRegistry
5753
{
5854
private int _nextId;
@@ -62,7 +58,7 @@ public class ResponseRegistry
6258

6359
public IEnumerable<ResponseRegistryItem> ForEndpoint(string endpointName)
6460
{
65-
return _items.Where(item => item?.Endpoint?.Name == endpointName);
61+
return Responses.Where(item => item?.Endpoint?.Name == endpointName);
6662
}
6763

6864
public ResponseRegistryItem Get(int id)

0 commit comments

Comments
 (0)