diff --git a/Source/DotNET/Arc.Core.CodeAnalysis.Specs/Arc.Core.CodeAnalysis.Specs.csproj b/Source/DotNET/Arc.Core.CodeAnalysis.Specs/Arc.Core.CodeAnalysis.Specs.csproj
index 295b7c3bf..d9c5f5fb0 100644
--- a/Source/DotNET/Arc.Core.CodeAnalysis.Specs/Arc.Core.CodeAnalysis.Specs.csproj
+++ b/Source/DotNET/Arc.Core.CodeAnalysis.Specs/Arc.Core.CodeAnalysis.Specs.csproj
@@ -5,6 +5,7 @@
Cratis.Arc.CodeAnalysis
false
true
+ false
$(NoWarn);MA0101;RCS1266
@@ -21,4 +22,3 @@
-
diff --git a/Source/DotNET/Arc.Core.CodeAnalysis/Arc.Core.CodeAnalysis.csproj b/Source/DotNET/Arc.Core.CodeAnalysis/Arc.Core.CodeAnalysis.csproj
index 9d2dd8719..2c2aecb0f 100644
--- a/Source/DotNET/Arc.Core.CodeAnalysis/Arc.Core.CodeAnalysis.csproj
+++ b/Source/DotNET/Arc.Core.CodeAnalysis/Arc.Core.CodeAnalysis.csproj
@@ -11,6 +11,7 @@
netstandard2.0
latest
+ false
$(NoWarn);NU5128;NU1507
diff --git a/Source/DotNET/Arc.Core.Generators.Integration/Specs/Specs.csproj b/Source/DotNET/Arc.Core.Generators.Integration/Specs/Specs.csproj
index 4f2192d9e..b6680ae60 100644
--- a/Source/DotNET/Arc.Core.Generators.Integration/Specs/Specs.csproj
+++ b/Source/DotNET/Arc.Core.Generators.Integration/Specs/Specs.csproj
@@ -4,10 +4,11 @@
Cratis.Arc.Core.Generators.Integration.Specs
false
true
+ false
$(NoWarn);MA0101;RCS1266;MA0136
-
\ No newline at end of file
+
diff --git a/Source/DotNET/Arc.Core.Generators.Specs/Arc.Core.Generators.Specs.csproj b/Source/DotNET/Arc.Core.Generators.Specs/Arc.Core.Generators.Specs.csproj
index 6f5a75a4c..99551ae87 100644
--- a/Source/DotNET/Arc.Core.Generators.Specs/Arc.Core.Generators.Specs.csproj
+++ b/Source/DotNET/Arc.Core.Generators.Specs/Arc.Core.Generators.Specs.csproj
@@ -5,6 +5,7 @@
Cratis.Arc.Generators
false
true
+ false
$(NoWarn);MA0101;RCS1266;MA0136
diff --git a/Source/DotNET/Arc.Core.Generators/Arc.Core.Generators.csproj b/Source/DotNET/Arc.Core.Generators/Arc.Core.Generators.csproj
index 4e3a8f51f..abd6bb9bd 100644
--- a/Source/DotNET/Arc.Core.Generators/Arc.Core.Generators.csproj
+++ b/Source/DotNET/Arc.Core.Generators/Arc.Core.Generators.csproj
@@ -11,6 +11,7 @@
netstandard2.0
latest
+ false
$(NoWarn);NU5128;NU1507
@@ -21,4 +22,4 @@
-
\ No newline at end of file
+
diff --git a/Source/DotNET/Arc.Core.Specs/Arc.Core.Specs.csproj b/Source/DotNET/Arc.Core.Specs/Arc.Core.Specs.csproj
index c5ea1e267..bcc729074 100644
--- a/Source/DotNET/Arc.Core.Specs/Arc.Core.Specs.csproj
+++ b/Source/DotNET/Arc.Core.Specs/Arc.Core.Specs.csproj
@@ -5,9 +5,10 @@
Cratis.Arc
false
true
+ false
-
\ No newline at end of file
+
diff --git a/Source/DotNET/Arc.Core.Specs/Commands/Filters/for_FluentValidationFilter/when_executing_command/with_complex_object_and_nested_validation_fails.cs b/Source/DotNET/Arc.Core.Specs/Commands/Filters/for_FluentValidationFilter/when_executing_command/with_complex_object_and_nested_validation_fails.cs
index 6f37e27e6..5cf7f2fb0 100644
--- a/Source/DotNET/Arc.Core.Specs/Commands/Filters/for_FluentValidationFilter/when_executing_command/with_complex_object_and_nested_validation_fails.cs
+++ b/Source/DotNET/Arc.Core.Specs/Commands/Filters/for_FluentValidationFilter/when_executing_command/with_complex_object_and_nested_validation_fails.cs
@@ -22,10 +22,10 @@ void Establish()
_command = new ComplexCommand("ValidName", nestedObject);
_context = new CommandContext(_correlationId, typeof(ComplexCommand), _command, [], new());
- _commandValidator = Substitute.For();
+ _commandValidator = Substitute.For();
_commandValidationResult = new FluentValidation.Results.ValidationResult();
- _nestedValidator = Substitute.For();
+ _nestedValidator = Substitute.For();
_nestedValidationResult = new FluentValidation.Results.ValidationResult([
new ValidationFailure("Value", "Nested value is invalid")
]);
@@ -44,8 +44,8 @@ void Establish()
return true;
});
- _commandValidator.ValidateAsync(Arg.Any(), Arg.Any()).Returns(_commandValidationResult);
- _nestedValidator.ValidateAsync(Arg.Any(), Arg.Any()).Returns(_nestedValidationResult);
+ ((IObjectValidator)_commandValidator).ValidateObjectAsync(Arg.Any