Skip to content

Commit

Permalink
v1.3.3 release
Browse files Browse the repository at this point in the history
  • Loading branch information
dj-nitehawk committed Oct 29, 2023
1 parent cac3908 commit 1b929ff
Show file tree
Hide file tree
Showing 12 changed files with 204 additions and 147 deletions.
2 changes: 1 addition & 1 deletion FastEndpoints.TemplatePack.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>

<Version>1.3.2</Version>
<Version>1.3.3</Version>

<PackageType>Template</PackageType>
<PackageId>FastEndpoints.TemplatePack</PackageId>
Expand Down
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
- upgrade dependencies to latest
- minor template refactoring
- update `.editorconfig` file
276 changes: 168 additions & 108 deletions templates/project/.editorconfig

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions templates/project/Source/Features/.editorconfig

This file was deleted.

23 changes: 0 additions & 23 deletions templates/project/Source/Features/SayHello/Models.cs

This file was deleted.

18 changes: 18 additions & 0 deletions templates/project/Source/Features/SayHello/Request.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using FluentValidation;

namespace SayHello;

sealed class Request
{
public string FirstName { get; set; }
public string LastName { get; set; }

sealed class Validator : Validator<Request>
{
public Validator()
{
RuleFor(x => x.FirstName).MinimumLength(3);
RuleFor(x => x.LastName).MinimumLength(5);
}
}
}
6 changes: 6 additions & 0 deletions templates/project/Source/Features/SayHello/Response.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace SayHello;

sealed class Response
{
public string Message { get; set; }
}
6 changes: 3 additions & 3 deletions templates/project/Source/MyProject.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FastEndpoints" Version="5.18.0" />
<PackageReference Include="FastEndpoints.Security" Version="5.18.0" />
<PackageReference Include="FastEndpoints.Swagger" Version="5.18.0" />
<PackageReference Include="FastEndpoints" Version="5.19.0" />
<PackageReference Include="FastEndpoints.Security" Version="5.19.0" />
<PackageReference Include="FastEndpoints.Swagger" Version="5.19.0" />
</ItemGroup>

</Project>
4 changes: 1 addition & 3 deletions templates/project/Source/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@

var bld = WebApplication.CreateBuilder(args);
bld.Services
.AddAuthorization()
.AddFastEndpoints()
.SwaggerDocument();

var app = bld.Build();
app.UseAuthorization()
.UseFastEndpoints()
app.UseFastEndpoints()
.UseSwaggerGen();
app.Run();

Expand Down
1 change: 1 addition & 0 deletions templates/project/Tests/Metadata.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
global using FastEndpoints;
global using FastEndpoints.Testing;
global using FluentAssertions;
global using Microsoft.Extensions.DependencyInjection;
global using System.Net;
global using Xunit;
global using Xunit.Abstractions;
Expand Down
4 changes: 1 addition & 3 deletions templates/project/Tests/SayHello/Fixture.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Microsoft.Extensions.DependencyInjection;

namespace Tests.SayHello;
namespace Tests.SayHello;

public class Fixture : TestFixture<Program>
{
Expand Down
6 changes: 3 additions & 3 deletions templates/project/Tests/Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FastEndpoints.Testing" Version="5.18.0" />
<PackageReference Include="FastEndpoints.Testing" Version="5.19.0" />
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="xunit" Version="2.5.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.1" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
<PackageReference Include="xunit" Version="2.5.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.3" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
<PackageReference Include="coverlet.collector" Version="6.0.0" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
</ItemGroup>

Expand Down

0 comments on commit 1b929ff

Please sign in to comment.