Skip to content

Commit 5c84c39

Browse files
Add TodoApp for testing
Add a functional Todo app with and API to use for further integration/end-to-end validation.
1 parent 360b228 commit 5c84c39

26 files changed

Lines changed: 1721 additions & 1 deletion

Directory.Packages.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<PackageVersion Include="Microsoft.AspNetCore.TestHost" Version="8.0.22" />
1616
<PackageVersion Include="Microsoft.Build" Version="18.0.2" />
1717
<PackageVersion Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="4.14.0" />
18+
<PackageVersion Include="Microsoft.EntityFrameworkCore.InMemory" Version="10.0.0" />
1819
<PackageVersion Include="Microsoft.Kiota.Bundle" Version="1.21.0" />
1920
<PackageVersion Include="Microsoft.OpenApi" Version="2.3.9" />
2021
<PackageVersion Include="Microsoft.OpenApi.YamlReader" Version="2.3.9" />

Swashbuckle.AspNetCore.slnx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
<Project Path="test/WebSites/ReDoc/ReDoc.csproj" />
7878
<Project Path="test/WebSites/TestFirst.IntegrationTests/TestFirst.IntegrationTests.csproj" />
7979
<Project Path="test/WebSites/TestFirst/TestFirst.csproj" />
80+
<Project Path="test/WebSites/TodoApp/TodoApp.csproj" />
8081
<Project Path="test/WebSites/TopLevelSwaggerDoc/TopLevelSwaggerDoc.csproj" />
8182
<Project Path="test/WebSites/WebApi.Aot/WebApi.Aot.csproj" />
8283
<Project Path="test/WebSites/WebApi/WebApi.csproj" />

test/Swashbuckle.AspNetCore.IntegrationTests/SwaggerIntegrationTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ public async Task SwaggerMiddleware_CanBeConfiguredMultipleTimes(
117117
[InlineData(typeof(MinimalApp.Program), "/swagger/v1/swagger.json")]
118118
[InlineData(typeof(MinimalAppWithNullableEnums.Program), "/swagger/v1/swagger.json")]
119119
[InlineData(typeof(MvcWithNullable.Program), "/swagger/v1/swagger.json")]
120+
[InlineData(typeof(TodoApp.Program), "/swagger/v1/swagger.json")]
120121
[InlineData(typeof(TopLevelSwaggerDoc.Program), "/swagger/v1.json")]
121122
[InlineData(typeof(WebApi.Program), "/swagger/v1/swagger.json")]
122123
[InlineData(typeof(WebApi.Aot.Program), "/swagger/v1/swagger.json")]

test/Swashbuckle.AspNetCore.IntegrationTests/Swashbuckle.AspNetCore.IntegrationTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
<ItemGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net10.0'))">
2929
<AssemblyMetadata Include="ProjectRoot" Value="$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)'))" />
3030
<AssemblyMetadata Include="SolutionRoot" Value="$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)\..\..'))" />
31-
<ProjectReference Include="..\Swashbuckle.AspNetCore.TestSupport\Swashbuckle.AspNetCore.TestSupport.csproj" />
3231
<PackageReference Include="Microsoft.Build" />
3332
<PackageReference Include="MSBuild.ProjectCreation" />
3433
<PackageReference Include="NSwag.CodeGeneration.CSharp" />
34+
<ProjectReference Include="..\Swashbuckle.AspNetCore.TestSupport\Swashbuckle.AspNetCore.TestSupport.csproj" />
3535
</ItemGroup>
3636

3737
<ItemGroup>

test/Swashbuckle.AspNetCore.IntegrationTests/VerifyTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ await Verify(swagger)
5858
[InlineData(typeof(MinimalApp.Program), "/swagger/v1/swagger.json")]
5959
[InlineData(typeof(MinimalAppWithNullableEnums.Program), "/swagger/v1/swagger.json")]
6060
[InlineData(typeof(MvcWithNullable.Program), "/swagger/v1/swagger.json")]
61+
[InlineData(typeof(TodoApp.Program), "/swagger/v1/swagger.json")]
6162
[InlineData(typeof(TopLevelSwaggerDoc.Program), "/swagger/v1.json")]
6263
[InlineData(typeof(WebApi.Program), "/swagger/v1/swagger.json")]
6364
[InlineData(typeof(WebApi.Aot.Program), "/swagger/v1/swagger.json")]

0 commit comments

Comments
 (0)