Skip to content

Commit a5651f8

Browse files
fix incorrect entity name
1 parent b1bcd80 commit a5651f8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

samples/DtsPortableSdkEntityTests/tests/TwoCriticalSections.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ public override async Task<string> RunAsync(TaskOrchestrationContext context, st
4949
string key1 = entityKeys![0];
5050
string key2 = entityKeys![1];
5151

52-
await using (await context.Entities.LockEntitiesAsync([new EntityInstanceId("CounterEntity", key1)]))
52+
await using (await context.Entities.LockEntitiesAsync([new EntityInstanceId(nameof(Counter), key1)]))
5353
{
54-
await context.Entities.CallEntityAsync(new EntityInstanceId("CounterEntity", key1), "add", 1);
54+
await context.Entities.CallEntityAsync(new EntityInstanceId(nameof(Counter), key1), "add", 1);
5555
}
56-
await using (await context.Entities.LockEntitiesAsync([new EntityInstanceId("CounterEntity", key2)]))
56+
await using (await context.Entities.LockEntitiesAsync([new EntityInstanceId(nameof(Counter), key2)]))
5757
{
58-
await context.Entities.CallEntityAsync(new EntityInstanceId("CounterEntity", key2), "add", 1);
58+
await context.Entities.CallEntityAsync(new EntityInstanceId(nameof(Counter), key2), "add", 1);
5959
}
6060

6161
return "ok";

0 commit comments

Comments
 (0)