Skip to content

Commit

Permalink
test: construct QueryIdProvider from nsubstitute instead of manually …
Browse files Browse the repository at this point in the history
…creating it in QueryIdProviderTests
  • Loading branch information
Per Kops committed Aug 21, 2024
1 parent a4dbbee commit 29ca8c9
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ namespace Atc.Kusto.Tests.Providers.Internal;

public sealed class QueryIdProviderTests
{
private readonly QueryIdProvider sut = new();

[Theory, AutoNSubstituteData]
public void Create_WithValidSessionId_ReturnsExpectedQueryId(
internal void Create_WithValidSessionId_ReturnsExpectedQueryId(
QueryIdProvider sut,
Type queryType,
string sessionId)
{
Expand All @@ -19,7 +18,8 @@ public void Create_WithValidSessionId_ReturnsExpectedQueryId(
}

[Theory, AutoNSubstituteData]
public void Create_WithNullSessionId_ReturnsQueryIdWithNewGuid(
internal void Create_WithNullSessionId_ReturnsQueryIdWithNewGuid(
QueryIdProvider sut,
Type queryType)
{
// Arrange & Act
Expand Down

0 comments on commit 29ca8c9

Please sign in to comment.