public void RenderMessage_AddsActionField()
        {
            var subj            = new ProductClickEvent("DKK", "mylist", new ProductFieldObject("pid", "pname"));
            var renderedMessage = subj.RenderMessage();

            Assert.That(renderedMessage, Is.StringContaining("'actionField': {'list': 'mylist'}"));
        }
        public void RenderMessage_AddsProducts()
        {
            var subj            = new ProductClickEvent("DKK", "mylist", new ProductFieldObject("pid", "pname"));
            var renderedMessage = subj.RenderMessage();

            Assert.That(renderedMessage, Is.StringContaining("'products': [{'id': 'pid','name': 'pname'}]"));
        }
        public void RenderMessage_AddsCurrency()
        {
            var subj            = new ProductClickEvent("DKK", "mylist", new ProductFieldObject("pid", "pname"));
            var renderedMessage = subj.RenderMessage();

            Assert.That(renderedMessage, Is.StringContaining("'currencyCode': 'DKK'"));
        }