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); }
public StoryVoteFixture() { _vote = new StoryVote(); }