/// <summary>
 /// Constructs a new instance of a ContentfulException with the given HTTP error code and error details
 /// </summary>
 /// <param name="errorCode">The integer value of the HTTP Response code</param>
 /// <param name="jsonResponse">A JSON representation of the error thrown by the Contentful API</param>
 public ContentfulException(int errorCode, string jsonResponse)
 {
     ErrorCode = errorCode;
     ErrorDetails = JsonConvert.DeserializeObject<ErrorResponse>(jsonResponse);
 }
 public void TestCanSetSystemProperties()
 {
     var systemProperty = new SystemProperties();
     var errorResponse = new ErrorResponse {SystemProperties = systemProperty};
     Assert.AreEqual(systemProperty, errorResponse.SystemProperties);
 }
 public void TestCanSetMessage()
 {
     var errorResponse = new ErrorResponse {Message = "Test"};
     Assert.AreEqual("Test", errorResponse.Message);
 }
 public void TestCanSetRequestId()
 {
     var errorResponse = new ErrorResponse {RequestId = "15"};
     Assert.AreEqual("15", errorResponse.RequestId);
 }