@@ -26,8 +26,8 @@ public async Task TestTableOperations()
2626 // Clear tables
2727 await SharedTestFixture . CleanupTables ( ) ;
2828
29- Table hashTable ;
30- Table hashRangeTable ;
29+ ITable hashTable ;
30+ ITable hashRangeTable ;
3131
3232 // Load tables using provided conversion schema
3333 LoadTables ( conversion , out hashTable , out hashRangeTable ) ;
@@ -64,7 +64,7 @@ public async Task TestTableOperations()
6464 }
6565 }
6666
67- private async Task TestPagination ( Table hashRangeTable )
67+ private async Task TestPagination ( ITable hashRangeTable )
6868 {
6969 var itemCount = 10 ;
7070 var batchWrite = hashRangeTable . CreateBatchWrite ( ) ;
@@ -136,7 +136,7 @@ private async Task TestPagination(Table hashRangeTable)
136136 }
137137 }
138138
139- private static async Task < int > VerifyPagination ( Search search , List < string > tokens )
139+ private static async Task < int > VerifyPagination ( ISearch search , List < string > tokens )
140140 {
141141 int count = 0 ;
142142 do
@@ -156,7 +156,7 @@ private static async Task<int> VerifyPagination(Search search, List<string> toke
156156 return count ;
157157 }
158158
159- private async Task TestEmptyCollections ( Table hashTable )
159+ private async Task TestEmptyCollections ( ITable hashTable )
160160 {
161161 Document doc = new Document ( ) ;
162162 doc [ "Id" ] = 1 ;
@@ -179,7 +179,7 @@ private async Task TestEmptyCollections(Table hashTable)
179179 Assert . Empty ( listEntry . AsDynamoDBList ( ) . Entries ) ;
180180 }
181181
182- private async Task TestHashTable ( Table hashTable , DynamoDBEntryConversion conversion )
182+ private async Task TestHashTable ( ITable hashTable , DynamoDBEntryConversion conversion )
183183 {
184184 // Put an item
185185 Document doc = new Document ( ) ;
@@ -343,7 +343,7 @@ private async Task TestHashTable(Table hashTable, DynamoDBEntryConversion conver
343343 items = await hashTable . Scan ( new ScanFilter ( ) ) . GetRemainingAsync ( ) ;
344344 Assert . Empty ( items ) ;
345345 }
346- private async Task TestHashRangeTable ( Table hashRangeTable , DynamoDBEntryConversion conversion )
346+ private async Task TestHashRangeTable ( ITable hashRangeTable , DynamoDBEntryConversion conversion )
347347 {
348348 // Put an item
349349 Document doc1 = new Document ( ) ;
@@ -556,7 +556,7 @@ private async Task TestHashRangeTable(Table hashRangeTable, DynamoDBEntryConvers
556556 } ) . GetRemainingAsync ( ) ;
557557 Assert . Single ( items ) ;
558558 }
559- private async Task TestLargeBatchOperations ( Table hashTable )
559+ private async Task TestLargeBatchOperations ( ITable hashTable )
560560 {
561561 int itemCount = 30 ;
562562 int itemSize = 40 * 1024 ;
@@ -604,7 +604,7 @@ private async Task TestLargeBatchOperations(Table hashTable)
604604 Assert . Empty ( items ) ;
605605 }
606606
607- private async Task TestExpressionsOnDelete ( Table hashTable )
607+ private async Task TestExpressionsOnDelete ( ITable hashTable )
608608 {
609609 Document doc1 = new Document ( ) ;
610610 doc1 [ "Id" ] = 13 ;
@@ -624,7 +624,7 @@ private async Task TestExpressionsOnDelete(Table hashTable)
624624 await hashTable . DeleteItemAsync ( doc1 , config ) ;
625625 }
626626
627- private async Task TestExpressionsOnQuery ( Table hashRangeTable )
627+ private async Task TestExpressionsOnQuery ( ITable hashRangeTable )
628628 {
629629 Document doc1 = new Document ( ) ;
630630 doc1 [ "Name" ] = "Gunnar" ;
@@ -663,7 +663,7 @@ private async Task TestExpressionsOnQuery(Table hashRangeTable)
663663 await hashRangeTable . DeleteItemAsync ( doc2 ) ;
664664 }
665665
666- private async Task TestExpressionsOnScan ( Table hashRangeTable )
666+ private async Task TestExpressionsOnScan ( ITable hashRangeTable )
667667 {
668668 await SharedTestFixture . ClearTable ( SharedTestFixture . hashRangeTableName ) ;
669669
@@ -703,7 +703,7 @@ private async Task TestExpressionsOnScan(Table hashRangeTable)
703703 await hashRangeTable . DeleteItemAsync ( doc2 ) ;
704704 }
705705
706- private async Task TestExpressionPut ( Table hashTable )
706+ private async Task TestExpressionPut ( ITable hashTable )
707707 {
708708 Document doc = new Document ( ) ;
709709
@@ -746,7 +746,7 @@ private async Task TestExpressionPut(Table hashTable)
746746 await hashTable . DeleteItemAsync ( doc ) ;
747747 }
748748
749- private async Task TestExpressionUpdate ( Table hashTable )
749+ private async Task TestExpressionUpdate ( ITable hashTable )
750750 {
751751 Document doc = new Document ( ) ;
752752
@@ -805,7 +805,7 @@ private bool AreValuesEqual(Document docA, Document docB, DynamoDBEntryConversio
805805 return true ;
806806 return docA . Equals ( docB ) ;
807807 }
808- private void LoadTables ( DynamoDBEntryConversion conversion , out Table hashTable , out Table hashRangeTable )
808+ private void LoadTables ( DynamoDBEntryConversion conversion , out ITable hashTable , out ITable hashRangeTable )
809809 {
810810 SharedTestFixture . TableCache . Clear ( ) ;
811811
0 commit comments