From b93dcaade34c85e4963782ef8ddbf61fba6bcae5 Mon Sep 17 00:00:00 2001 From: Kamil Grzybek Date: Wed, 4 Mar 2020 02:15:31 +0100 Subject: [PATCH] Migrate to .NET Core 3.1 completed --- README.md | 2 +- .../Domain/MeetingGroupProposals/MeetingGroupProposal.cs | 2 ++ ....MyMeetings.Modules.Administration.Infrastructure.csproj | 2 +- .../ProposeMeetingGroupCommandHandler.cs | 3 +-- ...nyName.MyMeetings.Modules.Meetings.Infrastructure.csproj | 2 +- .../Configuration/Processing/ProcessingModule.cs | 6 +++--- ...CompanyName.MyMeetings.Modules.Meetings.ArchTests.csproj | 2 +- ...nyName.MyMeetings.Modules.Payments.Infrastructure.csproj | 2 +- ...anyName.MyMeetings.Modules.UserAccess.Application.csproj | 4 ---- ...Name.MyMeetings.Modules.UserAccess.Infrastructure.csproj | 2 +- 10 files changed, 12 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 21f6c18f..a12c59d2 100644 --- a/README.md +++ b/README.md @@ -1131,12 +1131,12 @@ List of features/tasks/approaches to add: | Domain Model Unit Tests | High | Completed | 2019-09-10 | | Architecture Decision Log update | High | Completed | 2019-11-09 | | Integration automated tests | Normal | Completed | 2020-02-24 | +| Migration to .NET Core 3.1 | Low | Completed | 2020-03-04 | | API automated tests | Normal | | | | FrontEnd SPA application | Normal | | | | Meeting comments feature | Low | | | | Notifications feature | Low | | | | Messages feature | Low | | | -| Migration to .NET Core 3.0 | Low | | | | More advanced Payments module | Low | | | NOTE: Please don't hesitate to suggest something else or a change to the existing code. All proposals will be considered. diff --git a/src/Modules/Administration/Domain/MeetingGroupProposals/MeetingGroupProposal.cs b/src/Modules/Administration/Domain/MeetingGroupProposals/MeetingGroupProposal.cs index 8d8fd892..145933b8 100644 --- a/src/Modules/Administration/Domain/MeetingGroupProposals/MeetingGroupProposal.cs +++ b/src/Modules/Administration/Domain/MeetingGroupProposals/MeetingGroupProposal.cs @@ -27,6 +27,8 @@ public class MeetingGroupProposal : Entity, IAggregateRoot private MeetingGroupProposal() { // Only for EF. + + _decision = MeetingGroupProposalDecision.NoDecision; } private MeetingGroupProposal( diff --git a/src/Modules/Administration/Infrastructure/CompanyName.MyMeetings.Modules.Administration.Infrastructure.csproj b/src/Modules/Administration/Infrastructure/CompanyName.MyMeetings.Modules.Administration.Infrastructure.csproj index 31dc7d99..2033a04d 100644 --- a/src/Modules/Administration/Infrastructure/CompanyName.MyMeetings.Modules.Administration.Infrastructure.csproj +++ b/src/Modules/Administration/Infrastructure/CompanyName.MyMeetings.Modules.Administration.Infrastructure.csproj @@ -5,7 +5,7 @@ - + diff --git a/src/Modules/Meetings/Application/MeetingGroupProposals/ProposeMeetingGroup/ProposeMeetingGroupCommandHandler.cs b/src/Modules/Meetings/Application/MeetingGroupProposals/ProposeMeetingGroup/ProposeMeetingGroupCommandHandler.cs index 2faf9e5a..b1496e7b 100644 --- a/src/Modules/Meetings/Application/MeetingGroupProposals/ProposeMeetingGroup/ProposeMeetingGroupCommandHandler.cs +++ b/src/Modules/Meetings/Application/MeetingGroupProposals/ProposeMeetingGroup/ProposeMeetingGroupCommandHandler.cs @@ -1,7 +1,6 @@ using System; using System.Threading; using System.Threading.Tasks; -using CompanyName.MyMeetings.BuildingBlocks.Domain; using CompanyName.MyMeetings.Modules.Meetings.Application.Configuration.Commands; using CompanyName.MyMeetings.Modules.Meetings.Domain.MeetingGroupProposals; using CompanyName.MyMeetings.Modules.Meetings.Domain.MeetingGroups; @@ -10,7 +9,7 @@ namespace CompanyName.MyMeetings.Modules.Meetings.Application.MeetingGroupProposals.ProposeMeetingGroup { - internal class ProposeMeetingGroupCommandHandler : IRequestHandler + internal class ProposeMeetingGroupCommandHandler : ICommandHandler { private readonly IMeetingGroupProposalRepository _meetingGroupProposalRepository; private readonly IMemberContext _memberContext; diff --git a/src/Modules/Meetings/Infrastructure/CompanyName.MyMeetings.Modules.Meetings.Infrastructure.csproj b/src/Modules/Meetings/Infrastructure/CompanyName.MyMeetings.Modules.Meetings.Infrastructure.csproj index 3c0eaf1f..86a6fc4d 100644 --- a/src/Modules/Meetings/Infrastructure/CompanyName.MyMeetings.Modules.Meetings.Infrastructure.csproj +++ b/src/Modules/Meetings/Infrastructure/CompanyName.MyMeetings.Modules.Meetings.Infrastructure.csproj @@ -5,7 +5,7 @@ - + diff --git a/src/Modules/Meetings/Infrastructure/Configuration/Processing/ProcessingModule.cs b/src/Modules/Meetings/Infrastructure/Configuration/Processing/ProcessingModule.cs index 1fe84391..f16242f5 100644 --- a/src/Modules/Meetings/Infrastructure/Configuration/Processing/ProcessingModule.cs +++ b/src/Modules/Meetings/Infrastructure/Configuration/Processing/ProcessingModule.cs @@ -31,15 +31,15 @@ protected override void Load(ContainerBuilder builder) builder.RegisterGenericDecorator( typeof(UnitOfWorkCommandHandlerDecorator<>), - typeof(IRequestHandler<>)); + typeof(ICommandHandler<>)); builder.RegisterGenericDecorator( typeof(ValidationCommandHandlerDecorator<>), - typeof(IRequestHandler<>)); + typeof(ICommandHandler<>)); builder.RegisterGenericDecorator( typeof(LoggingCommandHandlerDecorator<>), - typeof(IRequestHandler<>)); + typeof(ICommandHandler<>)); builder.RegisterGenericDecorator( typeof(LoggingCommandHandlerWithResultDecorator<,>), diff --git a/src/Modules/Meetings/Tests/ArchTests/CompanyName.MyMeetings.Modules.Meetings.ArchTests.csproj b/src/Modules/Meetings/Tests/ArchTests/CompanyName.MyMeetings.Modules.Meetings.ArchTests.csproj index 41b07f5a..aed56d9e 100644 --- a/src/Modules/Meetings/Tests/ArchTests/CompanyName.MyMeetings.Modules.Meetings.ArchTests.csproj +++ b/src/Modules/Meetings/Tests/ArchTests/CompanyName.MyMeetings.Modules.Meetings.ArchTests.csproj @@ -7,7 +7,7 @@ - + diff --git a/src/Modules/Payments/Infrastructure/CompanyName.MyMeetings.Modules.Payments.Infrastructure.csproj b/src/Modules/Payments/Infrastructure/CompanyName.MyMeetings.Modules.Payments.Infrastructure.csproj index 73b420c2..5d608b4e 100644 --- a/src/Modules/Payments/Infrastructure/CompanyName.MyMeetings.Modules.Payments.Infrastructure.csproj +++ b/src/Modules/Payments/Infrastructure/CompanyName.MyMeetings.Modules.Payments.Infrastructure.csproj @@ -5,7 +5,7 @@ - + diff --git a/src/Modules/UserAccess/Application/CompanyName.MyMeetings.Modules.UserAccess.Application.csproj b/src/Modules/UserAccess/Application/CompanyName.MyMeetings.Modules.UserAccess.Application.csproj index 0d1c92cd..2a04099d 100644 --- a/src/Modules/UserAccess/Application/CompanyName.MyMeetings.Modules.UserAccess.Application.csproj +++ b/src/Modules/UserAccess/Application/CompanyName.MyMeetings.Modules.UserAccess.Application.csproj @@ -5,10 +5,6 @@ - - - - diff --git a/src/Modules/UserAccess/Infrastructure/CompanyName.MyMeetings.Modules.UserAccess.Infrastructure.csproj b/src/Modules/UserAccess/Infrastructure/CompanyName.MyMeetings.Modules.UserAccess.Infrastructure.csproj index 53e748ce..1fe528b6 100644 --- a/src/Modules/UserAccess/Infrastructure/CompanyName.MyMeetings.Modules.UserAccess.Infrastructure.csproj +++ b/src/Modules/UserAccess/Infrastructure/CompanyName.MyMeetings.Modules.UserAccess.Infrastructure.csproj @@ -5,7 +5,7 @@ - +