public void Can_set_client_context_id() { var options = new AnalyticsOptions(); options.ClientContextId("testing"); options.ClientContextId(Guid.NewGuid().ToString()); var formValues = options.GetFormValues(Statement); var contextId = formValues["client_context_id"].ToString(); Assert.NotEmpty(contextId); Assert.True(Guid.TryParse(contextId, out Guid result)); }
public void Request_auto_generates_context_and_request_Ids() { var options = new AnalyticsOptions(); options.ClientContextId(Guid.NewGuid().ToString()); var formValues = options.GetFormValues(Statement); var requestId = formValues["client_context_id"].ToString(); Assert.NotEmpty(requestId); }