File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -160,8 +160,12 @@ public void TestGetVariationLogsErrorWhenUserProfileMapItsNull()
160
160
var variationResult = decisionService . GetVariation ( experiment ,
161
161
OptimizelyUserContextMock . Object , ProjectConfig , options ) ;
162
162
Assert . AreEqual ( variationResult . DecisionReasons . ToReport ( true ) [ 0 ] ,
163
- "Audiences for experiment \" etag3 \" collectively evaluated to FALSE " ) ;
163
+ "We were unable to get a user profile map from the UserProfileService. " ) ;
164
164
Assert . AreEqual ( variationResult . DecisionReasons . ToReport ( true ) [ 1 ] ,
165
+ "No previously activated variation of experiment \" etag3\" for user \" genericUserId\" found in user profile." ) ;
166
+ Assert . AreEqual ( variationResult . DecisionReasons . ToReport ( true ) [ 2 ] ,
167
+ "Audiences for experiment \" etag3\" collectively evaluated to FALSE" ) ;
168
+ Assert . AreEqual ( variationResult . DecisionReasons . ToReport ( true ) [ 3 ] ,
165
169
"User \" genericUserId\" does not meet conditions to be in experiment \" etag3\" ." ) ;
166
170
}
167
171
Original file line number Diff line number Diff line change @@ -41,9 +41,9 @@ public class DecisionService
41
41
public const string LOGGING_KEY_TYPE_RULE = "rule" ;
42
42
43
43
private Bucketer Bucketer ;
44
- private readonly IErrorHandler ErrorHandler ;
45
- private static UserProfileService UserProfileService ;
46
- private readonly ILogger Logger ;
44
+ private IErrorHandler ErrorHandler ;
45
+ private UserProfileService UserProfileService ;
46
+ private ILogger Logger ;
47
47
48
48
/// <summary>
49
49
/// Associative array of user IDs to an associative array
You can’t perform that action at this time.
0 commit comments