public void CreateDataHasChangedResponse_ReturnsPreconditionedFailedCode() { ETagResponseService service = GetService(); Microsoft.AspNetCore.Mvc.StatusCodeResult response = service.CreateDataHasChangedResponse(); Assert.AreEqual((int)HttpStatusCode.PreconditionFailed, response.StatusCode); }
public void CreateDataHasNotChangedResponse_ReturnsNotModifiedCode() { ETagResponseService service = GetService(); Microsoft.AspNetCore.Mvc.StatusCodeResult response = service.CreateDataHasNotChangedResponse(); Assert.AreEqual((int)HttpStatusCode.NotModified, response.StatusCode); }