diff --git a/src/AppAny.HotChocolate.FluentValidation.csproj b/src/AppAny.HotChocolate.FluentValidation.csproj
index 0bcc237..98cfae9 100644
--- a/src/AppAny.HotChocolate.FluentValidation.csproj
+++ b/src/AppAny.HotChocolate.FluentValidation.csproj
@@ -33,8 +33,8 @@
-
-
+
+
diff --git a/tests/AppAny.HotChocolate.FluentValidation.Tests/ErrorCodes.cs b/tests/AppAny.HotChocolate.FluentValidation.Tests/ErrorCodes.cs
index 6320986..e62188d 100644
--- a/tests/AppAny.HotChocolate.FluentValidation.Tests/ErrorCodes.cs
+++ b/tests/AppAny.HotChocolate.FluentValidation.Tests/ErrorCodes.cs
@@ -25,7 +25,7 @@ public async Task CustomErrorCode()
services.AddTransient, NotEmptyNameWithErrorCodeValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
diff --git a/tests/AppAny.HotChocolate.FluentValidation.Tests/ErrorMappingContextProperties.cs b/tests/AppAny.HotChocolate.FluentValidation.Tests/ErrorMappingContextProperties.cs
index ae1ad38..0dcc86a 100644
--- a/tests/AppAny.HotChocolate.FluentValidation.Tests/ErrorMappingContextProperties.cs
+++ b/tests/AppAny.HotChocolate.FluentValidation.Tests/ErrorMappingContextProperties.cs
@@ -34,7 +34,7 @@ public async Task AddFluentValidation()
services.AddTransient, NotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -69,7 +69,7 @@ public async Task UseFluentValidation()
services.AddTransient, NotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
diff --git a/tests/AppAny.HotChocolate.FluentValidation.Tests/Extensions/QueryResultExtensions.cs b/tests/AppAny.HotChocolate.FluentValidation.Tests/Extensions/OperationResultExtensions.cs
similarity index 84%
rename from tests/AppAny.HotChocolate.FluentValidation.Tests/Extensions/QueryResultExtensions.cs
rename to tests/AppAny.HotChocolate.FluentValidation.Tests/Extensions/OperationResultExtensions.cs
index 4f53665..3f91838 100644
--- a/tests/AppAny.HotChocolate.FluentValidation.Tests/Extensions/QueryResultExtensions.cs
+++ b/tests/AppAny.HotChocolate.FluentValidation.Tests/Extensions/OperationResultExtensions.cs
@@ -6,9 +6,9 @@
namespace AppAny.HotChocolate.FluentValidation.Tests
{
- public static class QueryResultExtensions
+ public static class OperationResultExtensions
{
- public static void AssertNullResult(this QueryResult result)
+ public static void AssertNullResult(this OperationResult result)
{
var (key, value) = Assert.Single(result.Data!);
@@ -16,7 +16,7 @@ public static void AssertNullResult(this QueryResult result)
Assert.Null(value);
}
- public static void AssertSuceessResult(this QueryResult result)
+ public static void AssertSuccessResult(this OperationResult result)
{
var (key, value) = Assert.Single(result.Data!);
@@ -27,7 +27,7 @@ public static void AssertSuceessResult(this QueryResult result)
}
public static void AssertDefaultErrorMapper(
- this QueryResult result,
+ this OperationResult result,
string code,
string message,
params Action>[] elementInspectors)
diff --git a/tests/AppAny.HotChocolate.FluentValidation.Tests/InputValidatorContextProperties.cs b/tests/AppAny.HotChocolate.FluentValidation.Tests/InputValidatorContextProperties.cs
index 426208e..94eda5e 100644
--- a/tests/AppAny.HotChocolate.FluentValidation.Tests/InputValidatorContextProperties.cs
+++ b/tests/AppAny.HotChocolate.FluentValidation.Tests/InputValidatorContextProperties.cs
@@ -34,7 +34,7 @@ public async Task AddFluentValidation()
services.AddTransient, NotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -69,7 +69,7 @@ public async Task UseFluentValidation()
services.AddTransient, NotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
diff --git a/tests/AppAny.HotChocolate.FluentValidation.Tests/MultipleInputs.cs b/tests/AppAny.HotChocolate.FluentValidation.Tests/MultipleInputs.cs
index 62aea77..e9ffa8e 100644
--- a/tests/AppAny.HotChocolate.FluentValidation.Tests/MultipleInputs.cs
+++ b/tests/AppAny.HotChocolate.FluentValidation.Tests/MultipleInputs.cs
@@ -26,7 +26,7 @@ public async Task SingleInput()
services.AddTransient, NotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithMultipleInputsEmptyName));
result.AssertNullResult();
@@ -53,7 +53,7 @@ public async Task DoubleInput()
services.AddTransient, NotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithMultipleInputsEmptyName));
result.AssertNullResult();
@@ -102,7 +102,7 @@ public async Task SecondInput()
services.AddTransient, NotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithMultipleInputsEmptyName));
result.AssertNullResult();
@@ -129,10 +129,10 @@ public async Task NoInputs()
services.AddTransient, NotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithMultipleInputsEmptyName));
- result.AssertSuceessResult();
+ result.AssertSuccessResult();
}
}
}
diff --git a/tests/AppAny.HotChocolate.FluentValidation.Tests/MultipleMutations.cs b/tests/AppAny.HotChocolate.FluentValidation.Tests/MultipleMutations.cs
index 1c5ce18..19dfd51 100644
--- a/tests/AppAny.HotChocolate.FluentValidation.Tests/MultipleMutations.cs
+++ b/tests/AppAny.HotChocolate.FluentValidation.Tests/MultipleMutations.cs
@@ -26,7 +26,7 @@ public async Task Multiple()
services.AddTransient, NotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.MultipleMutationsWithEmptyName));
Assert.Collection(result.Data!,
diff --git a/tests/AppAny.HotChocolate.FluentValidation.Tests/OverrideAddFluentValidation.cs b/tests/AppAny.HotChocolate.FluentValidation.Tests/OverrideAddFluentValidation.cs
index c33d680..29f8ab3 100644
--- a/tests/AppAny.HotChocolate.FluentValidation.Tests/OverrideAddFluentValidation.cs
+++ b/tests/AppAny.HotChocolate.FluentValidation.Tests/OverrideAddFluentValidation.cs
@@ -27,7 +27,7 @@ public async Task NullResult_WithCodeExtension()
services.AddTransient, NotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -57,7 +57,7 @@ public async Task NullResult_ValidatorOverride()
services.AddTransient();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -87,7 +87,7 @@ public async Task ThrowsNoMessageSet()
services.AddTransient();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -108,7 +108,7 @@ public async Task ThrowsNullInputValidator()
}));
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -132,10 +132,10 @@ public async Task CustomInputValidatorHasNoValidators()
}));
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
- result.AssertSuceessResult();
+ result.AssertSuccessResult();
}
}
}
diff --git a/tests/AppAny.HotChocolate.FluentValidation.Tests/OverrideErrorMappers.cs b/tests/AppAny.HotChocolate.FluentValidation.Tests/OverrideErrorMappers.cs
index f566c35..be78957 100644
--- a/tests/AppAny.HotChocolate.FluentValidation.Tests/OverrideErrorMappers.cs
+++ b/tests/AppAny.HotChocolate.FluentValidation.Tests/OverrideErrorMappers.cs
@@ -34,7 +34,7 @@ public async Task AddFluentValidation()
services.AddTransient, NotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -74,7 +74,7 @@ public async Task UseFluentValidation()
services.AddTransient, NotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -108,7 +108,7 @@ public async Task UseDefaultErrorMapperWithDetails()
services.AddTransient, NotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -172,7 +172,7 @@ public async Task UseDefaultErrorMapperWithDetailsWithOperationName()
services.AddTransient, NotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithOperationNameEmptyName));
result.AssertNullResult();
@@ -236,7 +236,7 @@ public async Task UseDefaultErrorMapperWithExtendedDetails()
services.AddTransient, NotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -288,13 +288,13 @@ public async Task UseDefaultErrorMapperWithExtendedDetails()
Assert.Equal(ValidationDefaults.ExtensionKeys.CustomStateKey, customState.Key);
Assert.Null(customState.Value);
},
- formattedMessagePlaceholerValues =>
+ formattedMessagePlaceholderValues =>
{
Assert.Equal(
ValidationDefaults.ExtensionKeys.FormattedMessagePlaceholderValuesKey,
- formattedMessagePlaceholerValues.Key);
+ formattedMessagePlaceholderValues.Key);
- var values = Assert.IsType>(formattedMessagePlaceholerValues.Value);
+ var values = Assert.IsType>(formattedMessagePlaceholderValues.Value);
Assert.Collection(values,
propertyName =>
@@ -338,7 +338,7 @@ public async Task UseDefaultErrorMapperWithCustomExtendedDetails()
services.AddTransient, NotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -390,13 +390,13 @@ public async Task UseDefaultErrorMapperWithCustomExtendedDetails()
Assert.Equal(ValidationDefaults.ExtensionKeys.CustomStateKey, customState.Key);
Assert.Null(customState.Value);
},
- formattedMessagePlaceholerValues =>
+ formattedMessagePlaceholderValues =>
{
Assert.Equal(
ValidationDefaults.ExtensionKeys.FormattedMessagePlaceholderValuesKey,
- formattedMessagePlaceholerValues.Key);
+ formattedMessagePlaceholderValues.Key);
- var values = Assert.IsType>(formattedMessagePlaceholerValues.Value);
+ var values = Assert.IsType>(formattedMessagePlaceholderValues.Value);
Assert.Collection(values,
propertyName =>
@@ -443,7 +443,7 @@ public async Task MultipleErrorMappers()
services.AddTransient, NotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
diff --git a/tests/AppAny.HotChocolate.FluentValidation.Tests/OverrideUseFluentValidation.cs b/tests/AppAny.HotChocolate.FluentValidation.Tests/OverrideUseFluentValidation.cs
index 725d2d3..a03b09c 100644
--- a/tests/AppAny.HotChocolate.FluentValidation.Tests/OverrideUseFluentValidation.cs
+++ b/tests/AppAny.HotChocolate.FluentValidation.Tests/OverrideUseFluentValidation.cs
@@ -30,7 +30,7 @@ public async Task UseDefaultErrorMapperFieldOverride()
services.AddTransient, NotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -60,7 +60,7 @@ public async Task UseDefaultErrorMapperWithDetailsFieldOverride()
services.AddTransient, NotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -125,7 +125,7 @@ public async Task UseValidatorOverride()
services.AddTransient();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -155,7 +155,7 @@ public async Task UseValidatorTypedOverride()
services.AddTransient();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -187,7 +187,7 @@ public async Task UseInputValidatorOverride()
services.AddTransient();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -218,7 +218,7 @@ public async Task MultipleUseValidatorOverride()
services.AddTransient().AddTransient();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyNameAndAddress));
result.AssertNullResult();
@@ -271,7 +271,7 @@ public async Task UseValidatorTypeOverride()
services.AddTransient().AddTransient();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyNameAndAddress));
result.AssertNullResult();
@@ -326,7 +326,7 @@ public async Task UseValidatorWithValidationStrategy()
services.AddTransient().AddTransient();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyNameAndAddress));
result.AssertNullResult();
@@ -367,7 +367,7 @@ public async Task UseValidatorTwice()
services.AddTransient().AddTransient();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -419,7 +419,7 @@ public async Task UseCustomValidator()
services.AddTransient();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -471,10 +471,10 @@ public async Task SkipValidation()
services.AddTransient();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
- result.AssertSuceessResult();
+ result.AssertSuccessResult();
}
[Fact]
@@ -504,10 +504,10 @@ public async Task SkipValidationWithInputValidator()
services.AddTransient();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
- result.AssertSuceessResult();
+ result.AssertSuccessResult();
}
[Fact]
@@ -537,7 +537,7 @@ public async Task UseDefaultInputValidatorWithCustom()
services.AddTransient, NotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
diff --git a/tests/AppAny.HotChocolate.FluentValidation.Tests/SkipValidation.cs b/tests/AppAny.HotChocolate.FluentValidation.Tests/SkipValidation.cs
index e39b989..56eeef3 100644
--- a/tests/AppAny.HotChocolate.FluentValidation.Tests/SkipValidation.cs
+++ b/tests/AppAny.HotChocolate.FluentValidation.Tests/SkipValidation.cs
@@ -29,14 +29,14 @@ public async Task FieldSkipValidation()
services.AddTransient, NotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
- result.AssertSuceessResult();
+ result.AssertSuccessResult();
}
[Fact]
- public async Task FieldSkipValidationPredecate()
+ public async Task FieldSkipValidationPredicate()
{
var executor = await TestSetup.CreateRequestExecutor(builder =>
{
@@ -55,10 +55,10 @@ public async Task FieldSkipValidationPredecate()
services.AddTransient, NotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
- result.AssertSuceessResult();
+ result.AssertSuccessResult();
}
[Fact]
@@ -77,14 +77,14 @@ public async Task GlobalSkipValidation()
services.AddTransient, NotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
- result.AssertSuceessResult();
+ result.AssertSuccessResult();
}
[Fact]
- public async Task GlobalSkipValidationPredecate()
+ public async Task GlobalSkipValidationPredicate()
{
var executor = await TestSetup.CreateRequestExecutor(builder =>
{
@@ -102,10 +102,10 @@ public async Task GlobalSkipValidationPredecate()
services.AddTransient, NotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
- result.AssertSuceessResult();
+ result.AssertSuccessResult();
}
[Fact]
@@ -128,10 +128,10 @@ public async Task GlobalSkipValidationFieldOverride()
services.AddTransient, NotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
- result.AssertSuceessResult();
+ result.AssertSuccessResult();
}
[Fact]
@@ -154,7 +154,7 @@ public async Task FieldSkipValidationDefault()
services.AddTransient, NotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
diff --git a/tests/AppAny.HotChocolate.FluentValidation.Tests/UseValidationStrategy.cs b/tests/AppAny.HotChocolate.FluentValidation.Tests/UseValidationStrategy.cs
index b8a74c8..8ee4b6f 100644
--- a/tests/AppAny.HotChocolate.FluentValidation.Tests/UseValidationStrategy.cs
+++ b/tests/AppAny.HotChocolate.FluentValidation.Tests/UseValidationStrategy.cs
@@ -41,7 +41,7 @@ public async Task DynamicValidationStrategy_Generic_WithContext()
services.AddTransient, NotEmptyNameValidator>();
});
- var result1 = Assert.IsType(
+ var result1 = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result1.AssertNullResult();
@@ -50,15 +50,15 @@ public async Task DynamicValidationStrategy_Generic_WithContext()
"NotEmptyValidator",
NotEmptyNameValidator.Message);
- var result2 = Assert.IsType(
+ var result2 = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithName("WithName")));
- result2.AssertSuceessResult();
+ result2.AssertSuccessResult();
- var result3 = Assert.IsType(
+ var result3 = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithAddress("WithAddress")));
- result3.AssertSuceessResult();
+ result3.AssertSuccessResult();
}
[Fact]
@@ -83,10 +83,10 @@ public async Task DynamicValidationStrategy_Generic_WithoutContext()
services.AddTransient, NotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
- result.AssertSuceessResult();
+ result.AssertSuccessResult();
}
[Fact]
@@ -121,7 +121,7 @@ public async Task DynamicValidationStrategy_WithContext()
services.AddTransient, NotEmptyNameValidator>();
});
- var result1 = Assert.IsType(
+ var result1 = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result1.AssertNullResult();
@@ -130,15 +130,15 @@ public async Task DynamicValidationStrategy_WithContext()
"NotEmptyValidator",
NotEmptyNameValidator.Message);
- var result2 = Assert.IsType(
+ var result2 = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithName("WithName")));
- result2.AssertSuceessResult();
+ result2.AssertSuccessResult();
- var result3 = Assert.IsType(
+ var result3 = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithAddress("WithAddress")));
- result3.AssertSuceessResult();
+ result3.AssertSuccessResult();
}
[Fact]
@@ -163,10 +163,10 @@ public async Task DynamicValidationStrategy_WithoutContext()
services.AddTransient, NotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
- result.AssertSuceessResult();
+ result.AssertSuccessResult();
}
[Fact]
@@ -191,10 +191,10 @@ public async Task DynamicValidationStrategy_WithNullInput()
services.AddTransient, NotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithNullInput));
- result.AssertSuceessResult();
+ result.AssertSuccessResult();
}
}
}
diff --git a/tests/AppAny.HotChocolate.FluentValidation.Tests/UseValidators.cs b/tests/AppAny.HotChocolate.FluentValidation.Tests/UseValidators.cs
index cf67ea0..2e4cf4a 100644
--- a/tests/AppAny.HotChocolate.FluentValidation.Tests/UseValidators.cs
+++ b/tests/AppAny.HotChocolate.FluentValidation.Tests/UseValidators.cs
@@ -31,7 +31,7 @@ public async Task UseValidatorsGeneric()
.AddTransient, NotEmptyAddressValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -63,7 +63,7 @@ public async Task UseValidatorsWithType()
.AddTransient, NotEmptyAddressValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -94,7 +94,7 @@ public async Task UseValidatorsGenericWithInputParameter()
.AddTransient, NotEmptyAddressValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -128,7 +128,7 @@ public async Task UseValidatorsGenericWithInputParameterAndValidationStrategy()
.AddTransient, NotEmptyAddressValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -162,7 +162,7 @@ public async Task UseValidatorsGenericWithInputParameterAndPartialValidationStra
.AddTransient, NotEmptyAddressValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -194,7 +194,7 @@ public async Task UseValidatorGenericWithValidationStrategyName()
services.AddTransient, NotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -226,7 +226,7 @@ public async Task UseValidatorGenericWithValidationStrategyAddress()
services.AddTransient, NotEmptyAddressValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -259,10 +259,10 @@ public async Task UseValidatorGenericWithValidationStrategy()
.AddTransient, NotEmptyAddressValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
- result.AssertSuceessResult();
+ result.AssertSuccessResult();
}
[Fact]
@@ -289,7 +289,7 @@ public async Task UseValidatorsGenericWithValidationStrategyNameAndAddress()
.AddTransient, NotEmptyAddressValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -323,7 +323,7 @@ public async Task UseValidatorsGenericWithValidationStrategyName()
.AddTransient, NotEmptyAddressValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -348,7 +348,7 @@ public async Task UseValidatorWithoutRegisteredServiceDescriptor()
}));
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
var error = Assert.Single(result.Errors!);
@@ -369,7 +369,7 @@ public async Task UseValidatorsWithoutRegisteredServiceDescriptor()
}));
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
var error = Assert.Single(result.Errors!);
diff --git a/tests/AppAny.HotChocolate.FluentValidation.Tests/UsingAttributes.cs b/tests/AppAny.HotChocolate.FluentValidation.Tests/UsingAttributes.cs
index abbfd98..4fb00c3 100644
--- a/tests/AppAny.HotChocolate.FluentValidation.Tests/UsingAttributes.cs
+++ b/tests/AppAny.HotChocolate.FluentValidation.Tests/UsingAttributes.cs
@@ -23,7 +23,7 @@ public async Task AttributeConfiguration()
services.AddTransient, NotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -56,7 +56,7 @@ public async Task DefaultInputValidator()
services.AddTransient, NotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -89,7 +89,7 @@ public async Task DefaultErrorMapper()
services.AddTransient, NotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -122,7 +122,7 @@ public async Task DefaultErrorMapperWithDetails()
services.AddTransient, NotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -180,7 +180,7 @@ public async Task DefaultErrorMapperWithExtendedDetails()
services.AddTransient, NotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -232,13 +232,13 @@ public async Task DefaultErrorMapperWithExtendedDetails()
Assert.Equal(ValidationDefaults.ExtensionKeys.CustomStateKey, customState.Key);
Assert.Null(customState.Value);
},
- formattedMessagePlaceholerValues =>
+ formattedMessagePlaceholderValues =>
{
Assert.Equal(
ValidationDefaults.ExtensionKeys.FormattedMessagePlaceholderValuesKey,
- formattedMessagePlaceholerValues.Key);
+ formattedMessagePlaceholderValues.Key);
- var values = Assert.IsType>(formattedMessagePlaceholerValues.Value);
+ var values = Assert.IsType>(formattedMessagePlaceholderValues.Value);
Assert.Collection(values,
propertyName =>
@@ -273,7 +273,7 @@ public async Task AttributeConfigurationWithCustomValidator()
services.AddTransient();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -306,10 +306,10 @@ public async Task AttributeConfigurationWithSkipValidation()
services.AddTransient, NotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
- result.AssertSuceessResult();
+ result.AssertSuccessResult();
}
[Fact]
@@ -325,7 +325,7 @@ public async Task AttributeConfigurationWithCustomSkipValidation()
services.AddTransient, NotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -358,10 +358,10 @@ public async Task CustomSkipValidation()
services.AddTransient, NotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithName("Custom")));
- result.AssertSuceessResult();
+ result.AssertSuccessResult();
}
[Fact]
@@ -377,7 +377,7 @@ public async Task Should_Use_AttributeConfiguration_CustomValidators()
services.AddTransient().AddTransient();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -422,7 +422,7 @@ public async Task UseValidatorWithValidationStrategy()
services.AddTransient();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -455,7 +455,7 @@ public async Task UseValidatorWithIncludeAllRuleSets()
services.AddTransient();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -488,7 +488,7 @@ public async Task UseValidatorWithIncludeRulesNotInRuleSet()
services.AddTransient();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -521,10 +521,10 @@ public async Task UseValidatorWithIncludeRuleSets()
services.AddTransient();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
- result.AssertSuceessResult();
+ result.AssertSuccessResult();
}
[Fact]
@@ -540,10 +540,10 @@ public async Task UseValidatorWithValidationStrategyAddress()
services.AddTransient();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
- result.AssertSuceessResult();
+ result.AssertSuccessResult();
}
[Fact]
@@ -559,7 +559,7 @@ public async Task UseValidatorsWithValidationStrategy()
services.AddTransient();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -592,10 +592,10 @@ public async Task UseValidatorsWithValidationStrategyAddress()
services.AddTransient();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
- result.AssertSuceessResult();
+ result.AssertSuccessResult();
}
}
}
diff --git a/tests/AppAny.HotChocolate.FluentValidation.Tests/UsingDefaults.cs b/tests/AppAny.HotChocolate.FluentValidation.Tests/UsingDefaults.cs
index 0eda3ba..bb2bd5b 100644
--- a/tests/AppAny.HotChocolate.FluentValidation.Tests/UsingDefaults.cs
+++ b/tests/AppAny.HotChocolate.FluentValidation.Tests/UsingDefaults.cs
@@ -25,7 +25,7 @@ public async Task ExtensionCode()
services.AddTransient, NotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
@@ -52,7 +52,7 @@ public async Task UseMultipleValidators()
.AddTransient, NotEmptyAddressValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyNameAndAddress));
result.AssertNullResult();
@@ -100,7 +100,7 @@ public async Task UseValidatorByConvention()
services.AddTransient, DoubleNotEmptyNameValidator>();
});
- var result = Assert.IsType(
+ var result = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result.AssertNullResult();
diff --git a/tests/AppAny.HotChocolate.FluentValidation.Tests/ValidationStrategies.cs b/tests/AppAny.HotChocolate.FluentValidation.Tests/ValidationStrategies.cs
index 4230b13..0054798 100644
--- a/tests/AppAny.HotChocolate.FluentValidation.Tests/ValidationStrategies.cs
+++ b/tests/AppAny.HotChocolate.FluentValidation.Tests/ValidationStrategies.cs
@@ -41,7 +41,7 @@ public async Task DynamicValidationStrategy()
services.AddTransient, NotEmptyNameValidator>();
});
- var result1 = Assert.IsType(
+ var result1 = Assert.IsType(
await executor.ExecuteAsync(TestSetup.Mutations.WithEmptyName));
result1.AssertNullResult();
@@ -50,15 +50,15 @@ public async Task DynamicValidationStrategy()
"NotEmptyValidator",
NotEmptyNameValidator.Message);
- var result2 = Assert.IsType