Skip to content

[FSSDK-11463] C# - Add SDK Multi-Region Support for Data Hosting #383

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions OptimizelySDK.Tests/EventTests/EventBuilderTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public void TestCreateImpressionEventNoAttributes()
{ "anonymize_ip", false },
};

var expectedLogEvent = new LogEvent("https://logx.optimizely.com/v1/events",
var expectedLogEvent = new LogEvent(EventFactory.EventEndpoints["US"],
payloadParams,
"POST",
new Dictionary<string, string>
Expand Down Expand Up @@ -207,7 +207,7 @@ public void TestCreateImpressionEventWithAttributes()
{ "anonymize_ip", false },
};

var expectedLogEvent = new LogEvent("https://logx.optimizely.com/v1/events",
var expectedLogEvent = new LogEvent(EventFactory.EventEndpoints["US"],
payloadParams,
"POST",
new Dictionary<string, string>
Expand Down Expand Up @@ -327,7 +327,7 @@ public void TestCreateImpressionEventWithTypedAttributes()
{ "anonymize_ip", false },
};

var expectedLogEvent = new LogEvent("https://logx.optimizely.com/v1/events",
var expectedLogEvent = new LogEvent(EventFactory.EventEndpoints["US"],
payloadParams,
"POST",
new Dictionary<string, string>
Expand Down Expand Up @@ -441,7 +441,7 @@ public void TestCreateImpressionEventRemovesInvalidAttributesFromPayload()
{ "anonymize_ip", false },
};

var expectedLogEvent = new LogEvent("https://logx.optimizely.com/v1/events",
var expectedLogEvent = new LogEvent(EventFactory.EventEndpoints["US"],
payloadParams,
"POST",
new Dictionary<string, string>
Expand Down Expand Up @@ -531,7 +531,7 @@ public void TestCreateConversionEventNoAttributesNoValue()
};

var expectedEvent = new LogEvent(
"https://logx.optimizely.com/v1/events",
EventFactory.EventEndpoints["US"],
payloadParams,
"POST",
new Dictionary<string, string>
Expand Down Expand Up @@ -617,7 +617,7 @@ public void TestCreateConversionEventWithAttributesNoValue()
};

var expectedEvent = new LogEvent(
"https://logx.optimizely.com/v1/events",
EventFactory.EventEndpoints["US"],
payloadParams,
"POST",
new Dictionary<string, string>
Expand Down Expand Up @@ -709,7 +709,7 @@ public void TestCreateConversionEventNoAttributesWithValue()
};

var expectedEvent = new LogEvent(
"https://logx.optimizely.com/v1/events",
EventFactory.EventEndpoints["US"],
payloadParams,
"POST",
new Dictionary<string, string>
Expand Down Expand Up @@ -809,7 +809,7 @@ public void TestCreateConversionEventWithAttributesWithValue()
};

var expectedEvent = new LogEvent(
"https://logx.optimizely.com/v1/events",
EventFactory.EventEndpoints["US"],
payloadParams,
"POST",
new Dictionary<string, string>
Expand Down Expand Up @@ -909,7 +909,7 @@ public void TestCreateConversionEventNoAttributesWithInvalidValue()
};

var expectedEvent = new LogEvent(
"https://logx.optimizely.com/v1/events",
EventFactory.EventEndpoints["US"],
payloadParams,
"POST",
new Dictionary<string, string>
Expand Down Expand Up @@ -1003,7 +1003,7 @@ public void TestConversionEventWithNumericTag()
};

var expectedEvent = new LogEvent(
"https://logx.optimizely.com/v1/events",
EventFactory.EventEndpoints["US"],
payloadParams,
"POST",
new Dictionary<string, string>
Expand Down Expand Up @@ -1096,7 +1096,7 @@ public void TestConversionEventWithFalsyNumericAndRevenueValues()
};

var expectedEvent = new LogEvent(
"https://logx.optimizely.com/v1/events",
EventFactory.EventEndpoints["US"],
payloadParams,
"POST",
new Dictionary<string, string>
Expand Down Expand Up @@ -1189,7 +1189,7 @@ public void TestConversionEventWithNumericValue1()
};

var expectedEvent = new LogEvent(
"https://logx.optimizely.com/v1/events",
EventFactory.EventEndpoints["US"],
payloadParams,
"POST",
new Dictionary<string, string>
Expand Down Expand Up @@ -1282,7 +1282,7 @@ public void TestConversionEventWithRevenueValue1()
};

var expectedEvent = new LogEvent(
"https://logx.optimizely.com/v1/events",
EventFactory.EventEndpoints["US"],
payloadParams,
"POST",
new Dictionary<string, string>
Expand Down Expand Up @@ -1381,7 +1381,7 @@ public void TestCreateConversionEventWithBucketingIDAttribute()
};

var expectedEvent = new LogEvent(
"https://logx.optimizely.com/v1/events",
EventFactory.EventEndpoints["US"],
payloadParams,
"POST",
new Dictionary<string, string>
Expand Down Expand Up @@ -1487,7 +1487,7 @@ public void TestCreateImpressionEventWithBucketingIDAttribute()
{ "anonymize_ip", false },
};

var expectedLogEvent = new LogEvent("https://logx.optimizely.com/v1/events",
var expectedLogEvent = new LogEvent(EventFactory.EventEndpoints["US"],
payloadParams,
"POST",
new Dictionary<string, string>
Expand Down Expand Up @@ -1587,7 +1587,7 @@ public void TestCreateImpressionEventWhenBotFilteringIsProvidedInDatafile()
{ "anonymize_ip", false },
};

var expectedLogEvent = new LogEvent("https://logx.optimizely.com/v1/events",
var expectedLogEvent = new LogEvent(EventFactory.EventEndpoints["US"],
payloadParams,
"POST",
new Dictionary<string, string>
Expand Down Expand Up @@ -1680,7 +1680,7 @@ public void TestCreateImpressionEventWhenBotFilteringIsNotProvidedInDatafile()
{ "anonymize_ip", false },
};

var expectedLogEvent = new LogEvent("https://logx.optimizely.com/v1/events",
var expectedLogEvent = new LogEvent(EventFactory.EventEndpoints["US"],
payloadParams,
"POST",
new Dictionary<string, string>
Expand Down Expand Up @@ -1770,7 +1770,7 @@ public void TestCreateConversionEventWhenBotFilteringIsProvidedInDatafile()
};

var expectedEvent = new LogEvent(
"https://logx.optimizely.com/v1/events",
EventFactory.EventEndpoints["US"],
payloadParams,
"POST",
new Dictionary<string, string>
Expand Down Expand Up @@ -1856,7 +1856,7 @@ public void TestCreateConversionEventWhenBotFilteringIsNotProvidedInDatafile()
};

var expectedEvent = new LogEvent(
"https://logx.optimizely.com/v1/events",
EventFactory.EventEndpoints["US"],
payloadParams,
"POST",
new Dictionary<string, string>
Expand Down Expand Up @@ -1989,7 +1989,7 @@ public void TestCreateConversionEventWhenEventUsedInMultipleExp()


var expectedLogEvent = new LogEvent(
"https://logx.optimizely.com/v1/events",
EventFactory.EventEndpoints["US"],
payloadParams,
"POST",
new Dictionary<string, string>
Expand Down Expand Up @@ -2082,7 +2082,7 @@ public void TestCreateConversionEventRemovesInvalidAttributesFromPayload()
};

var expectedEvent = new LogEvent(
"https://logx.optimizely.com/v1/events",
EventFactory.EventEndpoints["US"],
payloadParams,
"POST",
new Dictionary<string, string>
Expand Down
Loading
Loading