コード例 #1
0
        public void UpdatePublisher_GetValidItem_ReturneViewResult()
        {
            _mockGame.Setup(a => a.AddEntity(It.IsAny <GameDTO>())).Verifiable();
            _mockPublisher.Setup(a => a.GetAll(true)).Returns(new List <PublisherDTO>()).Verifiable();
            _mockPublisher.Setup(a => a.GetByName("name"));

            var res = _controller.Update(new CreatePublisherViewModel());

            Assert.AreEqual(typeof(RedirectToRouteResult), res.GetType());
        }