示例#1
0
        public void ReturnDeleteView_When_PassedValidIdTo_DeleteQuest()
        {
            _mockQuestDao.Setup(x => x.FindOneRecordBy(It.IsAny <int>())).Returns(new Quest()
            {
                Id = 1
            });

            var actionResult = _sutController.DeleteQuest(1) as ViewResult;

            Assert.NotNull(actionResult);
            Assert.Equal("DeleteQuest", actionResult.ViewName);
        }