protected void ForumWith_Topics(int count) { Forum = ForumFixtures.ForumWithNoTopics(1); for (var i = 0; i < count; i++) { Forum.Add(TopicFixtures.TopicWithNoPostsAndNoAttachments(i)); } }
private void ForumIs_(string action) { switch (action) { case Loaded: _forum = Session.Load<Forum>(_forumId); break; case Saved: Session.SaveOrUpdate(_forum); Assert.That(Session.IsDirty()); Session.Flush(); _forumId = _forum.Id; break; case Modified: _forum.Name = string.Format("{0} {1}", _forum.Name, Modified); break; case Deleted: Session.Delete(_forum); Assert.That(Session.IsDirty()); Session.Flush(); break; } }
private void ForumWith_Topics(int count) { _forum = ForumFixtures.ForumWithNoTopics(1); if (count < 1) return; _TopicsAddedToForum(count); }
public virtual bool Equals(Forum other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; return base.Equals(other) && Equals(other.Name, Name); }