1717using System . IO ;
1818using System . Text ;
1919using System . Threading . Tasks ;
20- using Amazon . DynamoDBv2 . Model ;
2120using Amazon . Lambda . DynamoDBEvents ;
2221using Amazon . Lambda . KinesisEvents ;
2322using Amazon . Lambda . SQSEvents ;
@@ -238,47 +237,47 @@ public Task TestDynamoDb()
238237 new ( )
239238 {
240239 EventID = "1" ,
241- Dynamodb = new StreamRecord
240+ Dynamodb = new DynamoDBEvent . StreamRecord
242241 {
243- Keys = new Dictionary < string , AttributeValue >
242+ Keys = new Dictionary < string , DynamoDBEvent . AttributeValue >
244243 {
245- { "Id" , new AttributeValue { N = "1" } }
244+ { "Id" , new DynamoDBEvent . AttributeValue { N = "1" } }
246245 } ,
247- NewImage = new Dictionary < string , AttributeValue >
246+ NewImage = new Dictionary < string , DynamoDBEvent . AttributeValue >
248247 {
249- { "Product" , new AttributeValue { S = "{\" Id\" :1,\" Name\" :\" product-name\" ,\" Price\" :14}" } }
248+ { "Product" , new DynamoDBEvent . AttributeValue { S = "{\" Id\" :1,\" Name\" :\" product-name\" ,\" Price\" :14}" } }
250249 } ,
251250 SequenceNumber = "1"
252251 }
253252 } ,
254253 new ( )
255254 {
256255 EventID = "1" ,
257- Dynamodb = new StreamRecord
256+ Dynamodb = new DynamoDBEvent . StreamRecord
258257 {
259- Keys = new Dictionary < string , AttributeValue >
258+ Keys = new Dictionary < string , DynamoDBEvent . AttributeValue >
260259 {
261- { "Id" , new AttributeValue { N = "1" } }
260+ { "Id" , new DynamoDBEvent . AttributeValue { N = "1" } }
262261 } ,
263- NewImage = new Dictionary < string , AttributeValue >
262+ NewImage = new Dictionary < string , DynamoDBEvent . AttributeValue >
264263 {
265- { "Product" , new AttributeValue { S = "failure" } }
264+ { "Product" , new DynamoDBEvent . AttributeValue { S = "failure" } }
266265 } ,
267266 SequenceNumber = "2"
268267 }
269268 } ,
270269 new ( )
271270 {
272271 EventID = "1" ,
273- Dynamodb = new StreamRecord
272+ Dynamodb = new DynamoDBEvent . StreamRecord
274273 {
275- Keys = new Dictionary < string , AttributeValue >
274+ Keys = new Dictionary < string , DynamoDBEvent . AttributeValue >
276275 {
277- { "Id" , new AttributeValue { N = "1" } }
276+ { "Id" , new DynamoDBEvent . AttributeValue { N = "1" } }
278277 } ,
279- NewImage = new Dictionary < string , AttributeValue >
278+ NewImage = new Dictionary < string , DynamoDBEvent . AttributeValue >
280279 {
281- { "Product" , new AttributeValue { S = "{\" Id\" :1,\" Name\" :\" product-name\" ,\" Price\" :14}" } }
280+ { "Product" , new DynamoDBEvent . AttributeValue { S = "{\" Id\" :1,\" Name\" :\" product-name\" ,\" Price\" :14}" } }
282281 } ,
283282 SequenceNumber = "3"
284283 }
@@ -301,4 +300,4 @@ public Task TestDynamoDb()
301300 return Task . CompletedTask ;
302301 }
303302 }
304- }
303+ }
0 commit comments