コード例 #1
0
 public void IsValidForRequestThrowsIfControllerContextIsNull()
 {
     HttpVerbAttributeHelper.TestHttpVerbAttributeNullControllerContext <HttpPatchAttribute>();
 }
コード例 #2
0
 public void IsValidForRequestReturnsFalseIfHttpVerbIsNotPatch()
 {
     HttpVerbAttributeHelper.TestHttpVerbAttributeWithInvalidVerb <HttpPatchAttribute>("GET");
 }
コード例 #3
0
 public void IsValidForRequestReturnsTrueIfHttpVerbIsOptions()
 {
     HttpVerbAttributeHelper.TestHttpVerbAttributeWithValidVerb <HttpOptionsAttribute>("OPTIONS");
 }
コード例 #4
0
 public void IsValidForRequestReturnsTrueIfHttpVerbIsPatch()
 {
     HttpVerbAttributeHelper.TestHttpVerbAttributeWithValidVerb <HttpPatchAttribute>("PATCH");
 }
コード例 #5
0
 public void IsValidForRequestReturnsTrueIfHttpVerbIsPost()
 {
     HttpVerbAttributeHelper.TestHttpVerbAttributeWithValidVerb <HttpDeleteAttribute>("DELETE");
 }
コード例 #6
0
 public void IsValidForRequestReturnsFalseIfHttpVerbIsNotPost()
 {
     HttpVerbAttributeHelper.TestHttpVerbAttributeWithInvalidVerb <HttpDeleteAttribute>("POST");
 }
コード例 #7
0
 public void IsValidForRequestReturnsFalseIfHttpVerbIsNotPost()
 {
     HttpVerbAttributeHelper.TestHttpVerbAttributeWithInvalidVerb <HttpPostAttribute>("DELETE");
 }
コード例 #8
0
 public void IsValidForRequestReturnsTrueIfHttpVerbIsPost()
 {
     HttpVerbAttributeHelper.TestHttpVerbAttributeWithValidVerb <HttpPostAttribute>("POST");
 }
コード例 #9
0
 public void IsValidForRequestReturnsTrueIfHttpVerbIsHead()
 {
     HttpVerbAttributeHelper.TestHttpVerbAttributeWithValidVerb <HttpHeadAttribute>("HEAD");
 }