public void CheckResponse(IIppResponseMessage response) { Assert.NotNull(response); Test.AddJsonAttachment(response, "response.json"); Test.AddJsonAttachment(response.Sections, "attributes.json"); Console.WriteLine(JsonConvert.SerializeObject(response, Formatting.Indented)); SnapperExtensions.ShouldMatchSnapshot(response); }
public RestartJobResponse ConstructRestartJobResponse(IIppResponseMessage ippResponse) => Construct <RestartJobResponse>(ippResponse);
public PrintJobResponse ConstructPrintJobResponse(IIppResponseMessage ippResponse) => Construct <PrintJobResponse>(ippResponse);
public CancelJobResponse ConstructCancelJobResponse(IIppResponseMessage ippResponse) => Construct <CancelJobResponse>(ippResponse);
public CreateJobResponse ConstructCreateJobResponse(IIppResponseMessage ippResponse) => Construct <CreateJobResponse>(ippResponse);
public HoldJobResponse ConstructHoldJobResponse(IIppResponseMessage ippResponse) => Construct <HoldJobResponse>(ippResponse);
public ResumePrinterResponse ConstructResumePrinterResponse(IIppResponseMessage ippResponse) => Construct <ResumePrinterResponse>(ippResponse);
public T Construct <T>(IIppResponseMessage ippResponse) where T : IIppResponseMessage { var r = Mapper.Map <T>(ippResponse); return(r); }
public GetPrinterAttributesResponse ConstructGetPrinterAttributesResponse(IIppResponseMessage ippResponse) => Construct <GetPrinterAttributesResponse>(ippResponse);
public SendDocumentResponse ConstructSendDocumentResponse(IIppResponseMessage ippResponse) => Construct <SendDocumentResponse>(ippResponse);
public PurgeJobsResponse ConstructPurgeJobsResponse(IIppResponseMessage ippResponse) => Construct <PurgeJobsResponse>(ippResponse);
/// <summary> /// Get-Job-Attributes Response /// https://tools.ietf.org/html/rfc2911#section-3.3.4.2 /// </summary> public GetJobsResponse ConstructGetJobsResponse(IIppResponseMessage ippResponse) => Construct <GetJobsResponse>(ippResponse);
public SendUriResponse ConstructSendUriResponse(IIppResponseMessage ippResponse) => Construct <SendUriResponse>(ippResponse);
public PausePrinterResponse ConstructPausePrinterResponse(IIppResponseMessage ippResponse) => Construct <PausePrinterResponse>(ippResponse);