public void IsValidForRequestThrowsIfControllerContextIsNull()
 {
     HttpVerbAttributeHelper.TestHttpVerbAttributeNullControllerContext <HttpPatchAttribute>();
 }
 public void IsValidForRequestReturnsFalseIfHttpVerbIsNotPatch()
 {
     HttpVerbAttributeHelper.TestHttpVerbAttributeWithInvalidVerb <HttpPatchAttribute>("GET");
 }
Exemplo n.º 3
0
 public void IsValidForRequestReturnsTrueIfHttpVerbIsOptions()
 {
     HttpVerbAttributeHelper.TestHttpVerbAttributeWithValidVerb <HttpOptionsAttribute>("OPTIONS");
 }
 public void IsValidForRequestReturnsTrueIfHttpVerbIsPatch()
 {
     HttpVerbAttributeHelper.TestHttpVerbAttributeWithValidVerb <HttpPatchAttribute>("PATCH");
 }
 public void IsValidForRequestReturnsTrueIfHttpVerbIsPost()
 {
     HttpVerbAttributeHelper.TestHttpVerbAttributeWithValidVerb <HttpDeleteAttribute>("DELETE");
 }
 public void IsValidForRequestReturnsFalseIfHttpVerbIsNotPost()
 {
     HttpVerbAttributeHelper.TestHttpVerbAttributeWithInvalidVerb <HttpDeleteAttribute>("POST");
 }
 public void IsValidForRequestReturnsFalseIfHttpVerbIsNotPost()
 {
     HttpVerbAttributeHelper.TestHttpVerbAttributeWithInvalidVerb <HttpPostAttribute>("DELETE");
 }
 public void IsValidForRequestReturnsTrueIfHttpVerbIsPost()
 {
     HttpVerbAttributeHelper.TestHttpVerbAttributeWithValidVerb <HttpPostAttribute>("POST");
 }
Exemplo n.º 9
0
 public void IsValidForRequestReturnsTrueIfHttpVerbIsHead()
 {
     HttpVerbAttributeHelper.TestHttpVerbAttributeWithValidVerb <HttpHeadAttribute>("HEAD");
 }