Esempio n. 1
0
        public void CanEdit_WithNotExistingPublicationIdAndNotExistingUserId_ShouldReturnFalse()
        {
            // Arrange
            StarStuffDbContext db             = this.Database;
            CommentService     commentService = new CommentService(db);

            this.SeedCommanets(db);

            // Act
            bool result = commentService.CanEdit(11, 2);

            // Assert
            Assert.False(result);
        }