@@ -14,7 +14,7 @@ public class BulkTests : IntegrationTests
1414 [ Test ]
1515 public void Bulk ( )
1616 {
17- var result = this . _client . Bulk ( b => b
17+ var result = this . Client . Bulk ( b => b
1818 . Index < ElasticsearchProject > ( i => i . Document ( new ElasticsearchProject { Id = 2 } ) )
1919 . Delete < ElasticsearchProject > ( i => i . Document ( new ElasticsearchProject { Id = 4 } ) )
2020 . Create < ElasticsearchProject > ( i => i . Document ( new ElasticsearchProject { Id = 123123 } ) )
@@ -32,22 +32,22 @@ public void Bulk()
3232 deleteResponses . Should ( ) . HaveCount ( 1 ) ;
3333 deleteResponses . First ( ) . Id . Should ( ) . BeEquivalentTo ( "4" ) ;
3434 deleteResponses . First ( ) . Index . Should ( ) . BeEquivalentTo ( ElasticsearchConfiguration . DefaultIndex ) ;
35- deleteResponses . First ( ) . Type . Should ( ) . BeEquivalentTo ( this . _client . Infer . TypeName < ElasticsearchProject > ( ) ) ;
35+ deleteResponses . First ( ) . Type . Should ( ) . BeEquivalentTo ( this . Client . Infer . TypeName < ElasticsearchProject > ( ) ) ;
3636
3737 createResponses . Should ( ) . HaveCount ( 1 ) ;
3838 createResponses . First ( ) . Id . Should ( ) . BeEquivalentTo ( "123123" ) ;
3939 createResponses . First ( ) . Index . Should ( ) . BeEquivalentTo ( ElasticsearchConfiguration . DefaultIndex ) ;
40- createResponses . First ( ) . Type . Should ( ) . BeEquivalentTo ( this . _client . Infer . TypeName < ElasticsearchProject > ( ) ) ;
40+ createResponses . First ( ) . Type . Should ( ) . BeEquivalentTo ( this . Client . Infer . TypeName < ElasticsearchProject > ( ) ) ;
4141
4242 indexResponses . Should ( ) . HaveCount ( 1 ) ;
4343 indexResponses . First ( ) . Id . Should ( ) . BeEquivalentTo ( "2" ) ;
4444 indexResponses . First ( ) . Index . Should ( ) . BeEquivalentTo ( ElasticsearchConfiguration . DefaultIndex ) ;
45- indexResponses . First ( ) . Type . Should ( ) . BeEquivalentTo ( this . _client . Infer . TypeName < ElasticsearchProject > ( ) ) ;
45+ indexResponses . First ( ) . Type . Should ( ) . BeEquivalentTo ( this . Client . Infer . TypeName < ElasticsearchProject > ( ) ) ;
4646 }
4747 [ Test ]
4848 public void DoubleCreateReturnsOneError ( )
4949 {
50- var result = this . _client . Bulk ( b => b
50+ var result = this . Client . Bulk ( b => b
5151 . Create < ElasticsearchProject > ( i => i . Document ( new ElasticsearchProject { Id = 12315555 } ) )
5252 . Create < ElasticsearchProject > ( i => i . Document ( new ElasticsearchProject { Id = 12315555 } ) )
5353 ) ;
@@ -61,7 +61,7 @@ public void DoubleCreateReturnsOneError()
6161 public void BulkWithFixedIndex ( )
6262 {
6363 var indexName = ElasticsearchConfiguration . NewUniqueIndexName ( ) ;
64- var result = this . _client . Bulk ( b => b
64+ var result = this . Client . Bulk ( b => b
6565 . FixedPath ( indexName , "mytype" )
6666 . Index < ElasticsearchProject > ( i => i . Document ( new ElasticsearchProject { Id = 2 } ) )
6767 . Create < ElasticsearchProject > ( i => i . Document ( new ElasticsearchProject { Id = 3 } ) )
@@ -97,7 +97,7 @@ public void BulkWithFixedIndexOveriddenIndividualy()
9797 var indexName = ElasticsearchConfiguration . NewUniqueIndexName ( ) ;
9898 var indexName2 = ElasticsearchConfiguration . NewUniqueIndexName ( ) ;
9999 var indexName3 = ElasticsearchConfiguration . NewUniqueIndexName ( ) ;
100- var result = this . _client . Bulk ( b => b
100+ var result = this . Client . Bulk ( b => b
101101 . FixedPath ( indexName , "mytype" )
102102 . Index < ElasticsearchProject > ( i => i . Document ( new ElasticsearchProject { Id = 2 } ) . Index ( indexName2 ) )
103103 . Create < ElasticsearchProject > ( i => i . Document ( new ElasticsearchProject { Id = 3 } ) . Type ( "esproj" ) )
@@ -135,7 +135,7 @@ public void BulkAlternativeWayOfWriting()
135135 foreach ( var i in Enumerable . Range ( 3000 , 1000 ) )
136136 descriptor . Index < ElasticsearchProject > ( op => op . Document ( new ElasticsearchProject { Id = i } ) ) ;
137137
138- var result = this . _client . Bulk ( d=> descriptor ) ;
138+ var result = this . Client . Bulk ( d=> descriptor ) ;
139139 result . Should ( ) . NotBeNull ( ) ;
140140 result . IsValid . Should ( ) . BeTrue ( ) ;
141141 result . Errors . Should ( ) . BeFalse ( ) ;
0 commit comments