Skip to content

Commit ea3f0ff

Browse files
committed
Fix typo in test method name and enhance logging in Subscription
1 parent 6718f9b commit ea3f0ff

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

test/Linq2GraphQL.TestServer/Subscription.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ public Customer CustomerAdded([EventMessage] Customer customer)
1212
}
1313

1414
[Subscribe]
15-
[Topic("{name}")]
15+
[Topic($"{{{nameof(name)}}}")]
1616
public Customer CustomerNameAdded(string name, [EventMessage] Customer customer)
1717
{
18+
Console.WriteLine($"Customer {customer.CustomerName} added from topic {name}");
1819
return customer;
1920
}
2021
}

test/Linq2GraphQL.Tests/QueryIncludeTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public async Task IncludePrimitives_MultipleLevels()
6868
}
6969

7070
[Fact]
71-
public async Task IncludePrimitives_AnomousResult()
71+
public async Task IncludePrimitives_AnonymousResult()
7272
{
7373
var query = sampleClient
7474
.Query

0 commit comments

Comments
 (0)