Ejemplo n.º 1
0
        public static ValidationMessageCollection ValidateRequest(IAssertable assertable, params object[] dependentServices)
        {
            if (assertable == null)
                throw new ArgumentNullException(nameof(assertable), "request is null.");

            return assertable.Assert(dependentServices);
        }
Ejemplo n.º 2
0
        public static ValidationMessageCollection ValidateRequest(IAssertable assertable, params object[] dependentServices)
        {
            if (assertable == null)
            {
                throw new ArgumentNullException(nameof(assertable), "request is null.");
            }

            return(assertable.Assert(dependentServices));
        }
Ejemplo n.º 3
0
 private Exception DoAssert(IAssertable assert)
 {
     try
     {
         assert.Assert();
         return(null);
     }
     catch (Exception e)
     {
         return(e);
     }
 }