public TicketService( IAppUnitOfWork uow, ITicketFactory ticketFactory) { _uow = uow; _ticketFactory = ticketFactory; }
public TicketApplicationService(ITicketRepository ticketRepository, ITicketCategoryRepository categoryRepository, ITicketFactory factory, IIdentityResolver identityResolver, IDomainNotificationHandler domainNotificationHandler, IUnitOfWork <ILedgerHelpDeskDbAbstraction> unitOfWork, IDomainServiceBus domainBus) : base(domainNotificationHandler, unitOfWork, domainBus) { _ticketRepository = ticketRepository; _categoryRepository = categoryRepository; _factory = factory; _identityResolver = identityResolver; }
/// <summary> /// Initialize a new instance of <see cref="StaticAnswerCaptchaFactory{TAnswer}"/> 。 /// </summary> /// <param name="answerSaver">The answer saver.</param> /// <param name="ticketFactory">The ticket factory.</param> /// <param name="disposeSaverAndFactory">Whether to dispose the saver and the factory or not when being disposed.</param> public StaticAnswerCaptchaFactory(ICaptchaAnswerSaver <TAnswer> answerSaver, ITicketFactory ticketFactory, bool disposeSaverAndFactory = false) { if (answerSaver == null) { throw new ArgumentNullException(nameof(answerSaver)); } if (ticketFactory == null) { throw new ArgumentNullException(nameof(ticketFactory)); } this.answerSaver = answerSaver; this.disposeSaverAndFactory = disposeSaverAndFactory; this.ticketFactory = ticketFactory; }
public UserService(IUsitData usitData, ITicketFactory ticketFactory) { if (usitData == null) { throw new NullReferenceException("UsitData"); } if (ticketFactory == null) { throw new NullReferenceException("TicketFactory"); } this.ticketFactory = ticketFactory; this.usitData = usitData; }
/// <summary> /// Initialize a new instance of <see cref="ImageCaptchaFactory"/>. /// </summary> /// <param name="answerSaver">The answer saver.</param> /// <param name="ticketFactory">The ticket factory.</param> /// <param name="settings">The settings.</param> /// <param name="disposeSaverAndFactory">Whether to dispose the saver and the factory or not when being disposed.</param> public ImageCaptchaFactory(ICaptchaAnswerSaver <string> answerSaver, ITicketFactory ticketFactory, Settings settings, bool disposeSaverAndFactory = false) : base(answerSaver, ticketFactory, disposeSaverAndFactory) { if (this.IsDisposed) { throw new ObjectDisposedException(null); } if (answerSaver == null) { throw new ArgumentNullException(nameof(answerSaver)); } if (settings == null) { throw new ArgumentNullException(nameof(settings)); } this.lengths = settings.AllowedLengths.ToArray(); this.fonts = settings.AllowedFonts.ToArray(); this.characters = settings.AllowedCharacters.ToArray(); }
public WeatherForecastController(ITicketFactory ticketFactory) { this.ticketFactory = ticketFactory; }
public SlotContext(DbContextOptions <SlotContext> options) : base(options) { ticketFactory = new TicketFactory(this); }