@@ -25,9 +25,9 @@ public void convert_to_entity_table()
2525 ExternalId = Guid . Parse ( "e3bf64f4-0537-495c-b3bf-148259d7ed36" ) ,
2626 HireDate = DateTimeOffset . Parse ( "Thursday, January 31, 2008 " )
2727 } ;
28- var te = emp . ToTableEntity ( e => e . Company , e => e . Id ) ;
28+ var tableEntity = emp . ToTableEntity ( e => e . Company , e => e . Id ) ;
2929
30- Assert . Equal ( true , te . Properties . ContainsKey ( "DepartmentJson" ) ) ;
30+ Assert . Equal ( true , tableEntity . Properties . ContainsKey ( "DepartmentJson" ) ) ;
3131 }
3232
3333
@@ -46,8 +46,8 @@ public void convert_to_entity_table_explicit_keys()
4646 ExternalId = Guid . Parse ( "e3bf64f4-0537-495c-b3bf-148259d7ed36" ) ,
4747 HireDate = DateTimeOffset . Parse ( "Thursday, January 31, 2008 " )
4848 } ;
49- var te = emp . ToTableEntity ( "Google" , "42" ) ;
50- Assert . Equal ( "Google" , te . PartitionKey ) ;
49+ var tableEntity = emp . ToTableEntity ( "Google" , "42" ) ;
50+ Assert . Equal ( "Google" , tableEntity . PartitionKey ) ;
5151 }
5252
5353
@@ -68,8 +68,8 @@ public void convert_from_entity_table()
6868 ExternalId = Guid . Parse ( "e3bf64f4-0537-495c-b3bf-148259d7ed36" ) ,
6969 HireDate = DateTimeOffset . Parse ( "Thursday, January 31, 2008 " )
7070 } ;
71- var te = emp . ToTableEntity ( e => e . Company , e => e . Id ) ;
72- var employee = te . FromTableEntity < Employee , string , int > ( e => e . Company , e => e . Id ) ;
71+ var tableEntity = emp . ToTableEntity ( e => e . Company , e => e . Id ) ;
72+ var employee = tableEntity . FromTableEntity < Employee , string , int > ( e => e . Company , e => e . Id ) ;
7373 Assert . Equal ( Guid . Parse ( "12ae85a4-7131-4e8c-af63-074b066412e0" ) , employee . Department . OptionalId ) ;
7474 }
7575
@@ -90,8 +90,8 @@ public void convert_from_entity_table_complex_key()
9090 ExternalId = Guid . Parse ( "e3bf64f4-0537-495c-b3bf-148259d7ed36" ) ,
9191 HireDate = DateTimeOffset . Parse ( "Thursday, January 31, 2008 " )
9292 } ;
93- var te = emp . ToTableEntity ( $ "company_{ emp . Company } ", $ "employee_{ emp . Id } ") ;
94- var employee = te . FromTableEntity < Employee , string , int > ( e=> e . Company , pk=> pk . Substring ( "company_" . Length ) , e => e . Id , rk=> int . Parse ( rk . Substring ( "employee_" . Length ) ) ) ;
93+ var tableEntity = emp . ToTableEntity ( $ "company_{ emp . Company } ", $ "employee_{ emp . Id } ") ;
94+ var employee = tableEntity . FromTableEntity < Employee , string , int > ( e=> e . Company , pk=> pk . Substring ( "company_" . Length ) , e => e . Id , rk=> int . Parse ( rk . Substring ( "employee_" . Length ) ) ) ;
9595
9696 Assert . Equal ( Guid . Parse ( "12ae85a4-7131-4e8c-af63-074b066412e0" ) , employee . Department . OptionalId ) ;
9797 }
0 commit comments