public void UpdateGenre_GetValidItem_ReturneViewResult() { _mockGenre.Setup(a => a.AddEntity(It.IsAny <GenreDTO>())).Verifiable(); _mockGenre.Setup(a => a.GetAll(true)).Returns(new List <GenreDTO>()).Verifiable(); _mockGenre.Setup(a => a.GetByName("name")); var res = _controller.Update(new CreateGenreViewModel()); Assert.AreEqual(typeof(RedirectToRouteResult), res.GetType()); }