Ejemplo n.º 1
0
        public void GivenANewComment_ShouldAddNewCommentAndUpdateViewCounts()
        {
            _promotion.AddComment(new Comment("anoterUser", new System.Guid(), "Nice one"));

            Assert.AreEqual(1, _promotion.CommentsCount);
            Assert.AreEqual("Nice one", _promotion.Comments.FirstOrDefault().Text);
        }