/// <summary>
        /// Total clicks value must not be higher then the count of subscribers.
        /// </summary>
        private void GenerateClickedLinksToIssue(int issueId, string linkTarget, int totalClicks, int uniqueClicks, IList <string> subscribersEmails)
        {
            var link = new LinkInfo
            {
                LinkIssueID     = issueId,
                LinkTarget      = linkTarget,
                LinkDescription = "Try Ethiopian Coffee"
            };

            LinkInfoProvider.SetLinkInfo(link);

            for (var i = 0; i < totalClicks; i++)
            {
                // Simulate non-unique clicks
                var subscriberIndex = (i <= (totalClicks - uniqueClicks)) ? 0 : i;

                var clickedLink = new ClickedLinkInfo
                {
                    ClickedLinkEmail            = subscribersEmails[subscriberIndex],
                    ClickedLinkTime             = GetRandomDate(DateTime.Now.AddMonths(-1), DateTime.Now.AddDays(-1)),
                    ClickedLinkNewsletterLinkID = link.LinkID,
                };
                ClickedLinkInfoProvider.SetClickedLinkInfo(clickedLink);
            }
        }
        private void GenerateClickedLinksToIssue(
            int issueId,
            string linkTarget,
            int totalClicks,
            int uniqueClicks,
            IList <string> subscribersEmails)
        {
            var linkObj = new LinkInfo
            {
                LinkIssueID     = issueId,
                LinkTarget      = linkTarget,
                LinkDescription = "Try Ethiopian Coffee"
            };

            LinkInfoProvider.SetLinkInfo(linkObj);
            for (var index1 = 0; index1 < totalClicks; ++index1)
            {
                var index2 = index1 <= totalClicks - uniqueClicks ? 0 : index1;
                ClickedLinkInfoProvider.SetClickedLinkInfo(new ClickedLinkInfo
                {
                    ClickedLinkEmail            = subscribersEmails[index2],
                    ClickedLinkTime             = GetRandomDate(DateTime.Now.AddMonths(-1), DateTime.Now.AddDays(-1.0)),
                    ClickedLinkNewsletterLinkID = linkObj.LinkID
                });
            }
        }