Skip to content

Commit fd5dba0

Browse files
authored
Update FairyBread (#107)
1 parent 050332b commit fd5dba0

5 files changed

Lines changed: 17 additions & 17 deletions

File tree

tests/AppAny.HotChocolate.FluentValidation.Benchmarks/AppAny.HotChocolate.FluentValidation.Benchmarks.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<ItemGroup>
1313
<PackageReference Include="BenchmarkDotNet" Version="0.13.1" />
14-
<PackageReference Include="FairyBread" Version="9.0.0" />
14+
<PackageReference Include="FairyBread" Version="10.0.0-preview.2" />
1515
</ItemGroup>
1616

1717
<ItemGroup>

tests/AppAny.HotChocolate.FluentValidation.Benchmarks/EmptyInputsValidationBenchmarks.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ public async Task GlobalSetup()
2626
.Argument("input", arg => arg.Type<TestInputType>().UseFluentValidation())))
2727
.Services.AddSingleton<IValidator<TestInput>, TestInputValidator>());
2828

29-
// fairyBreadValidation = await BenchmarkSetup.CreateRequestExecutor(
30-
// builder => builder.AddFairyBread()
31-
// .AddMutationType(new TestMutationType(field => field.Argument("input", arg => arg.Type<TestInputType>())))
32-
// .Services.AddSingleton<TestInputValidator>().AddSingleton<IValidator<TestInput>, TestInputValidator>());
29+
fairyBreadValidation = await BenchmarkSetup.CreateRequestExecutor(
30+
builder => builder.AddFairyBread()
31+
.AddMutationType(new TestMutationType(field => field.Argument("input", arg => arg.Type<TestInputType>())))
32+
.Services.AddSingleton<TestInputValidator>().AddSingleton<IValidator<TestInput>, TestInputValidator>());
3333
}
3434

3535
[Benchmark]

tests/AppAny.HotChocolate.FluentValidation.Benchmarks/NullInputsValidationBenchmarks.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ public async Task GlobalSetup()
2626
field.Argument("input", arg => arg.Type<TestInputType>().UseFluentValidation())))
2727
.Services.AddSingleton<IValidator<TestInput>, TestInputValidator>());
2828

29-
// fairyBreadValidation = await BenchmarkSetup.CreateRequestExecutor(
30-
// builder => builder.AddFairyBread()
31-
// .AddMutationType(new TestMutationType(field => field.Argument("input", arg => arg.Type<TestInputType>())))
32-
// .Services.AddSingleton<TestInputValidator>().AddSingleton<IValidator<TestInput>, TestInputValidator>());
29+
fairyBreadValidation = await BenchmarkSetup.CreateRequestExecutor(
30+
builder => builder.AddFairyBread()
31+
.AddMutationType(new TestMutationType(field => field.Argument("input", arg => arg.Type<TestInputType>())))
32+
.Services.AddSingleton<TestInputValidator>().AddSingleton<IValidator<TestInput>, TestInputValidator>());
3333
}
3434

3535
[Benchmark]

tests/AppAny.HotChocolate.FluentValidation.Benchmarks/ScopedValidationBenchmarks.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ public async Task GlobalSetup()
2626
.Type<TestInputType>().UseFluentValidation(opt => opt.UseValidator<TestInputValidator>()))))
2727
.Services.AddScoped<TestInputValidator>());
2828

29-
// fairyBreadValidation = await BenchmarkSetup.CreateRequestExecutor(
30-
// builder => builder.AddFairyBread()
31-
// .AddMutationType(new TestMutationType(field => field.Argument("input", arg => arg.Type<TestInputType>())))
32-
// .Services.AddScoped<TestInputValidator>().AddScoped<IValidator<TestInput>, TestInputValidator>());
29+
fairyBreadValidation = await BenchmarkSetup.CreateRequestExecutor(
30+
builder => builder.AddFairyBread()
31+
.AddMutationType(new TestMutationType(field => field.Argument("input", arg => arg.Type<TestInputType>())))
32+
.Services.AddScoped<TestInputValidator>().AddScoped<IValidator<TestInput>, TestInputValidator>());
3333
}
3434

3535
[Benchmark]

tests/AppAny.HotChocolate.FluentValidation.Benchmarks/SingletonValidationBenchmarks.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ public async Task GlobalSetup()
2626
.Type<TestInputType>().UseFluentValidation(opt => opt.UseValidator<TestInputValidator>()))))
2727
.Services.AddSingleton<TestInputValidator>());
2828

29-
// fairyBreadValidation = await BenchmarkSetup.CreateRequestExecutor(
30-
// builder => builder.AddFairyBread()
31-
// .AddMutationType(new TestMutationType(field => field.Argument("input", arg => arg.Type<TestInputType>())))
32-
// .Services.AddSingleton<TestInputValidator>().AddSingleton<IValidator<TestInput>, TestInputValidator>());
29+
fairyBreadValidation = await BenchmarkSetup.CreateRequestExecutor(
30+
builder => builder.AddFairyBread()
31+
.AddMutationType(new TestMutationType(field => field.Argument("input", arg => arg.Type<TestInputType>())))
32+
.Services.AddSingleton<TestInputValidator>().AddSingleton<IValidator<TestInput>, TestInputValidator>());
3333
}
3434

3535
[Benchmark]

0 commit comments

Comments
 (0)