예제 #1
0
        public IVote CreateStoryVote(IStory forStory, DateTime at, IUser byUser, string fromIpAddress)
        {
            PerformCheck(forStory, at, byUser, fromIpAddress);

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

            return(vote);
        }
예제 #2
0
 public StoryVoteFixture()
 {
     _vote = new StoryVote();
 }