コード例 #1
0
        public void SetUp()
        {
            MixpanelConfig.Global.Reset();

            _urls   = new List <string>();
            _client = new MixpanelClient(Token, GetConfig());

            _mixpanelMethods = new List <Action>
            {
                () => _client.Track(Event, DistinctId, DictionaryWithStringProperty),
                () => _client.Alias(DistinctId, Alias),
                () => _client.PeopleSet(DistinctId, DictionaryWithStringProperty),
                () => _client.PeopleSetOnce(DistinctId, DictionaryWithStringProperty),
                () => _client.PeopleAdd(DistinctId, DictionaryWithStringProperty),
                () => _client.PeopleAppend(DistinctId, DictionaryWithStringProperty),
                () => _client.PeopleUnion(DistinctId, DictionaryWithStringProperty),
                () => _client.PeopleUnset(DistinctId, StringPropertyArray),
                () => _client.PeopleDelete(DistinctId),
                () => _client.PeopleTrackCharge(DistinctId, DecimalPropertyValue),
                () => _client.Send(new MixpanelMessage
                {
                    Kind = MessageKind.PeopleSet,
                    Data = DictionaryWithStringProperty
                }),
            };
        }