示例#1
0
        public void GetAllVideo()
        {
            var mockVideo = new Mock <IVideoLogic>(MockBehavior.Strict);

            mockVideo.Setup(u => u.GetAll()).Returns(videoList);
            var trackController = new VideoController(mockVideo.Object);

            Assert.AreEqual(new OkObjectResult("").ToString(), trackController.GetAll().ToString());
        }