Beispiel #1
0
        public IMarkAsSpam CreateMarkAsSpam(IStory forStory, DateTime at, IUser byUser, string fromIpAddress)
        {
            PerformCheck(forStory, at, byUser, fromIpAddress);

            var spamStory = new StoryMarkAsSpam
            {
                Story     = (Story)forStory,
                User      = (User)byUser,
                IPAddress = fromIpAddress,
                Timestamp = at
            };

            return(spamStory);
        }
 public MarkAsSpamFixture()
 {
     _markAsSpam = new StoryMarkAsSpam();
 }