public LightstoneConsumerSpecificationsResponse Default() { var result = new LightstoneConsumerSpecificationsResponse(new List<IRespondWithRepairData>() { new RepairDataResponse("", "", 0, "", "") }); result.AddResponseState(DataProviderResponseState.NoRecords); return result; }
public void Transform() { var repairData = JsonConvert.DeserializeObject<RepairDataResponse[]>(_jsonRepairHistory); Result = new LightstoneConsumerSpecificationsResponse(repairData); Result.AddResponseState(Result.RepairData.Any() ? DataProviderResponseState.Successful : DataProviderResponseState.NoRecords); }