Пример #1
0
        public AzureFileRepositoryTests()
        {
            _azureFileRepository = new AzureFileRepository(
                DarioBotConfiguration.Get(DarioBotConfiguration.StorageConnectionStringKey),
                DarioBotConfiguration.Get(DarioBotConfiguration.RemoteResourcesPathKey),
                "happydariobottests");

            _badAzureFileRepository = new AzureFileRepository(
                "x",
                DarioBotConfiguration.Get(DarioBotConfiguration.RemoteResourcesPathKey),
                "xasxsaxsa");
        }
Пример #2
0
        public DarioBotTests()
        {
            _darioBot = new DarioBot(
                DarioBotConfiguration.Get(DarioBotConfiguration.BotTokenKey),
                DarioBotConfiguration.Get(DarioBotConfiguration.ForwardToIdKey));
            _forwardedId = DarioBotConfiguration.Get(DarioBotConfiguration.ForwardToIdKey);

            _telegramVoiceExample = new TelegramVoice()
            {
                fileId    = "AwADBAADbQYAAtQHAVMH6C2nlJBQnRYE",
                file_size = 27277,
                duration  = 3
            };
        }
Пример #3
0
 public TelegramBotTests()
 {
     _botToken      = DarioBotConfiguration.Get(DarioBotConfiguration.BotTokenKey);
     _resourcesPath = DarioBotConfiguration.Get(DarioBotConfiguration.ResourcesPathKey);
     _telegramBot   = new TelegramBot(_botToken);
 }