public TelegramBotController(ITelegramBotClient botClient, IConfiguration configuration, IOrderService orderService, IJuiceService juiceService) { this.telegramBot = botClient; Configuration = configuration; this.orderService = orderService; this.juiceService = juiceService; }
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)); }
public IndexModel(ILogger <CreateModel> logger, IJuiceService juiceService) { Log = logger; this.juiceService = juiceService ?? throw new ArgumentNullException(nameof(juiceService)); }