public void ConvertTextActivityWithCallbackData_Success()
        {
            var callbackData = new Dictionary <string, string>
            {
                { "BoolProperty", "true" },
                { "NumberProperty", "12" },
                { "StringProperty", "string" },
                { "DateProperty", DateTimeOffset.MinValue.ToString() }
            };

            _activity.Text = "Activity with callback data";
            _activity.AddInfobipCallbackData(callbackData);

            var message = ToWhatsAppInfobipConverter.Convert(_activity, TestOptions.Get()).Single();

            Assert.Equal(message.CallbackData, JsonConvert.SerializeObject(callbackData));
        }
        private static void HandleCallbackData(InfobipWhatsAppIncomingResult response, Activity activity)
        {
            if (string.IsNullOrWhiteSpace(response.CallbackData))
            {
                return;
            }
            var serialized = JsonConvert.DeserializeObject <Dictionary <string, string> >(response.CallbackData);

            activity.AddInfobipCallbackData(serialized);
        }