Example #1
0
        private static CustomResultInterceptor CreateSuccessInterceptor()
        {
            var interceptorResult = InterceptorResult.Success();
            var interceptor       = new CustomResultInterceptor(interceptorResult);

            return(interceptor);
        }
Example #2
0
        public void Success_HasNoMessage()
        {
            var result = InterceptorResult.Success();

            Assert.Null(result.Message);
        }
Example #3
0
        public void Success_HasSuccessTrue()
        {
            var result = InterceptorResult.Success();

            Assert.True(result.IsSuccess);
        }