@@ -57,7 +57,7 @@ public void Initialize()
57
57
It . IsAny < string > ( ) , It . IsAny < string > ( ) , It . IsAny < UserAttributes > ( ) ) ) ;
58
58
59
59
EventBuilderMock . Setup ( b => b . CreateConversionEvent ( It . IsAny < ProjectConfig > ( ) , It . IsAny < string > ( ) ,
60
- It . IsAny < IEnumerable < Experiment > > ( ) , It . IsAny < string > ( ) , It . IsAny < UserAttributes > ( ) , It . IsAny < EventTags > ( ) ) ) ;
60
+ It . IsAny < Dictionary < string , Variation > > ( ) , It . IsAny < string > ( ) , It . IsAny < UserAttributes > ( ) , It . IsAny < EventTags > ( ) ) ) ;
61
61
62
62
Config = ProjectConfig . Create (
63
63
content : TestData . Datafile ,
@@ -499,7 +499,7 @@ public void TestTrackInvalidAttributes()
499
499
public void TestTrackNoAttributesNoEventValue ( )
500
500
{
501
501
EventBuilderMock . Setup ( b => b . CreateConversionEvent ( It . IsAny < ProjectConfig > ( ) , It . IsAny < string > ( ) ,
502
- It . IsAny < IEnumerable < Experiment > > ( ) , It . IsAny < string > ( ) , It . IsAny < UserAttributes > ( ) , It . IsAny < EventTags > ( ) ) )
502
+ It . IsAny < Dictionary < string , Variation > > ( ) , It . IsAny < string > ( ) , It . IsAny < UserAttributes > ( ) , It . IsAny < EventTags > ( ) ) )
503
503
. Returns ( new LogEvent ( "logx.optimizely.com/track" , OptimizelyHelper . SingleParameter ,
504
504
"POST" , new Dictionary < string , string > { } ) ) ;
505
505
@@ -519,7 +519,7 @@ public void TestTrackNoAttributesNoEventValue()
519
519
public void TestTrackWithAttributesNoEventValue ( )
520
520
{
521
521
EventBuilderMock . Setup ( b => b . CreateConversionEvent ( It . IsAny < ProjectConfig > ( ) , It . IsAny < string > ( ) ,
522
- It . IsAny < IEnumerable < Experiment > > ( ) , It . IsAny < string > ( ) , It . IsAny < UserAttributes > ( ) , It . IsAny < EventTags > ( ) ) )
522
+ It . IsAny < Dictionary < string , Variation > > ( ) , It . IsAny < string > ( ) , It . IsAny < UserAttributes > ( ) , It . IsAny < EventTags > ( ) ) )
523
523
. Returns ( new LogEvent ( "logx.optimizely.com/track" , OptimizelyHelper . SingleParameter ,
524
524
"POST" , new Dictionary < string , string > { } ) ) ;
525
525
@@ -537,7 +537,7 @@ public void TestTrackWithAttributesNoEventValue()
537
537
public void TestTrackNoAttributesWithEventValue ( )
538
538
{
539
539
EventBuilderMock . Setup ( b => b . CreateConversionEvent ( It . IsAny < ProjectConfig > ( ) , It . IsAny < string > ( ) ,
540
- It . IsAny < IEnumerable < Experiment > > ( ) , It . IsAny < string > ( ) , It . IsAny < UserAttributes > ( ) , It . IsAny < EventTags > ( ) ) )
540
+ It . IsAny < Dictionary < string , Variation > > ( ) , It . IsAny < string > ( ) , It . IsAny < UserAttributes > ( ) , It . IsAny < EventTags > ( ) ) )
541
541
. Returns ( new LogEvent ( "logx.optimizely.com/track" , OptimizelyHelper . SingleParameter ,
542
542
"POST" , new Dictionary < string , string > { } ) ) ;
543
543
@@ -566,7 +566,7 @@ public void TestTrackWithAttributesWithEventValue()
566
566
} ;
567
567
568
568
EventBuilderMock . Setup ( b => b . CreateConversionEvent ( It . IsAny < ProjectConfig > ( ) , It . IsAny < string > ( ) ,
569
- It . IsAny < IEnumerable < Experiment > > ( ) , It . IsAny < string > ( ) , It . IsAny < UserAttributes > ( ) , It . IsAny < EventTags > ( ) ) )
569
+ It . IsAny < Dictionary < string , Variation > > ( ) , It . IsAny < string > ( ) , It . IsAny < UserAttributes > ( ) , It . IsAny < EventTags > ( ) ) )
570
570
. Returns ( new LogEvent ( "logx.optimizely.com/track" , OptimizelyHelper . SingleParameter ,
571
571
"POST" , new Dictionary < string , string > { } ) ) ;
572
572
@@ -589,7 +589,7 @@ public void TestTrackWithAttributesWithEventValue()
589
589
public void TestTrackWithNullAttributesWithNullEventValue ( )
590
590
{
591
591
EventBuilderMock . Setup ( b => b . CreateConversionEvent ( It . IsAny < ProjectConfig > ( ) , It . IsAny < string > ( ) ,
592
- It . IsAny < IEnumerable < Experiment > > ( ) , It . IsAny < string > ( ) , It . IsAny < UserAttributes > ( ) , It . IsAny < EventTags > ( ) ) )
592
+ It . IsAny < Dictionary < string , Variation > > ( ) , It . IsAny < string > ( ) , It . IsAny < UserAttributes > ( ) , It . IsAny < EventTags > ( ) ) )
593
593
. Returns ( new LogEvent ( "logx.optimizely.com/track" , OptimizelyHelper . SingleParameter ,
594
594
"POST" , new Dictionary < string , string > { } ) ) ;
595
595
@@ -652,7 +652,7 @@ public void TestInvalidDispatchImpressionEvent()
652
652
public void TestInvalidDispatchConversionEvent ( )
653
653
{
654
654
EventBuilderMock . Setup ( b => b . CreateConversionEvent ( It . IsAny < ProjectConfig > ( ) , It . IsAny < string > ( ) ,
655
- It . IsAny < IEnumerable < Experiment > > ( ) , It . IsAny < string > ( ) , It . IsAny < UserAttributes > ( ) , It . IsAny < EventTags > ( ) ) )
655
+ It . IsAny < Dictionary < string , Variation > > ( ) , It . IsAny < string > ( ) , It . IsAny < UserAttributes > ( ) , It . IsAny < EventTags > ( ) ) )
656
656
. Returns ( new LogEvent ( "logx.optimizely.com/track" , OptimizelyHelper . SingleParameter ,
657
657
"POST" , new Dictionary < string , string > { } ) ) ;
658
658
@@ -676,7 +676,7 @@ public void TestInvalidDispatchConversionEvent()
676
676
public void TestTrackNoAttributesWithInvalidEventValue ( )
677
677
{
678
678
EventBuilderMock . Setup ( b => b . CreateConversionEvent ( It . IsAny < ProjectConfig > ( ) , It . IsAny < string > ( ) ,
679
- It . IsAny < IEnumerable < Experiment > > ( ) , It . IsAny < string > ( ) , It . IsAny < UserAttributes > ( ) , It . IsAny < EventTags > ( ) ) )
679
+ It . IsAny < Dictionary < string , Variation > > ( ) , It . IsAny < string > ( ) , It . IsAny < UserAttributes > ( ) , It . IsAny < EventTags > ( ) ) )
680
680
. Returns ( new LogEvent ( "logx.optimizely.com/track" , OptimizelyHelper . SingleParameter ,
681
681
"POST" , new Dictionary < string , string > { } ) ) ;
682
682
@@ -697,7 +697,7 @@ public void TestTrackNoAttributesWithDeprecatedEventValue()
697
697
* In this case, int value can't be casted implicitly into Dictionary */
698
698
699
699
EventBuilderMock . Setup ( b => b . CreateConversionEvent ( It . IsAny < ProjectConfig > ( ) , It . IsAny < string > ( ) ,
700
- It . IsAny < IEnumerable < Experiment > > ( ) , It . IsAny < string > ( ) , It . IsAny < UserAttributes > ( ) , It . IsAny < EventTags > ( ) ) )
700
+ It . IsAny < Dictionary < string , Variation > > ( ) , It . IsAny < string > ( ) , It . IsAny < UserAttributes > ( ) , It . IsAny < EventTags > ( ) ) )
701
701
. Returns ( new LogEvent ( "logx.optimizely.com/track" , OptimizelyHelper . SingleParameter ,
702
702
"POST" , new Dictionary < string , string > { } ) ) ;
703
703
@@ -1036,7 +1036,7 @@ public void TestTrackNoAttributesNoEventValueAfterSetForcedVariation()
1036
1036
} ;
1037
1037
1038
1038
EventBuilderMock . Setup ( b => b . CreateConversionEvent ( It . IsAny < ProjectConfig > ( ) , It . IsAny < string > ( ) ,
1039
- It . IsAny < IEnumerable < Experiment > > ( ) , It . IsAny < string > ( ) , It . IsAny < UserAttributes > ( ) , It . IsAny < EventTags > ( ) ) )
1039
+ It . IsAny < Dictionary < string , Variation > > ( ) , It . IsAny < string > ( ) , It . IsAny < UserAttributes > ( ) , It . IsAny < EventTags > ( ) ) )
1040
1040
. Returns ( new LogEvent ( "logx.optimizely.com/track" , parameters , "POST" , new Dictionary < string , string > { } ) ) ;
1041
1041
1042
1042
var optly = Helper . CreatePrivateOptimizely ( ) ;
0 commit comments