mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-07-16 17:47:22 +00:00
code style cleanup
This commit is contained in:
@@ -10,9 +10,9 @@ public class SendRegistrationEmailHandlerTests
|
||||
[Fact]
|
||||
public async Task Handle_DelegatesToEmailDispatcher()
|
||||
{
|
||||
var dispatcherMock = new Mock<IEmailDispatcher>();
|
||||
var handler = new SendRegistrationEmailHandler(dispatcherMock.Object);
|
||||
var command = new SendRegistrationEmailCommand("Aaron", "aaron@example.com", "token-123");
|
||||
Mock<IEmailDispatcher> dispatcherMock = new();
|
||||
SendRegistrationEmailHandler handler = new(dispatcherMock.Object);
|
||||
SendRegistrationEmailCommand command = new("Aaron", "aaron@example.com", "token-123");
|
||||
|
||||
await handler.Handle(command, CancellationToken.None);
|
||||
|
||||
@@ -21,4 +21,4 @@ public class SendRegistrationEmailHandlerTests
|
||||
Times.Once
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -10,9 +10,9 @@ public class SendResendConfirmationEmailHandlerTests
|
||||
[Fact]
|
||||
public async Task Handle_DelegatesToEmailDispatcher()
|
||||
{
|
||||
var dispatcherMock = new Mock<IEmailDispatcher>();
|
||||
var handler = new SendResendConfirmationEmailHandler(dispatcherMock.Object);
|
||||
var command = new SendResendConfirmationEmailCommand("Aaron", "aaron@example.com", "token-456");
|
||||
Mock<IEmailDispatcher> dispatcherMock = new();
|
||||
SendResendConfirmationEmailHandler handler = new(dispatcherMock.Object);
|
||||
SendResendConfirmationEmailCommand command = new("Aaron", "aaron@example.com", "token-456");
|
||||
|
||||
await handler.Handle(command, CancellationToken.None);
|
||||
|
||||
@@ -21,4 +21,4 @@ public class SendResendConfirmationEmailHandlerTests
|
||||
Times.Once
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,25 +1,25 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<IsPackable>false</IsPackable>
|
||||
<RootNamespace>Features.Emails.Tests</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<IsPackable>false</IsPackable>
|
||||
<RootNamespace>Features.Emails.Tests</RootNamespace>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
|
||||
<PackageReference Include="xunit" Version="2.9.2" />
|
||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2" />
|
||||
<PackageReference Include="Moq" Version="4.20.72" />
|
||||
<PackageReference Include="FluentAssertions" Version="6.9.0" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1"/>
|
||||
<PackageReference Include="xunit" Version="2.9.2"/>
|
||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2"/>
|
||||
<PackageReference Include="Moq" Version="4.20.72"/>
|
||||
<PackageReference Include="FluentAssertions" Version="6.9.0"/>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Using Include="Xunit" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Using Include="Xunit"/>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Features.Emails\Features.Emails.csproj" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Features.Emails\Features.Emails.csproj"/>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user