Skip to content

Commit 92a9ce8

Browse files
authored
Update FunctionTest.cs
Signed-off-by: Henrique Graca <999396+hjgraca@users.noreply.github.com>
1 parent 9551733 commit 92a9ce8

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

examples/BatchProcessing/test/HelloWorld.Test/FunctionTest.cs

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
using System.IO;
1818
using System.Text;
1919
using System.Threading.Tasks;
20-
using Amazon.DynamoDBv2.Model;
2120
using Amazon.Lambda.DynamoDBEvents;
2221
using Amazon.Lambda.KinesisEvents;
2322
using 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
}

0 commit comments

Comments
 (0)