Skip to content

Commit

Permalink
Make internal entities records
Browse files Browse the repository at this point in the history
  • Loading branch information
Romfos committed Apr 25, 2024
1 parent ec4c2d6 commit bc07211
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 24 deletions.
19 changes: 6 additions & 13 deletions src/NGherkin.TestAdapter/StepExecutionContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,9 @@

namespace NGherkin.TestAdapter;

internal sealed class StepExecutionContext(
string errorMessageStepText,
object service,
MethodInfo method,
List<string> parameters,
StepArgument? stepArgument)
{
public string ErrorMessageStepText { get; } = errorMessageStepText;
public object Service { get; } = service;
public MethodInfo Method { get; } = method;
public List<string> Parameters { get; } = parameters;
public StepArgument? StepArgument { get; } = stepArgument;
}
internal sealed record StepExecutionContext(
string ErrorMessageStepText,
object Service,
MethodInfo Method,
List<string> Parameters,
StepArgument? StepArgument);
16 changes: 5 additions & 11 deletions src/NGherkin.TestAdapter/TestExecutionContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,8 @@

namespace NGherkin.TestAdapter;

internal sealed class TestExecutionContext(
Feature feature,
Scenario scenario,
KeyValuePair<TableRow, TableRow>? examples,
List<Step> backgroundSteps)
{
public Feature Feature { get; } = feature;
public Scenario Scenario { get; } = scenario;
public KeyValuePair<TableRow, TableRow>? Examples { get; } = examples;
public List<Step> BackgroundSteps { get; } = backgroundSteps;
}
internal sealed record TestExecutionContext(
Feature Feature,
Scenario Scenario,
KeyValuePair<TableRow, TableRow>? Examples,
List<Step> BackgroundSteps);

0 comments on commit bc07211

Please sign in to comment.