0
0
mirror of https://github.com/alex289/CleanArchitecture.git synced 2025-07-05 05:23:57 +00:00

Merge pull request #32 from alex289/update/01_10_2023

Automatic Package Update 01_10_2023
This commit is contained in:
Alex 2023-10-01 13:18:08 +02:00 committed by GitHub
commit bfe40e180e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 52 additions and 46 deletions

View File

@ -53,7 +53,7 @@ jobs:
branch: "update/${{ env.date }}"
labels: dependencies
delete-branch: true
commit-message: "Update packages"
commit-message: "chore: Update dependencies"
assignees: ${{ env.assignee }}
base: ${{ env.baseBranch }}
title: "Automatic Package Update ${{ env.date }}"

1
.gitignore vendored
View File

@ -6,3 +6,4 @@ riderModule.iml
.idea
.vs
CleanArchitecture.sln.DotSettings.user
.DS_Store

View File

@ -12,8 +12,8 @@
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="MockQueryable.NSubstitute" Version="7.0.0" />
<PackageReference Include="NSubstitute" Version="5.1.0" />
<PackageReference Include="xunit" Version="2.5.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.0">
<PackageReference Include="xunit" Version="2.5.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>

View File

@ -12,8 +12,8 @@
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="NSubstitute" Version="5.1.0" />
<PackageReference Include="xunit" Version="2.5.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.0">
<PackageReference Include="xunit" Version="2.5.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>

View File

