public TelegramBotController(ITelegramBotClient botClient, IConfiguration configuration, IOrderService orderService, IJuiceService juiceService)
 {
     this.telegramBot  = botClient;
     Configuration     = configuration;
     this.orderService = orderService;
     this.juiceService = juiceService;
 }
Пример #2
0
 public TelegramBotController(ITelegramBotClient botClient, IConfiguration configuration, IOrderService orderService, IJuiceService juiceService, ILogger <TelegramBotController> logger)
 {
     this.telegramBot  = botClient ?? throw new ArgumentNullException(nameof(botClient));
     Configuration     = configuration ?? throw new ArgumentNullException(nameof(configuration));
     this.orderService = orderService ?? throw new ArgumentNullException(nameof(orderService));
     this.juiceService = juiceService ?? throw new ArgumentNullException(nameof(juiceService));
     this.logger       = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Пример #3
0
 public IndexModel(ILogger <CreateModel> logger, IJuiceService juiceService)
 {
     Log = logger;
     this.juiceService = juiceService ?? throw new ArgumentNullException(nameof(juiceService));
 }