public static TflbadResponseModel BadMock() { TflbadResponseModel model = new TflbadResponseModel { type = "Tfl.Api.Presentation.Entities.ApiError, Tfl.Api.Presentation.Entities", timestampUtc = DateTime.Now.ToString(), exceptionType = "EntityNotFoundException", httpStatusCode = "404", httpStatus = "NotFound", relativeUri = "/Road/A233", message = "The following road id is not recognised: A233" }; return(model); }
/// <summary> /// Returns a bad response (404) /// </summary> /// <param name="id"></param> /// <returns></returns> public string GetBad(string id) { TflbadResponseModel model = MockModel.BadMock(); return(JsonConvert.SerializeObject(model)); }