Beispiel #1
0
        private static SpamCheckContent CreateSpamCheckContent(IUser user, string userIpAddress, string userAgent, string url, string referer, string content, string type, NameValueCollection serverVariables)
        {
            SpamCheckContent checkContentToCheck = new SpamCheckContent
            {
                UserIPAddress = userIpAddress,
                UserAgent     = userAgent,
                UserName      = user.UserName,
                Url           = url,
                UrlReferer    = referer,
                Content       = content,
                ContentType   = type
            };

            if (serverVariables != null)
            {
                checkContentToCheck.Extra.Add(serverVariables);
            }

            return(checkContentToCheck);
        }
 public SpamCheckContentFixture()
 {
     _spamCheckContent = new SpamCheckContent();
 }