public static void VerifyMvcViaPost <ControllerUnderTest, ActionParameter>(Expression <Func <ControllerUnderTest, Func <ActionParameter, ActionResult> > > actionName, NameValueCollection nameValueCollectionPostData)
            where ControllerUnderTest : IController
        {
            var    className = ReflectionUtility.GetControllerName <ControllerUnderTest>();
            string action    = ReflectionUtility.GetMethodName(actionName.Body);

            VerifyMvcViaPost <ActionParameter>(className, action, typeof(ControllerUnderTest), nameValueCollectionPostData);
        }
Example #2
0
 public static void VerifyMvcPage <ControllerUnderTest>(
     Expression <Func <ControllerUnderTest, Func <ActionResult> > > actionName, Func <string, string> scrubber = null)
     where ControllerUnderTest : TestableControllerBase
 {
     VerifyMvcUrl(ReflectionUtility.GetControllerName <ControllerUnderTest>(),
                  ControllerUtilities.GetMethodName(actionName.Body), GetFilePathasQueryString <ControllerUnderTest>(),
                  scrubber);
 }