Skip to content

Commit 4d2f783

Browse files
committed
refactor: Change TrackingInvocation from record to class for enhanced flexibility
Signed-off-by: André Silva <[email protected]>
1 parent ca679a7 commit 4d2f783

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

test/OpenFeature.Providers.MultiProvider.Tests/Utils/TestProvider.cs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,19 @@ namespace OpenFeature.Providers.MultiProvider.Tests.Utils;
66
/// <summary>
77
/// Represents a tracking invocation for testing purposes.
88
/// </summary>
9-
public record TrackingInvocation(string EventName, EvaluationContext? EvaluationContext, TrackingEventDetails? TrackingEventDetails);
9+
public class TrackingInvocation
10+
{
11+
public string EventName { get; }
12+
public EvaluationContext? EvaluationContext { get; }
13+
public TrackingEventDetails? TrackingEventDetails { get; }
14+
15+
public TrackingInvocation(string eventName, EvaluationContext? evaluationContext, TrackingEventDetails? trackingEventDetails)
16+
{
17+
this.EventName = eventName;
18+
this.EvaluationContext = evaluationContext;
19+
this.TrackingEventDetails = trackingEventDetails;
20+
}
21+
}
1022

1123
/// <summary>
1224
/// A test implementation of FeatureProvider for MultiProvider testing.

0 commit comments

Comments
 (0)