File tree Expand file tree Collapse file tree 6 files changed +17
-17
lines changed
AspNetCore/test/AspNetCore.Authorization.Tests
Fusion-vnext/src/Fusion.Execution/Planning/Serialization
MongoDb/test/Data.MongoDb.Paging.Tests
Raven/test/Data.Raven.Paging.Tests Expand file tree Collapse file tree 6 files changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ namespace HotChocolate.AspNetCore.Authorization;
7
7
8
8
public class AuthorizationTestData : IEnumerable < object [ ] >
9
9
{
10
- private readonly string SchemaCode = @"
10
+ private readonly string _schemaCode = @"
11
11
type Query {
12
12
default: String @authorize(apply: BEFORE_RESOLVER)
13
13
age: String @authorize(policy: ""HasAgeDefined"" apply: BEFORE_RESOLVER)
@@ -29,13 +29,13 @@ type Query {
29
29
30
30
private Action < IRequestExecutorBuilder > CreateSchema ( ) =>
31
31
sb => sb
32
- . AddDocumentFromString ( SchemaCode )
32
+ . AddDocumentFromString ( _schemaCode )
33
33
. AddAuthorization ( )
34
34
. UseField ( _schemaMiddleware ) ;
35
35
36
36
private Action < IRequestExecutorBuilder > CreateSchemaWithBuilder ( ) =>
37
37
sb => sb
38
- . AddDocumentFromString ( SchemaCode )
38
+ . AddDocumentFromString ( _schemaCode )
39
39
. AddAuthorization ( )
40
40
. UseField ( _schemaMiddleware ) ;
41
41
Original file line number Diff line number Diff line change @@ -4,15 +4,15 @@ namespace HotChocolate.Fusion.Planning;
4
4
5
5
internal sealed class CodeWriter ( StringBuilder sb )
6
6
{
7
- private int indent ;
7
+ private int _indent ;
8
8
9
- public void Indent ( ) => indent ++ ;
9
+ public void Indent ( ) => _indent ++ ;
10
10
11
- public void Unindent ( ) => indent -- ;
11
+ public void Unindent ( ) => _indent -- ;
12
12
13
13
public void WriteLine ( string line )
14
14
{
15
- for ( var i = 0 ; i < indent ; i ++ )
15
+ for ( var i = 0 ; i < _indent ; i ++ )
16
16
{
17
17
sb . Append ( " " ) ;
18
18
}
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ namespace HotChocolate.Data.MongoDb.Paging;
13
13
14
14
public class MongoDbCursorPagingAggregateFluentTests : IClassFixture < MongoResource >
15
15
{
16
- private readonly List < Foo > foos =
16
+ private readonly List < Foo > _foos =
17
17
[
18
18
new Foo { Bar = "a" } ,
19
19
new Foo { Bar = "b" } ,
@@ -248,7 +248,7 @@ private ValueTask<IRequestExecutor> CreateSchemaAsync()
248
248
{
249
249
descriptor
250
250
. Field ( "foos" )
251
- . Resolve ( BuildResolver ( _resource , foos ) )
251
+ . Resolve ( BuildResolver ( _resource , _foos ) )
252
252
. Type < ListType < ObjectType < Foo > > > ( )
253
253
. Use (
254
254
next => async context =>
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ namespace HotChocolate.Data.MongoDb.Paging;
12
12
13
13
public class MongoDbCursorPagingFindFluentTests : IClassFixture < MongoResource >
14
14
{
15
- private readonly List < Foo > foos =
15
+ private readonly List < Foo > _foos =
16
16
[
17
17
new Foo { Bar = "a" } ,
18
18
new Foo { Bar = "b" } ,
@@ -281,7 +281,7 @@ private ValueTask<IRequestExecutor> CreateSchemaAsync(bool requiresPagingBoundar
281
281
{
282
282
descriptor
283
283
. Field ( "foos" )
284
- . Resolve ( BuildResolver ( _resource , foos ) )
284
+ . Resolve ( BuildResolver ( _resource , _foos ) )
285
285
. Type < ListType < ObjectType < Foo > > > ( )
286
286
. Use (
287
287
next => async context =>
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ namespace HotChocolate.Data;
14
14
[ Collection ( SchemaCacheCollectionFixture . DefinitionName ) ]
15
15
public class RavenAsyncDocumentQueryTests
16
16
{
17
- private readonly List < Foo > foos =
17
+ private readonly List < Foo > _foos =
18
18
[
19
19
new Foo { Bar = "a" } ,
20
20
new Foo { Bar = "b" } ,
@@ -377,7 +377,7 @@ private ValueTask<IRequestExecutor> CreateSchemaAsync()
377
377
{
378
378
descriptor
379
379
. Field ( "foos" )
380
- . Resolve ( BuildResolver ( database , foos ) )
380
+ . Resolve ( BuildResolver ( database , _foos ) )
381
381
. Type < ListType < ObjectType < Foo > > > ( )
382
382
. Use (
383
383
next => async context =>
@@ -403,7 +403,7 @@ private ValueTask<IRequestExecutor> CreateSchemaAsync()
403
403
404
404
descriptor
405
405
. Field ( "foosOffset" )
406
- . Resolve ( BuildResolver ( database , foos ) )
406
+ . Resolve ( BuildResolver ( database , _foos ) )
407
407
. Type < ListType < ObjectType < Foo > > > ( )
408
408
. Use (
409
409
next => async context =>
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ namespace HotChocolate.Data;
14
14
[ Collection ( SchemaCacheCollectionFixture . DefinitionName ) ]
15
15
public class RavenQueryableTests
16
16
{
17
- private readonly List < Foo > foos =
17
+ private readonly List < Foo > _foos =
18
18
[
19
19
new Foo { Bar = "a" } ,
20
20
new Foo { Bar = "b" } ,
@@ -373,7 +373,7 @@ private ValueTask<IRequestExecutor> CreateSchemaAsync()
373
373
{
374
374
descriptor
375
375
. Field ( "foos" )
376
- . Resolve ( BuildResolver ( database , foos ) )
376
+ . Resolve ( BuildResolver ( database , _foos ) )
377
377
. Type < ListType < ObjectType < Foo > > > ( )
378
378
. Use (
379
379
next => async context =>
@@ -399,7 +399,7 @@ private ValueTask<IRequestExecutor> CreateSchemaAsync()
399
399
400
400
descriptor
401
401
. Field ( "foosOffset" )
402
- . Resolve ( BuildResolver ( database , foos ) )
402
+ . Resolve ( BuildResolver ( database , _foos ) )
403
403
. Type < ListType < ObjectType < Foo > > > ( )
404
404
. Use (
405
405
next => async context =>
You can’t perform that action at this time.
0 commit comments