Skip to content

Commit

Permalink
refactor: ♻️ refactor some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdihadeli committed Jul 1, 2023
1 parent 773f0ef commit 16f88c1
Show file tree
Hide file tree
Showing 76 changed files with 2,374 additions and 1,019 deletions.
4 changes: 4 additions & 0 deletions src/Vertical.Slice.Template.Api/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
"BaseAddress": "https://rickandmortyapi.com",
"CharacterEndpoint": "api/character"
},
"UsersHttpClientOptions":{
"BaseAddress":"https://dummyjson.com",
"UsersEndpoint": "users"
},
"PolicyOptions": {
"BulkheadPolicyOptions": {
"MaxParallelization": 10,
Expand Down
7 changes: 6 additions & 1 deletion src/Vertical.Slice.Template.Api/appsettings.test.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"CatalogsApiClientOptions": {
"CatalogBaseApiAddress": ""
"CatalogBaseApiAddress": "",
"BaseAddress":"http://localhost:4000"
},
"UsersHttpClientOptions":{
"BaseAddress":"https://dummyjson.com",
"UsersEndpoint": "users"
},
"CacheOptions": {
"ExpirationTimeInMinute": 5
Expand Down
10 changes: 0 additions & 10 deletions src/Vertical.Slice.Template.ApiClient/Catalogs/Product.cs

This file was deleted.

937 changes: 937 additions & 0 deletions src/Vertical.Slice.Template.ApiClient/Clients/CatalogsClient.g.cs

Large diffs are not rendered by default.

18 changes: 0 additions & 18 deletions src/Vertical.Slice.Template.ApiClient/ClientsMappingProfile.cs

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,23 @@
</ItemGroup>

<!-- https://learn.microsoft.com/en-us/aspnet/core/web-api/microsoft.dotnet-openapi-->
<!-- https://stevetalkscode.co.uk/openapireference-commands-->
<!-- https://devblogs.microsoft.com/dotnet/generating-http-api-clients-using-visual-studio-connected-services/-->
<!-- https://github.com/dotnet/aspnetcore/blob/main/src/Tools/Extensions.ApiDescription.Client/src/build/Microsoft.Extensions.ApiDescription.Client.props#L65-->
<!-- https://gist.github.com/stevetalkscode/69719465d8271f1e9fa412626fdadfcd-->
<!-- For existing options like Namespace command args in options tag doesn't work-->
<!-- dotnet openapi add url http://localhost:5158/swagger/v1/swagger.json-->
<!-- dotnet openapi refresh http://localhost:5158/swagger/v1/swagger.json-->
<!-- dotnet openapi add url http://localhost:4000/swagger/v1/swagger.json-->
<!-- dotnet openapi refresh http://localhost:4000/swagger/v1/swagger.json-->
<ItemGroup>
<OpenApiReference Include="swagger.json" SourceUrl="http://localhost:5158/swagger/v1/swagger.json">
<OpenApiReference Include="swagger.json" SourceUrl="http://localhost:4000/swagger/v1/swagger.json">
<Namespace>Catalogs.ApiClient</Namespace>
<ClassName>CatalogsApiClient</ClassName>
<OutputPath>Client.g.cs</OutputPath>
<OutputPath>$(ProjectDir)/Clients/CatalogsClient.g.cs</OutputPath>
<!-- this options configs are equals to nswag.jsson configs-->
<Options>/ClassStyle:Record /DateTimeType:System.DateTime /UseBaseUrl:false /GenerateBaseUrlProperty:true /ExceptionClass:ApiException /GenerateClientInterfaces:true</Options>
</OpenApiReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Clients\" />
</ItemGroup>
</Project>
Loading

0 comments on commit 16f88c1

Please sign in to comment.