Skip to content

Commit a6abb60

Browse files
revert: modifiers on DecisionService & test changes
1 parent 3dc6f0a commit a6abb60

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

OptimizelySDK.Tests/DecisionServiceTest.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,12 @@ public void TestGetVariationLogsErrorWhenUserProfileMapItsNull()
160160
var variationResult = decisionService.GetVariation(experiment,
161161
OptimizelyUserContextMock.Object, ProjectConfig, options);
162162
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.");
164164
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],
165169
"User \"genericUserId\" does not meet conditions to be in experiment \"etag3\".");
166170
}
167171

OptimizelySDK/Bucketing/DecisionService.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ public class DecisionService
4141
public const string LOGGING_KEY_TYPE_RULE = "rule";
4242

4343
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;
4747

4848
/// <summary>
4949
/// Associative array of user IDs to an associative array

0 commit comments

Comments
 (0)