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

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

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