Skip to content

Commit 98358e0

Browse files
committed
New multiple file example
1 parent 6a61c13 commit 98358e0

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

Example/App/App.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@
3939
<None Update="Config\Api\User\Response\searchUsersPage1.json">
4040
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
4141
</None>
42+
<None Update="Config\Api\User\Response\searchUsersPage2.json">
43+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
44+
</None>
4245
</ItemGroup>
4346
<ItemGroup>
4447
<ProjectReference Include="..\..\Src\FakeApi\FakeApi.csproj" />
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"results": [
3+
{
4+
"id": 2048,
5+
"firstname": "mickael",
6+
"lastname": "jordan"
7+
},
8+
{
9+
"id": 4096,
10+
"firstname": "kirk",
11+
"lastname": "hammett"
12+
}
13+
]
14+
}

Example/App/Config/Api/User/usersApi.cfg.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@
6262
"delay": 500,
6363
"files": [
6464
"Config/Api/User/Response/searchUsersPage0.json",
65-
"Config/Api/User/Response/searchUsersPage1.json"
65+
"Config/Api/User/Response/searchUsersPage1.json",
66+
"Config/Api/User/Response/searchUsersPage2.json"
6667
]
6768
}
6869
]

Example/App/UserRequestExample.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public static void Start(IHttpRequester httpRequester)
1717
SearchUser(httpRequester);
1818
SearchUser(httpRequester);
1919
SearchUser(httpRequester);
20+
SearchUser(httpRequester);
2021
}
2122

2223
private static void SearchUser(IHttpRequester httpRequester)

0 commit comments

Comments
 (0)