Пример #1
0
 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);
 }
Пример #2
0
 public RestartJobResponse ConstructRestartJobResponse(IIppResponseMessage ippResponse) =>
 Construct <RestartJobResponse>(ippResponse);
Пример #3
0
 public PrintJobResponse ConstructPrintJobResponse(IIppResponseMessage ippResponse) =>
 Construct <PrintJobResponse>(ippResponse);
Пример #4
0
 public CancelJobResponse ConstructCancelJobResponse(IIppResponseMessage ippResponse) =>
 Construct <CancelJobResponse>(ippResponse);
Пример #5
0
 public CreateJobResponse ConstructCreateJobResponse(IIppResponseMessage ippResponse) =>
 Construct <CreateJobResponse>(ippResponse);
Пример #6
0
 public HoldJobResponse ConstructHoldJobResponse(IIppResponseMessage ippResponse) =>
 Construct <HoldJobResponse>(ippResponse);
Пример #7
0
 public ResumePrinterResponse ConstructResumePrinterResponse(IIppResponseMessage ippResponse) =>
 Construct <ResumePrinterResponse>(ippResponse);
Пример #8
0
        public T Construct <T>(IIppResponseMessage ippResponse) where T : IIppResponseMessage
        {
            var r = Mapper.Map <T>(ippResponse);

            return(r);
        }
Пример #9
0
 public GetPrinterAttributesResponse ConstructGetPrinterAttributesResponse(IIppResponseMessage ippResponse) =>
 Construct <GetPrinterAttributesResponse>(ippResponse);
Пример #10
0
 public SendDocumentResponse ConstructSendDocumentResponse(IIppResponseMessage ippResponse) =>
 Construct <SendDocumentResponse>(ippResponse);
Пример #11
0
 public PurgeJobsResponse ConstructPurgeJobsResponse(IIppResponseMessage ippResponse) =>
 Construct <PurgeJobsResponse>(ippResponse);
Пример #12
0
 /// <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);
Пример #13
0
 public SendUriResponse ConstructSendUriResponse(IIppResponseMessage ippResponse) =>
 Construct <SendUriResponse>(ippResponse);
Пример #14
0
 public PausePrinterResponse ConstructPausePrinterResponse(IIppResponseMessage ippResponse) =>
 Construct <PausePrinterResponse>(ippResponse);