Exemple #1
0
 public void IssueSeverity_Is_Fatal_When_HttpStatusCode_Is_InternalServerError_Test()
 {
     Assert.AreEqual(OperationOutcome.IssueSeverity.Fatal, OperationOutcomeExtensions.IssueSeverityOf(System.Net.HttpStatusCode.InternalServerError));
 }
Exemple #2
0
 public void IssueSeverity_Is_Warning_When_HttpStatusCode_Is_MovedPermanently_Test()
 {
     Assert.AreEqual(OperationOutcome.IssueSeverity.Warning, OperationOutcomeExtensions.IssueSeverityOf(System.Net.HttpStatusCode.MovedPermanently));
 }
Exemple #3
0
 public void IssueSeverity_Is_Error_When_HttpStatusCode_Is_BadRequest_Test()
 {
     Assert.AreEqual(OperationOutcome.IssueSeverity.Error, OperationOutcomeExtensions.IssueSeverityOf(System.Net.HttpStatusCode.BadRequest));
 }
Exemple #4
0
 public void IssueSeverity_Is_Information_When_HttpStatusCode_Is_Created_Test()
 {
     Assert.AreEqual(OperationOutcome.IssueSeverity.Information, OperationOutcomeExtensions.IssueSeverityOf(System.Net.HttpStatusCode.Created));
 }