public OvJobTicketService( [NotNull] JobTicket_SSPSoap ticketSvc, [NotNull] IArtFactoryConfig config, [NotNull] XmpieDocument document) { TicketSvc = ticketSvc ?? throw new ArgumentNullException(nameof(ticketSvc)); Config = config ?? throw new ArgumentNullException(nameof(config)); Document = document ?? throw new ArgumentNullException(nameof(document)); }
public OvJobTicketService CreateJobTicket([NotNull] XmpieDocument document, ArtifactType artifactType) { if (document == null) { throw new ArgumentNullException(nameof(document)); } switch (artifactType) { case ArtifactType.Proof: break; case ArtifactType.Print: break; default: throw new InvalidEnumArgumentException( nameof(artifactType), (int)artifactType, typeof(ArtifactType)); } return(new OvJobTicketService(TicketSvc, Config, document)); }