public CheckListServiceTest()
        {
            var builder = new DbContextOptionsBuilder <ChecklistBotContext>();
            var b       = InMemoryDbContextOptionsExtensions.UseInMemoryDatabase(builder, "Data Source=:memory:");

            _context = new ChecklistBotContext(b.Options);
            _service = new CheckListService(_context);
        }
        public ChecklistBotService(BotConfig botToken, ChecklistBotContext botcontext)
        {
            var context = botcontext;

            bot = new TelegramBotClient(botToken.BotToken);

            _checkListService     = new CheckListService(context);
            _workCheckListService = new WorkCheckListService(context);

            _botMessageManager  = new BotMessageManager(bot, _workCheckListService);
            _inlineQueryManager = new InlineQueryManager(bot, _checkListService, _botMessageManager, _workCheckListService);
        }
 public CheckListItemServiceTest()
 {
     _context          = TestConfig.CreateTestContext();
     _checklistService = new CheckListService(_context);
 }
 public CheckListService(ChecklistBotContext context)
 {
     _context = context;
 }