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