mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-31 06:33:25 +02:00
LogEntries
@@ -65,9 +65,9 @@ server
|
|||||||
|
|
||||||
## Verify interactions
|
## Verify interactions
|
||||||
The server keeps a log of the received requests. You can use this log to verify the interactions that have been done with the server during a test.
|
The server keeps a log of the received requests. You can use this log to verify the interactions that have been done with the server during a test.
|
||||||
To get all the request received by the server, you just need to read property *RequestLogs*:
|
To get all the request received by the server, you just need to read property *LogEntries*:
|
||||||
```csharp
|
```csharp
|
||||||
var allRequests = server.RequestLogs;
|
var logEntries = server.LogEntries;
|
||||||
```
|
```
|
||||||
If you need to be more specific on the requests that have been send to the server, you can use the very same fluent API that allows to define routes:
|
If you need to be more specific on the requests that have been send to the server, you can use the very same fluent API that allows to define routes:
|
||||||
```csharp
|
```csharp
|
||||||
|
|||||||
Reference in New Issue
Block a user