From 43dbe5b8741f2e296d3a95b41847861c5d279ea7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kamil=20B=C4=85czek?=
<74410956+kamilbaczek@users.noreply.github.com>
Date: Sat, 1 Jun 2024 10:47:26 +0200
Subject: [PATCH 1/8] feat: update packages
---
.../Fitnet.Contracts.Api.UnitTests.csproj | 15 +++++++++------
.../Fitnet.Contracts.Api.csproj | 2 +-
.../Fitnet.Contracts.Application.csproj | 4 ++--
.../Fitnet.Contracts.Core.UnitTests.csproj | 17 ++++++++++-------
.../Fitnet.Contracts.Core.csproj | 2 +-
.../Fitnet.Contracts.Infrastructure.csproj | 8 ++++----
.../Fitnet.Contracts.IntegrationEvents.csproj | 2 +-
.../Fitnet.Contracts.IntegrationTests.csproj | 6 +++---
.../Fitnet.Contracts/Fitnet.Contracts.csproj | 4 ++--
9 files changed, 33 insertions(+), 27 deletions(-)
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Api.UnitTests/Fitnet.Contracts.Api.UnitTests.csproj b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Api.UnitTests/Fitnet.Contracts.Api.UnitTests.csproj
index a7a2323d..cda7c7ec 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Api.UnitTests/Fitnet.Contracts.Api.UnitTests.csproj
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Api.UnitTests/Fitnet.Contracts.Api.UnitTests.csproj
@@ -1,16 +1,19 @@
-
+
-
-
+
+
+ all
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
+
+
runtime; build; native; contentfiles; analyzers; buildtransitive
all
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Api/Fitnet.Contracts.Api.csproj b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Api/Fitnet.Contracts.Api.csproj
index 58286a75..afc1c7ce 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Api/Fitnet.Contracts.Api.csproj
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Api/Fitnet.Contracts.Api.csproj
@@ -17,7 +17,7 @@
-
+
\ No newline at end of file
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Application/Fitnet.Contracts.Application.csproj b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Application/Fitnet.Contracts.Application.csproj
index 1b337996..a92cabed 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Application/Fitnet.Contracts.Application.csproj
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Application/Fitnet.Contracts.Application.csproj
@@ -1,10 +1,10 @@
-
+
-
+
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/Fitnet.Contracts.Core.UnitTests.csproj b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/Fitnet.Contracts.Core.UnitTests.csproj
index 1e23152c..c640e246 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/Fitnet.Contracts.Core.UnitTests.csproj
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/Fitnet.Contracts.Core.UnitTests.csproj
@@ -5,18 +5,21 @@
-
-
+
+
-
-
+
+
+ all
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
+
+
runtime; build; native; contentfiles; analyzers; buildtransitive
all
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/Fitnet.Contracts.Core.csproj b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/Fitnet.Contracts.Core.csproj
index 3e9cfee1..1765bc7e 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/Fitnet.Contracts.Core.csproj
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/Fitnet.Contracts.Core.csproj
@@ -6,7 +6,7 @@
-
+
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/Fitnet.Contracts.Infrastructure.csproj b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/Fitnet.Contracts.Infrastructure.csproj
index 41538576..cbc5bed9 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/Fitnet.Contracts.Infrastructure.csproj
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Infrastructure/Fitnet.Contracts.Infrastructure.csproj
@@ -5,12 +5,12 @@
-
-
+
+
-
-
+
+
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.IntegrationEvents/Fitnet.Contracts.IntegrationEvents.csproj b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.IntegrationEvents/Fitnet.Contracts.IntegrationEvents.csproj
index 5e82908c..c353dad8 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.IntegrationEvents/Fitnet.Contracts.IntegrationEvents.csproj
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.IntegrationEvents/Fitnet.Contracts.IntegrationEvents.csproj
@@ -4,6 +4,6 @@
1.0.7
-
+
\ No newline at end of file
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.IntegrationTests/Fitnet.Contracts.IntegrationTests.csproj b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.IntegrationTests/Fitnet.Contracts.IntegrationTests.csproj
index 68cd8671..5a39d64e 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.IntegrationTests/Fitnet.Contracts.IntegrationTests.csproj
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.IntegrationTests/Fitnet.Contracts.IntegrationTests.csproj
@@ -5,9 +5,9 @@
-
-
-
+
+
+
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts/Fitnet.Contracts.csproj b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts/Fitnet.Contracts.csproj
index 9cf27f8d..706d105c 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts/Fitnet.Contracts.csproj
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts/Fitnet.Contracts.csproj
@@ -5,9 +5,9 @@
-
+
-
+
From 3093d75eec521fc7052a2e09574edfce7f982b38 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kamil=20B=C4=85czek?=
<74410956+kamilbaczek@users.noreply.github.com>
Date: Sat, 1 Jun 2024 11:28:41 +0200
Subject: [PATCH 2/8] feat: use common bussiness rules
---
.../Common/Errors/ProblemResults.cs | 2 +-
...lyBeAttachedToActiveBindingContractRuleTests.cs | 3 +--
...nlyStartDuringBindingContractPeriodRuleTests.cs | 3 +--
.../ContractCanBePreparedOnlyForAdultRuleTests.cs | 5 ++---
...MustBeSmallerThanMaximumHeightLimitRuleTests.cs | 3 +--
.../PreviousContractHasToBeSignedRuleTests.cs | 3 +--
...BeSignedWithin30DaysFromPreparationRuleTests.cs | 3 +--
.../ContractMustNotBeAlreadySignedRuleTests.cs | 3 +--
...sPossibleOnlyAfterThreeMonthsHavePassedTests.cs | 3 +--
...CanOnlyBeAttachedToActiveBindingContractRule.cs | 2 +-
...xCanOnlyStartDuringBindingContractPeriodRule.cs | 2 +-
.../Src/Fitnet.Contracts.Core/BindingContract.cs | 2 +-
.../Common/BussinessRules/BusinessErrors.cs | 7 -------
.../Common/BussinessRules/BusinessRuleValidator.cs | 14 --------------
.../Common/BussinessRules/IBusinessRule.cs | 8 --------
.../Src/Fitnet.Contracts.Core/Contract.cs | 2 +-
.../ContractCanBePreparedOnlyForAdultRule.cs | 2 +-
...tomerMustBeSmallerThanMaximumHeightLimitRule.cs | 2 +-
.../PreviousContractHasToBeSignedRule.cs | 2 +-
...nOnlyBeSignedWithin30DaysFromPreparationRule.cs | 2 +-
.../ContractMustNotBeAlreadySignedRule.cs | 2 +-
...IsPossibleOnlyAfterThreeMonthsHavePassedRule.cs | 2 +-
22 files changed, 20 insertions(+), 57 deletions(-)
delete mode 100644 Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/Common/BussinessRules/BusinessErrors.cs
delete mode 100644 Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/Common/BussinessRules/BusinessRuleValidator.cs
delete mode 100644 Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/Common/BussinessRules/IBusinessRule.cs
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Api/Common/Errors/ProblemResults.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Api/Common/Errors/ProblemResults.cs
index 30792684..c40c9e66 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Api/Common/Errors/ProblemResults.cs
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Api/Common/Errors/ProblemResults.cs
@@ -1,6 +1,6 @@
namespace EvolutionaryArchitecture.Fitnet.Contracts.Api.Common.Errors;
-using Core.Common.BussinessRules;
+using Fitnet.Common.Core.BussinessRules;
using Microsoft.AspNetCore.Http;
using static ErrorType;
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/AttachAnnexToBindingContract/BusinessRules/AnnexCanOnlyBeAttachedToActiveBindingContractRuleTests.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/AttachAnnexToBindingContract/BusinessRules/AnnexCanOnlyBeAttachedToActiveBindingContractRuleTests.cs
index 4f6745b2..406ac190 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/AttachAnnexToBindingContract/BusinessRules/AnnexCanOnlyBeAttachedToActiveBindingContractRuleTests.cs
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/AttachAnnexToBindingContract/BusinessRules/AnnexCanOnlyBeAttachedToActiveBindingContractRuleTests.cs
@@ -1,8 +1,7 @@
namespace EvolutionaryArchitecture.Fitnet.Contracts.Core.UnitTests.AttachAnnexToBindingContract.BusinessRules;
-using Common.Assertions.ErrorOr;
using Core.AttachAnnexToBindingContract.BusinessRules;
-using Core.Common.BussinessRules;
+using Fitnet.Common.Core.BussinessRules;
public sealed class AnnexCanOnlyBeAttachedToActiveBindingContractRuleTests
{
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/AttachAnnexToBindingContract/BusinessRules/AnnexCanOnlyStartDuringBindingContractPeriodRuleTests.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/AttachAnnexToBindingContract/BusinessRules/AnnexCanOnlyStartDuringBindingContractPeriodRuleTests.cs
index 852123aa..d52a4de0 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/AttachAnnexToBindingContract/BusinessRules/AnnexCanOnlyStartDuringBindingContractPeriodRuleTests.cs
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/AttachAnnexToBindingContract/BusinessRules/AnnexCanOnlyStartDuringBindingContractPeriodRuleTests.cs
@@ -1,8 +1,7 @@
namespace EvolutionaryArchitecture.Fitnet.Contracts.Core.UnitTests.AttachAnnexToBindingContract.BusinessRules;
-using Common.Assertions.ErrorOr;
using Core.AttachAnnexToBindingContract.BusinessRules;
-using Core.Common.BussinessRules;
+using Fitnet.Common.Core.BussinessRules;
public sealed class AnnexCanOnlyStartDuringBindingContractPeriodRuleTests
{
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/PrepareContract/BusinessRules/ContractCanBePreparedOnlyForAdultRuleTests.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/PrepareContract/BusinessRules/ContractCanBePreparedOnlyForAdultRuleTests.cs
index fb39e1a5..91145466 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/PrepareContract/BusinessRules/ContractCanBePreparedOnlyForAdultRuleTests.cs
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/PrepareContract/BusinessRules/ContractCanBePreparedOnlyForAdultRuleTests.cs
@@ -1,9 +1,8 @@
namespace EvolutionaryArchitecture.Fitnet.Contracts.Core.UnitTests.PrepareContract.BusinessRules;
-using Common.Assertions.ErrorOr;
-using Core.Common.BussinessRules;
using Core.PrepareContract.BusinessRules;
-
+using Fitnet.Common.Core.BussinessRules;
+using EvolutionaryArchitecture.Fitnet.Common.UnitTesting.Assertions.ErrorOr;
public sealed class ContractCanBePreparedOnlyForAdultRuleTests
{
[Fact]
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/PrepareContract/BusinessRules/CustomerMustBeSmallerThanMaximumHeightLimitRuleTests.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/PrepareContract/BusinessRules/CustomerMustBeSmallerThanMaximumHeightLimitRuleTests.cs
index 8cfba71e..882a9abe 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/PrepareContract/BusinessRules/CustomerMustBeSmallerThanMaximumHeightLimitRuleTests.cs
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/PrepareContract/BusinessRules/CustomerMustBeSmallerThanMaximumHeightLimitRuleTests.cs
@@ -1,8 +1,7 @@
namespace EvolutionaryArchitecture.Fitnet.Contracts.Core.UnitTests.PrepareContract.BusinessRules;
-using Common.Assertions.ErrorOr;
-using Core.Common.BussinessRules;
using Core.PrepareContract.BusinessRules;
+using Fitnet.Common.Core.BussinessRules;
public sealed class CustomerMustBeSmallerThanMaximumHeightLimitRuleTests
{
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/PrepareContract/BusinessRules/PreviousContractHasToBeSignedRuleTests.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/PrepareContract/BusinessRules/PreviousContractHasToBeSignedRuleTests.cs
index b2717dc3..48feae15 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/PrepareContract/BusinessRules/PreviousContractHasToBeSignedRuleTests.cs
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/PrepareContract/BusinessRules/PreviousContractHasToBeSignedRuleTests.cs
@@ -1,8 +1,7 @@
namespace EvolutionaryArchitecture.Fitnet.Contracts.Core.UnitTests.PrepareContract.BusinessRules;
-using Common.Assertions.ErrorOr;
-using Core.Common.BussinessRules;
using Core.PrepareContract.BusinessRules;
+using Fitnet.Common.Core.BussinessRules;
public sealed class PreviousContractHasToBeSignedRuleTests
{
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/SignContract/BusinessRules/ContractCanOnlyBeSignedWithin30DaysFromPreparationRuleTests.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/SignContract/BusinessRules/ContractCanOnlyBeSignedWithin30DaysFromPreparationRuleTests.cs
index b6bb1772..33fac240 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/SignContract/BusinessRules/ContractCanOnlyBeSignedWithin30DaysFromPreparationRuleTests.cs
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/SignContract/BusinessRules/ContractCanOnlyBeSignedWithin30DaysFromPreparationRuleTests.cs
@@ -1,8 +1,7 @@
namespace EvolutionaryArchitecture.Fitnet.Contracts.Core.UnitTests.SignContract.BusinessRules;
-using Common.Assertions.ErrorOr;
-using Core.Common.BussinessRules;
using Core.SignContract.BusinessRules;
+using Fitnet.Common.Core.BussinessRules;
public sealed class ContractCanOnlyBeSignedWithin30DaysFromPreparationRuleTests
{
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/SignContract/BusinessRules/ContractMustNotBeAlreadySignedRuleTests.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/SignContract/BusinessRules/ContractMustNotBeAlreadySignedRuleTests.cs
index c7044e9d..61ec98c5 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/SignContract/BusinessRules/ContractMustNotBeAlreadySignedRuleTests.cs
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/SignContract/BusinessRules/ContractMustNotBeAlreadySignedRuleTests.cs
@@ -1,8 +1,7 @@
namespace EvolutionaryArchitecture.Fitnet.Contracts.Core.UnitTests.SignContract.BusinessRules;
-using Common.Assertions.ErrorOr;
-using Core.Common.BussinessRules;
using Core.SignContract.BusinessRules;
+using Fitnet.Common.Core.BussinessRules;
public sealed class ContractMustNotBeAlreadySignedRuleTests
{
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/TerminateBindingContract/BusinessRules/TerminationIsPossibleOnlyAfterThreeMonthsHavePassedTests.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/TerminateBindingContract/BusinessRules/TerminationIsPossibleOnlyAfterThreeMonthsHavePassedTests.cs
index c27be301..ee851340 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/TerminateBindingContract/BusinessRules/TerminationIsPossibleOnlyAfterThreeMonthsHavePassedTests.cs
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/TerminateBindingContract/BusinessRules/TerminationIsPossibleOnlyAfterThreeMonthsHavePassedTests.cs
@@ -1,8 +1,7 @@
namespace EvolutionaryArchitecture.Fitnet.Contracts.Core.UnitTests.TerminateBindingContract.BusinessRules;
-using Common.Assertions.ErrorOr;
-using Core.Common.BussinessRules;
using Core.TerminateBindingContract.BusinessRules;
+using Fitnet.Common.Core.BussinessRules;
using TerminationIsPossibleOnlyAfterThreeMonthsHavePassed.TestData;
public sealed class TerminationIsPossibleOnlyAfterThreeMonthsHavePassedTests
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/AttachAnnexToBindingContract/BusinessRules/AnnexCanOnlyBeAttachedToActiveBindingContractRule.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/AttachAnnexToBindingContract/BusinessRules/AnnexCanOnlyBeAttachedToActiveBindingContractRule.cs
index 1a6003c9..b4f2e2a5 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/AttachAnnexToBindingContract/BusinessRules/AnnexCanOnlyBeAttachedToActiveBindingContractRule.cs
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/AttachAnnexToBindingContract/BusinessRules/AnnexCanOnlyBeAttachedToActiveBindingContractRule.cs
@@ -1,6 +1,6 @@
namespace EvolutionaryArchitecture.Fitnet.Contracts.Core.AttachAnnexToBindingContract.BusinessRules;
-using Common.BussinessRules;
+using Common.Core.BussinessRules;
internal sealed class AnnexCanOnlyBeAttachedToActiveBindingContractRule : IBusinessRule
{
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/AttachAnnexToBindingContract/BusinessRules/AnnexCanOnlyStartDuringBindingContractPeriodRule.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/AttachAnnexToBindingContract/BusinessRules/AnnexCanOnlyStartDuringBindingContractPeriodRule.cs
index cc8966fd..3d93df01 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/AttachAnnexToBindingContract/BusinessRules/AnnexCanOnlyStartDuringBindingContractPeriodRule.cs
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/AttachAnnexToBindingContract/BusinessRules/AnnexCanOnlyStartDuringBindingContractPeriodRule.cs
@@ -1,6 +1,6 @@
namespace EvolutionaryArchitecture.Fitnet.Contracts.Core.AttachAnnexToBindingContract.BusinessRules;
-using Common.BussinessRules;
+using Common.Core.BussinessRules;
internal sealed class AnnexCanOnlyStartDuringBindingContractPeriodRule : IBusinessRule
{
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/BindingContract.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/BindingContract.cs
index 96c13e56..632850eb 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/BindingContract.cs
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/BindingContract.cs
@@ -1,7 +1,7 @@
namespace EvolutionaryArchitecture.Fitnet.Contracts.Core;
using AttachAnnexToBindingContract.BusinessRules;
-using Common.BussinessRules;
+using Common.Core.BussinessRules;
using DomainDrivenDesign.BuildingBlocks;
using SignContract;
using TerminateBindingContract;
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/Common/BussinessRules/BusinessErrors.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/Common/BussinessRules/BusinessErrors.cs
deleted file mode 100644
index 100d51be..00000000
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/Common/BussinessRules/BusinessErrors.cs
+++ /dev/null
@@ -1,7 +0,0 @@
-namespace EvolutionaryArchitecture.Fitnet.Contracts.Core.Common.BussinessRules;
-
-public static class BusinessRuleError
-{
- public const int Type = 100;
- public static Error Create(string code, string description) => Error.Custom(Type, code, description);
-}
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/Common/BussinessRules/BusinessRuleValidator.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/Common/BussinessRules/BusinessRuleValidator.cs
deleted file mode 100644
index 5b3972de..00000000
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/Common/BussinessRules/BusinessRuleValidator.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-namespace EvolutionaryArchitecture.Fitnet.Contracts.Core.Common.BussinessRules;
-
-public static class BusinessRuleValidator
-{
- public static ErrorOr Validate(params IBusinessRule[] rules)
- {
- var errors = rules
- .Where(rule => !rule.IsMet())
- .Select(rule => rule.Error)
- .ToList();
-
- return errors.Count != 0 ? (ErrorOr)errors : new Success();
- }
-}
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/Common/BussinessRules/IBusinessRule.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/Common/BussinessRules/IBusinessRule.cs
deleted file mode 100644
index a768554c..00000000
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/Common/BussinessRules/IBusinessRule.cs
+++ /dev/null
@@ -1,8 +0,0 @@
-namespace EvolutionaryArchitecture.Fitnet.Contracts.Core.Common.BussinessRules;
-
-public interface IBusinessRule
-{
- bool IsMet();
-
- Error Error { get; }
-}
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/Contract.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/Contract.cs
index a0e219f6..472a8a1d 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/Contract.cs
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/Contract.cs
@@ -1,6 +1,6 @@
namespace EvolutionaryArchitecture.Fitnet.Contracts.Core;
-using Common.BussinessRules;
+using Common.Core.BussinessRules;
using DomainDrivenDesign.BuildingBlocks;
using PrepareContract;
using PrepareContract.BusinessRules;
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/PrepareContract/BusinessRules/ContractCanBePreparedOnlyForAdultRule.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/PrepareContract/BusinessRules/ContractCanBePreparedOnlyForAdultRule.cs
index cc0f6139..a0c1dcf6 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/PrepareContract/BusinessRules/ContractCanBePreparedOnlyForAdultRule.cs
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/PrepareContract/BusinessRules/ContractCanBePreparedOnlyForAdultRule.cs
@@ -1,6 +1,6 @@
namespace EvolutionaryArchitecture.Fitnet.Contracts.Core.PrepareContract.BusinessRules;
-using Common.BussinessRules;
+using Common.Core.BussinessRules;
internal sealed class ContractCanBePreparedOnlyForAdultRule : IBusinessRule
{
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/PrepareContract/BusinessRules/CustomerMustBeSmallerThanMaximumHeightLimitRule.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/PrepareContract/BusinessRules/CustomerMustBeSmallerThanMaximumHeightLimitRule.cs
index 49bafb91..0a3346fd 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/PrepareContract/BusinessRules/CustomerMustBeSmallerThanMaximumHeightLimitRule.cs
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/PrepareContract/BusinessRules/CustomerMustBeSmallerThanMaximumHeightLimitRule.cs
@@ -1,6 +1,6 @@
namespace EvolutionaryArchitecture.Fitnet.Contracts.Core.PrepareContract.BusinessRules;
-using Common.BussinessRules;
+using Common.Core.BussinessRules;
internal sealed class CustomerMustBeSmallerThanMaximumHeightLimitRule : IBusinessRule
{
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/PrepareContract/BusinessRules/PreviousContractHasToBeSignedRule.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/PrepareContract/BusinessRules/PreviousContractHasToBeSignedRule.cs
index 888ee22f..a286274f 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/PrepareContract/BusinessRules/PreviousContractHasToBeSignedRule.cs
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/PrepareContract/BusinessRules/PreviousContractHasToBeSignedRule.cs
@@ -1,6 +1,6 @@
namespace EvolutionaryArchitecture.Fitnet.Contracts.Core.PrepareContract.BusinessRules;
-using Common.BussinessRules;
+using Common.Core.BussinessRules;
internal sealed class PreviousContractHasToBeSignedRule : IBusinessRule
{
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/SignContract/BusinessRules/ContractCanOnlyBeSignedWithin30DaysFromPreparationRule.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/SignContract/BusinessRules/ContractCanOnlyBeSignedWithin30DaysFromPreparationRule.cs
index 629a540a..8dec6b35 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/SignContract/BusinessRules/ContractCanOnlyBeSignedWithin30DaysFromPreparationRule.cs
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/SignContract/BusinessRules/ContractCanOnlyBeSignedWithin30DaysFromPreparationRule.cs
@@ -1,6 +1,6 @@
namespace EvolutionaryArchitecture.Fitnet.Contracts.Core.SignContract.BusinessRules;
-using Common.BussinessRules;
+using Common.Core.BussinessRules;
internal sealed class ContractCanOnlyBeSignedWithin30DaysFromPreparationRule : IBusinessRule
{
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/SignContract/BusinessRules/ContractMustNotBeAlreadySignedRule.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/SignContract/BusinessRules/ContractMustNotBeAlreadySignedRule.cs
index a73049ef..04ab50f2 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/SignContract/BusinessRules/ContractMustNotBeAlreadySignedRule.cs
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/SignContract/BusinessRules/ContractMustNotBeAlreadySignedRule.cs
@@ -1,6 +1,6 @@
namespace EvolutionaryArchitecture.Fitnet.Contracts.Core.SignContract.BusinessRules;
-using Common.BussinessRules;
+using Common.Core.BussinessRules;
internal sealed class ContractMustNotBeAlreadySignedRule(bool signed) : IBusinessRule
{
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/TerminateBindingContract/BusinessRules/TerminationIsPossibleOnlyAfterThreeMonthsHavePassedRule.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/TerminateBindingContract/BusinessRules/TerminationIsPossibleOnlyAfterThreeMonthsHavePassedRule.cs
index ea3f235c..4d75ecb6 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/TerminateBindingContract/BusinessRules/TerminationIsPossibleOnlyAfterThreeMonthsHavePassedRule.cs
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/TerminateBindingContract/BusinessRules/TerminationIsPossibleOnlyAfterThreeMonthsHavePassedRule.cs
@@ -1,6 +1,6 @@
namespace EvolutionaryArchitecture.Fitnet.Contracts.Core.TerminateBindingContract.BusinessRules;
-using Common.BussinessRules;
+using Common.Core.BussinessRules;
internal sealed class TerminationIsPossibleOnlyAfterThreeMonthsHavePassedRule(DateTimeOffset bindingFrom, DateTimeOffset terminatedAt)
: IBusinessRule
From 3a0fe00971d3675539891c6377778a9d984ec9f9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kamil=20B=C4=85czek?=
<74410956+kamilbaczek@users.noreply.github.com>
Date: Sat, 1 Jun 2024 13:18:29 +0200
Subject: [PATCH 3/8] fix: use common error assertions
---
.../Fitnet.Contracts.Core.UnitTests.csproj | 1 +
.../Src/Fitnet.Contracts.Core.UnitTests/GlobalUsings.cs | 1 +
.../BusinessRules/ContractCanBePreparedOnlyForAdultRuleTests.cs | 2 +-
3 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/Fitnet.Contracts.Core.UnitTests.csproj b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/Fitnet.Contracts.Core.UnitTests.csproj
index c640e246..90179388 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/Fitnet.Contracts.Core.UnitTests.csproj
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/Fitnet.Contracts.Core.UnitTests.csproj
@@ -7,6 +7,7 @@
+
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/GlobalUsings.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/GlobalUsings.cs
index 9ec3ca40..372976d5 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/GlobalUsings.cs
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/GlobalUsings.cs
@@ -1,3 +1,4 @@
global using ErrorOr;
+global using EvolutionaryArchitecture.Fitnet.Common.UnitTesting.Assertions.ErrorOr;
global using FluentAssertions;
global using Xunit;
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/PrepareContract/BusinessRules/ContractCanBePreparedOnlyForAdultRuleTests.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/PrepareContract/BusinessRules/ContractCanBePreparedOnlyForAdultRuleTests.cs
index 91145466..b26a0db1 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/PrepareContract/BusinessRules/ContractCanBePreparedOnlyForAdultRuleTests.cs
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/PrepareContract/BusinessRules/ContractCanBePreparedOnlyForAdultRuleTests.cs
@@ -2,7 +2,7 @@ namespace EvolutionaryArchitecture.Fitnet.Contracts.Core.UnitTests.PrepareContra
using Core.PrepareContract.BusinessRules;
using Fitnet.Common.Core.BussinessRules;
-using EvolutionaryArchitecture.Fitnet.Common.UnitTesting.Assertions.ErrorOr;
+
public sealed class ContractCanBePreparedOnlyForAdultRuleTests
{
[Fact]
From 4036e0ba79a342ef838c2ebe21e25b66c3be5d69 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kamil=20B=C4=85czek?=
<74410956+kamilbaczek@users.noreply.github.com>
Date: Sun, 2 Jun 2024 13:11:31 +0200
Subject: [PATCH 4/8] fix: disable paramters checking
---
.../RequestValidator/PrepareContractRequestValidatorTests.cs | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Api.UnitTests/PrepareContract/RequestValidator/PrepareContractRequestValidatorTests.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Api.UnitTests/PrepareContract/RequestValidator/PrepareContractRequestValidatorTests.cs
index bbe5a92e..fa73c03c 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Api.UnitTests/PrepareContract/RequestValidator/PrepareContractRequestValidatorTests.cs
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Api.UnitTests/PrepareContract/RequestValidator/PrepareContractRequestValidatorTests.cs
@@ -23,7 +23,9 @@ internal void Given_prepare_contract_request_validation_When_request_is_valid_Th
}
[Theory]
+#pragma warning disable xUnit1044
[ClassData(typeof(InvalidPrepareContractRequestTestCases))]
+#pragma warning restore xUnit1044
internal void Given_prepare_contract_request_validation_When_property_is_valid_Then_result_should_have_error(PrepareContractRequest request, string expectedInvalidPropertyName)
{
// Act
From 45d2d63406624cb083d5cd85167103bd1d0447b6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kamil=20B=C4=85czek?=
<74410956+kamilbaczek@users.noreply.github.com>
Date: Wed, 5 Jun 2024 17:09:41 +0200
Subject: [PATCH 5/8] fix: disable warning
---
.../Fitnet.Contracts.Api.UnitTests.csproj | 4 ++++
.../RequestValidator/PrepareContractRequestValidatorTests.cs | 2 --
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Api.UnitTests/Fitnet.Contracts.Api.UnitTests.csproj b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Api.UnitTests/Fitnet.Contracts.Api.UnitTests.csproj
index cda7c7ec..ef1ea925 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Api.UnitTests/Fitnet.Contracts.Api.UnitTests.csproj
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Api.UnitTests/Fitnet.Contracts.Api.UnitTests.csproj
@@ -1,4 +1,8 @@
+
+ $(NoWarn);xUnit1044
+
+
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Api.UnitTests/PrepareContract/RequestValidator/PrepareContractRequestValidatorTests.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Api.UnitTests/PrepareContract/RequestValidator/PrepareContractRequestValidatorTests.cs
index fa73c03c..bbe5a92e 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Api.UnitTests/PrepareContract/RequestValidator/PrepareContractRequestValidatorTests.cs
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Api.UnitTests/PrepareContract/RequestValidator/PrepareContractRequestValidatorTests.cs
@@ -23,9 +23,7 @@ internal void Given_prepare_contract_request_validation_When_request_is_valid_Th
}
[Theory]
-#pragma warning disable xUnit1044
[ClassData(typeof(InvalidPrepareContractRequestTestCases))]
-#pragma warning restore xUnit1044
internal void Given_prepare_contract_request_validation_When_property_is_valid_Then_result_should_have_error(PrepareContractRequest request, string expectedInvalidPropertyName)
{
// Act
From 62b60068ec6638b079ac9a9d81165e245eb32f39 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kamil=20B=C4=85czek?=
<74410956+kamilbaczek@users.noreply.github.com>
Date: Thu, 6 Jun 2024 18:25:48 +0200
Subject: [PATCH 6/8] fix: restore xunit package
---
.../Fitnet.Contracts.Api.UnitTests.csproj | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Api.UnitTests/Fitnet.Contracts.Api.UnitTests.csproj b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Api.UnitTests/Fitnet.Contracts.Api.UnitTests.csproj
index ef1ea925..53211198 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Api.UnitTests/Fitnet.Contracts.Api.UnitTests.csproj
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Api.UnitTests/Fitnet.Contracts.Api.UnitTests.csproj
@@ -1,13 +1,9 @@
-
- $(NoWarn);xUnit1044
-
-
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
From cfa0cdf226a9c6b24cd52a15327be61a6908a1a9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kamil=20B=C4=85czek?=
<74410956+kamilbaczek@users.noreply.github.com>
Date: Thu, 6 Jun 2024 18:34:36 +0200
Subject: [PATCH 7/8] fix: downgrade version
---
.../Fitnet.Contracts.Core.UnitTests.csproj | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/Fitnet.Contracts.Core.UnitTests.csproj b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/Fitnet.Contracts.Core.UnitTests.csproj
index 90179388..a29992d8 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/Fitnet.Contracts.Core.UnitTests.csproj
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/Fitnet.Contracts.Core.UnitTests.csproj
@@ -10,7 +10,7 @@
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
From db5cfaf4ceaa0135499f4485d1f196a2d9dfc827 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kamil=20B=C4=85czek?=
<74410956+kamilbaczek@users.noreply.github.com>
Date: Thu, 6 Jun 2024 18:40:54 +0200
Subject: [PATCH 8/8] fix: downgrade xunit version
---
.../Fitnet.Contracts.Api.UnitTests.csproj | 4 ++--
.../Fitnet.Contracts.Core.UnitTests.csproj | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Api.UnitTests/Fitnet.Contracts.Api.UnitTests.csproj b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Api.UnitTests/Fitnet.Contracts.Api.UnitTests.csproj
index 53211198..7ff6b0cb 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Api.UnitTests/Fitnet.Contracts.Api.UnitTests.csproj
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Api.UnitTests/Fitnet.Contracts.Api.UnitTests.csproj
@@ -2,8 +2,8 @@
-
-
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/Fitnet.Contracts.Core.UnitTests.csproj b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/Fitnet.Contracts.Core.UnitTests.csproj
index a29992d8..76e8d52c 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/Fitnet.Contracts.Core.UnitTests.csproj
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core.UnitTests/Fitnet.Contracts.Core.UnitTests.csproj
@@ -9,8 +9,8 @@
-
-
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive