Exemplo n.º 1
0
        public void UpdateHTTPGet_ValidIdReturnsResultsView()
        {
            var       controller = new ResponseController(mockDal.Object);
            const int ValidId    = 1;

            var result = controller.PuzzleOneResult(ValidId) as ViewResult;

            Assert.IsNotNull(result);
            Assert.AreEqual("PuzzleOneResult", result.ViewName);

            var model = result.Model as Libs;

            Assert.IsNotNull(model);
            Assert.AreEqual(testLib.responseId, model.responseId);
            Assert.AreEqual(testLib.Name, model.Name);
            Assert.AreEqual(testLib.InputOne, model.InputOne);
            Assert.AreEqual(testLib.InputTwo, model.InputTwo);
            Assert.AreEqual(testLib.InputThree, model.InputThree);
            Assert.AreEqual(testLib.InputFour, model.InputFour);
            Assert.AreEqual(testLib.InputFive, model.InputFive);
        }