public void Test_CommentsAttachedToGame_Return_Right_Object() { //arrange CommentService servise = new CommentService(_unitOfWork.Object); //act List<CommentDTO> commentsList = servise.CommentsAttachedToGame("me3").ToList (); //assert Assert.AreEqual(3, commentsList.Count); Assert.AreEqual(0, commentsList[0].CommentId); Assert.AreEqual(1, commentsList[1].CommentId); Assert.AreEqual(2, commentsList[2].CommentId); }
public void Test_CommentsAttachedToGame_Key_Is_Null() { //arrange CommentService servise = new CommentService(_unitOfWork.Object); //act IEnumerable<CommentDTO> commentsList = servise.CommentsAttachedToGame(null); }