Skip to content

Commit b0d0762

Browse files
committed
Fixed namespace.
1 parent 6c701ad commit b0d0762

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

tests/GeneratedEndpoints.Tests/Common/TestHelpers.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public static IEnumerable<string> GetSources(string source, bool withNamespace)
2222
using Microsoft.AspNetCore.Generated.Attributes;
2323
using Microsoft.AspNetCore.Http;
2424
using Microsoft.AspNetCore.Http.HttpResults;
25+
using Microsoft.AspNetCore.Routing;
2526
""";
2627

2728
if (withNamespace)

tests/GeneratedEndpoints.Tests/GeneratedEndpoints.Tests.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,10 @@
3838
<ProjectReference Include="..\..\src\GeneratedEndpoints\GeneratedEndpoints.csproj"/>
3939
</ItemGroup>
4040

41+
<ItemGroup>
42+
<None Update="GeneratedEndpointsTests.MapAllAttributesAndHttpMethods_AddEndpointHandlers_WithNamespace.verified.txt">
43+
<DependentUpon>GeneratedEndpointsTests.cs</DependentUpon>
44+
</None>
45+
</ItemGroup>
46+
4147
</Project>

tests/GeneratedEndpoints.Tests/GeneratedEndpointsTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public async Task MapAllAttributesAndHttpMethods(bool withNamespace)
119119
[Microsoft.AspNetCore.Generated.Attributes.ProducesResponse(typeof(ClassLevelResponse), 201, "application/json", "text/json")]
120120
[ProducesProblem(503, "application/problem+json")]
121121
[ProducesValidationProblem(409, "application/problem+json", "text/plain")]
122-
[Microsoft.AspNetCore.Routing.ExcludeFromDescription]
122+
[ExcludeFromDescription]
123123
internal sealed class ComplexEndpoints
124124
{
125125
private readonly IServiceProvider _serviceProvider;
@@ -142,7 +142,7 @@ public static void Configure<TBuilder>(TBuilder builder, IServiceProvider servic
142142
[Microsoft.AspNetCore.Generated.Attributes.ProducesResponse<GetResponse>(200, "application/json", "text/json")]
143143
[ProducesProblem(400, "application/problem+json", "text/plain")]
144144
[ProducesValidationProblem(422, "application/problem+json", "text/plain")]
145-
[Microsoft.AspNetCore.Routing.ExcludeFromDescription]
145+
[ExcludeFromDescription]
146146
public async Task<Results<Ok<GetResponse>, NotFound>> GetComplex(
147147
[FromRoute] int id,
148148
[FromQuery] string? filter,

0 commit comments

Comments
 (0)