Skip to content
Prev Previous commit
Next Next commit
refactor: Change TrackingInvocation from record to class for enhanced…
… flexibility

Signed-off-by: André Silva <[email protected]>
  • Loading branch information
askpt committed Oct 29, 2025
commit 8a51ae8d205831913883d27c9748f05c78db95b0
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,19 @@ namespace OpenFeature.Providers.MultiProvider.Tests.Utils;
/// <summary>
/// Represents a tracking invocation for testing purposes.
/// </summary>
public record TrackingInvocation(string EventName, EvaluationContext? EvaluationContext, TrackingEventDetails? TrackingEventDetails);
public class TrackingInvocation
{
public string EventName { get; }
public EvaluationContext? EvaluationContext { get; }
public TrackingEventDetails? TrackingEventDetails { get; }

public TrackingInvocation(string eventName, EvaluationContext? evaluationContext, TrackingEventDetails? trackingEventDetails)
{
this.EventName = eventName;
this.EvaluationContext = evaluationContext;
this.TrackingEventDetails = trackingEventDetails;
}
}

/// <summary>
/// A test implementation of FeatureProvider for MultiProvider testing.
Expand Down