コード例 #1
0
        public void AutoMapAttribute_OnActionExecuted_Controller_Not_Implementing_IModelMapperController()
        {
            // arrange
            var user          = new User();
            var userView      = new UserViewModel();
            var filterContext = new ActionExecutedContext();

            // act
            _sut.OnActionExecuted(filterContext);

            // assert
            _mapperStub.AssertWasNotCalled(
                x => x.Map(null, null, null),
                x => x.IgnoreArguments()
                );
        }