示例#1
0
        public async Task OnActionExecutingAsyncValid()
        {
            var validAttr = new ValidateModelStateAttribute();
            var aec       = MockHelpers.ActionExecutingContext();
            await validAttr.OnActionExecutionAsync(aec, null);

            Assert.True(true);
        }
示例#2
0
        public void OnActionExecutingValid()
        {
            var validAttr = new ValidateModelStateAttribute();
            var aec       = MockHelpers.ActionExecutingContext();

            validAttr.OnActionExecuting(aec);
            Assert.True(true);
        }