@ -1,4 +1,5 @@
using System;
using System.Threading.Tasks;
using CleanArchitecture.Domain.Commands.Tenants.CreateTenant;
using CleanArchitecture.Domain.Errors;
using CleanArchitecture.Shared.Events.Tenant;
@ -11,13 +12,13 @@ public sealed class CreateTenantCommandHandlerTests
private readonly CreateTenantCommandTestFixture _fixture = new();
[Fact]
public void Should_Create_Tenant()
public async Task Should_Create_Tenant()
{
var command = new CreateTenantCommand(
Guid.NewGuid(),
"Test Tenant");
_fixture.CommandHandler.Handle(command, default).Wait();
await _fixture.CommandHandler.Handle(command, default);
_fixture
.VerifyNoDomainNotification()
@ -28,7 +29,7 @@ public sealed class CreateTenantCommandHandlerTests
}
[Fact]
public void Should_Not_Create_Tenant_Insufficient_Permissions()
public async Task Should_Not_Create_Tenant_Insufficient_Permissions()
{
_fixture.SetupUser();
@ -36,7 +37,7 @@ public sealed class CreateTenantCommandHandlerTests
Guid.NewGuid(),
"Test Tenant");
_fixture.CommandHandler.Handle(command, default).Wait();
await _fixture.CommandHandler.Handle(command, default);
_fixture
.VerifyNoCommit()
@ -48,7 +49,7 @@ public sealed class CreateTenantCommandHandlerTests
}
[Fact]
public void Should_Not_Create_Tenant_Already_Exists()
public async Task Should_Not_Create_Tenant_Already_Exists()
{
var command = new CreateTenantCommand(
Guid.NewGuid(),
@ -56,7 +57,7 @@ public sealed class CreateTenantCommandHandlerTests
_fixture.SetupExistingTenant(command.AggregateId);
_fixture.CommandHandler.Handle(command, default).Wait();
await _fixture.CommandHandler.Handle(command, default);
_fixture
.VerifyNoCommit()

View File

@ -1,4 +1,5 @@
using System;
using System.Threading.Tasks;
using CleanArchitecture.Domain.Commands.Tenants.DeleteTenant;
using CleanArchitecture.Domain.Errors;
using CleanArchitecture.Shared.Events.Tenant;
@ -11,13 +12,13 @@ public sealed class DeleteTenantCommandHandlerTests
private readonly DeleteTenantCommandTestFixture _fixture = new();
[Fact]
public void Should_Delete_Tenant()
public async Task Should_Delete_Tenant()
{
var tenant = _fixture.SetupTenant();
var command = new DeleteTenantCommand(tenant.Id);
_fixture.CommandHandler.Handle(command, default).Wait();
await _fixture.CommandHandler.Handle(command, default);
_fixture
.VerifyNoDomainNotification()
@ -26,13 +27,13 @@ public sealed class DeleteTenantCommandHandlerTests
}
[Fact]
public void Should_Not_Delete_Non_Existing_Tenant()
public async Task Should_Not_Delete_Non_Existing_Tenant()
{
_fixture.SetupTenant();
var command = new DeleteTenantCommand(Guid.NewGuid());
_fixture.CommandHandler.Handle(command, default).Wait();
await _fixture.CommandHandler.Handle(command, default);
_fixture
.VerifyNoCommit()
@ -44,14 +45,14 @@ public sealed class DeleteTenantCommandHandlerTests
}
[Fact]
public void Should_Not_Delete_Tenant_Insufficient_Permissions()
public async Task Should_Not_Delete_Tenant_Insufficient_Permissions()
{
var tenant = _fixture.SetupTenant();
_fixture.SetupUser();
var command = new DeleteTenantCommand(tenant.Id);
_fixture.CommandHandler.Handle(command, default).Wait();
await _fixture.CommandHandler.Handle(command, default);
_fixture
.VerifyNoCommit()

View File

@ -1,4 +1,5 @@
using System;
using System.Threading.Tasks;
using CleanArchitecture.Domain.Commands.Tenants.UpdateTenant;
using CleanArchitecture.Domain.Errors;
using CleanArchitecture.Shared.Events.Tenant;
@ -11,7 +12,7 @@ public sealed class UpdateTenantCommandHandlerTests
private readonly UpdateTenantCommandTestFixture _fixture = new();
[Fact]
public void Should_Update_Tenant()
public async Task Should_Update_Tenant()
{
var command = new UpdateTenantCommand(
Guid.NewGuid(),
@ -19,7 +20,7 @@ public sealed class UpdateTenantCommandHandlerTests
_fixture.SetupExistingTenant(command.AggregateId);
_fixture.CommandHandler.Handle(command, default).Wait();
await _fixture.CommandHandler.Handle(command, default);
_fixture
.VerifyCommit()
@ -30,7 +31,7 @@ public sealed class UpdateTenantCommandHandlerTests
}
[Fact]
public void Should_Not_Update_Tenant_Insufficient_Permissions()
public async Task Should_Not_Update_Tenant_Insufficient_Permissions()
{
var command = new UpdateTenantCommand(
Guid.NewGuid(),
@ -38,7 +39,7 @@ public sealed class UpdateTenantCommandHandlerTests
_fixture.SetupUser();
_fixture.CommandHandler.Handle(command, default).Wait();
await _fixture.CommandHandler.Handle(command, default);
_fixture
.VerifyNoCommit()
@ -50,13 +51,13 @@ public sealed class UpdateTenantCommandHandlerTests
}
[Fact]
public void Should_Not_Update_Tenant_Not_Existing()
public async Task Should_Not_Update_Tenant_Not_Existing()
{
var command = new UpdateTenantCommand(
Guid.NewGuid(),
"Tenant Name");
_fixture.CommandHandler.Handle(command, default).Wait();
await _fixture.CommandHandler.Handle(command, default);
_fixture
.VerifyNoCommit()

View File

@ -1,4 +1,5 @@
using System;
using System.Threading.Tasks;
using CleanArchitecture.Domain.Commands.Users.CreateUser;
using CleanArchitecture.Domain.Enums;
using CleanArchitecture.Domain.Errors;
@ -13,7 +14,7 @@ public sealed class CreateUserCommandHandlerTests
private readonly CreateUserCommandTestFixture _fixture = new();
[Fact]
public void Should_Create_User()
public async Task Should_Create_User()
{
_fixture.SetupCurrentUser();
@ -28,7 +29,7 @@ public sealed class CreateUserCommandHandlerTests
"Email",
"Po=PF]PC6t.?8?ks)A6W");
_fixture.CommandHandler.Handle(command, default).Wait();
await _fixture.CommandHandler.Handle(command, default);
_fixture
.VerifyNoDomainNotification()
@ -37,7 +38,7 @@ public sealed class CreateUserCommandHandlerTests
}
[Fact]
public void Should_Not_Create_Already_Existing_User()
public async Task Should_Not_Create_Already_Existing_User()
{
_fixture.SetupCurrentUser();
@ -51,7 +52,7 @@ public sealed class CreateUserCommandHandlerTests
"Email",
"Po=PF]PC6t.?8?ks)A6W");
_fixture.CommandHandler.Handle(command, default).Wait();
await _fixture.CommandHandler.Handle(command, default);
_fixture
.VerifyNoCommit()
@ -63,7 +64,7 @@ public sealed class CreateUserCommandHandlerTests
}
[Fact]
public void Should_Not_Create_Already_Existing_Email()
public async Task Should_Not_Create_Already_Existing_Email()
{
_fixture.SetupCurrentUser();
@ -86,7 +87,7 @@ public sealed class CreateUserCommandHandlerTests
"Email",
"Po=PF]PC6t.?8?ks)A6W");
_fixture.CommandHandler.Handle(command, default).Wait();
await _fixture.CommandHandler.Handle(command, default);
_fixture
.VerifyNoCommit()
@ -98,7 +99,7 @@ public sealed class CreateUserCommandHandlerTests
}
[Fact]
public void Should_Not_Create_User_Tenant_Does_Not_Exist()
public async Task Should_Not_Create_User_Tenant_Does_Not_Exist()
{
_fixture.SetupCurrentUser();
@ -112,7 +113,7 @@ public sealed class CreateUserCommandHandlerTests
"Email",
"Po=PF]PC6t.?8?ks)A6W");
_fixture.CommandHandler.Handle(command, default).Wait();
await _fixture.CommandHandler.Handle(command, default);
_fixture
.VerifyNoCommit()
@ -124,7 +125,7 @@ public sealed class CreateUserCommandHandlerTests
}
[Fact]
public void Should_Not_Create_User_Insufficient_Permissions()
public async Task Should_Not_Create_User_Insufficient_Permissions()
{
_fixture.SetupUser();
@ -136,7 +137,7 @@ public sealed class CreateUserCommandHandlerTests
"Email",
"Po=PF]PC6t.?8?ks)A6W");
_fixture.CommandHandler.Handle(command, default).Wait();
await _fixture.CommandHandler.Handle(command, default);
_fixture
.VerifyNoCommit()

View File

@ -1,4 +1,5 @@
using System;
using System.Threading.Tasks;
using CleanArchitecture.Domain.Commands.Users.DeleteUser;
using CleanArchitecture.Domain.Errors;
using CleanArchitecture.Shared.Events.User;
@ -11,13 +12,13 @@ public sealed class DeleteUserCommandHandlerTests
private readonly DeleteUserCommandTestFixture _fixture = new();
[Fact]
public void Should_Delete_User()
public async Task Should_Delete_User()
{
var user = _fixture.SetupUser();
var command = new DeleteUserCommand(user.Id);
_fixture.CommandHandler.Handle(command, default).Wait();
await _fixture.CommandHandler.Handle(command, default);
_fixture
.VerifyNoDomainNotification()
@ -26,13 +27,13 @@ public sealed class DeleteUserCommandHandlerTests
}
[Fact]
public void Should_Not_Delete_Non_Existing_User()
public async Task Should_Not_Delete_Non_Existing_User()
{
_fixture.SetupUser();
var command = new DeleteUserCommand(Guid.NewGuid());
_fixture.CommandHandler.Handle(command, default).Wait();
await _fixture.CommandHandler.Handle(command, default);
_fixture
.VerifyNoCommit()
@ -44,7 +45,7 @@ public sealed class DeleteUserCommandHandlerTests
}
[Fact]
public void Should_Not_Delete_User_Insufficient_Permissions()
public async Task Should_Not_Delete_User_Insufficient_Permissions()
{
var user = _fixture.SetupUser();
@ -52,7 +53,7 @@ public sealed class DeleteUserCommandHandlerTests
var command = new DeleteUserCommand(user.Id);
_fixture.CommandHandler.Handle(command, default).Wait();
await _fixture.CommandHandler.Handle(command, default);
_fixture
.VerifyNoCommit()

View File

@ -12,7 +12,7 @@
<PackageReference Include="Microsoft.Extensions.Options" Version="7.0.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="RabbitMQ.Client" Version="6.5.0" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="7.0.0" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="7.0.2" />
</ItemGroup>
<ItemGroup>

View File

@ -11,8 +11,8 @@
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="NSubstitute" Version="5.1.0" />
<PackageReference Include="xunit" Version="2.5.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.0">
<PackageReference Include="xunit" Version="2.5.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>

View File

@ -14,9 +14,9 @@
<PackageReference Include="Microsoft.EntityFrameworkCore.Proxies" Version="7.0.11" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="7.0.11" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="xunit" Version="2.5.0" />
<PackageReference Include="xunit" Version="2.5.1" />
<PackageReference Include="Xunit.Priority" Version="1.1.6" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.0">
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>

View File

@ -12,8 +12,8 @@
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="MockQueryable.NSubstitute" Version="7.0.0" />
<PackageReference Include="NSubstitute" Version="5.1.0" />
<PackageReference Include="xunit" Version="2.5.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.0">
<PackageReference Include="xunit" Version="2.5.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>