public void MediaCategoryController_AddGet_ShouldReturnAMediaCategory() { var mediaCategory = A.Dummy <MediaCategory>(); A.CallTo(() => _mediaCategoryAdminService.GetNewCategoryModel(123)).Returns(mediaCategory); var actionResult = _mediaCategoryController.Add_Get(123); actionResult.Model.Should().Be(mediaCategory); }
public void MediaCategoryController_AddGet_ShouldReturnAMediaCategory() { var actionResult = _mediaCategoryController.Add_Get(null) as ViewResult; actionResult.Model.Should().BeOfType <MediaCategory>(); }