public void Can_set_client_context_id() { var request = new AnalyticsRequest(Statement); request.WithClientContextId("testing"); request.WithClientContextId(Guid.NewGuid().ToString()); var formValues = request.GetFormValues(); 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 request = new AnalyticsRequest(Statement); request.WithClientContextId(Guid.NewGuid().ToString()); var formValues = request.GetFormValues(); var requestId = formValues["client_context_id"].ToString(); Assert.NotEmpty(requestId); }