public void CommentMapperToDomainEntityTest() { GetCommentDto commentDto = new GetCommentDto { UserId = Guid.NewGuid(), CreatedOn = DateTime.Now, Id = Guid.NewGuid(), Text = "Test", Handle = "UserName" }; var comment = _mapper.ToDomainEntity(commentDto); Assert.AreEqual(commentDto.Handle, comment.CreatedBy); Assert.AreEqual(commentDto.CreatedOn, comment.CreatedOn); Assert.AreEqual(commentDto.Id, comment.Id); Assert.AreEqual(commentDto.Text, comment.Text); }