Exemplo n.º 1
0
        private static CustomResultInterceptor CreateSuccessInterceptor()
        {
            var interceptorResult = InterceptorResult.Success();
            var interceptor       = new CustomResultInterceptor(interceptorResult);

            return(interceptor);
        }
Exemplo n.º 2
0
        private static CustomResultInterceptor CreateFailInterceptor()
        {
            var interceptorResult = InterceptorResult.Fail(Message);
            var interceptor       = new CustomResultInterceptor(interceptorResult);

            return(interceptor);
        }