public RegistroPontoBot(string token, string webHookUrl, IBotApiService apiService, IBotCommands comandos)
 {
     _apiService = apiService;
     _comandos = comandos;
     Token = token;
     WebHookUrl = webHookUrl;
 }
Example #2
0
 public RegistroPontoBot(string token, string webHookUrl, IBotApiService apiService, IBotCommands comandos)
 {
     _apiService = apiService;
     _comandos   = comandos;
     Token       = token;
     WebHookUrl  = webHookUrl;
 }
Example #3
0
        public void Setup()
        {
            kernel.Reset();
            kernel.Unbind <RegistroPontoBot>();
            token         = "666";
            webHookAdress = "teste.com/webhook";
            kernel.Bind <RegistroPontoBot>().ToSelf()
            .WithConstructorArgument("token", token)
            .WithConstructorArgument("webHookUrl", webHookAdress);


            botCommands = kernel.Get <IBotCommands>();
            _sut        = kernel.Get <RegistroPontoBot>();
            apiService  = kernel.Get <IBotApiService>();
        }
        public void Setup()
        {
            kernel.Reset();
            kernel.Unbind<RegistroPontoBot>();
            token = "666";
            webHookAdress = "teste.com/webhook";
            kernel.Bind<RegistroPontoBot>().ToSelf()
                .WithConstructorArgument("token", token)
                .WithConstructorArgument("webHookUrl", webHookAdress);


            botCommands = kernel.Get<IBotCommands>();
            _sut = kernel.Get<RegistroPontoBot>();
            apiService = kernel.Get<IBotApiService>();
        }
 /// <summary>
 ///
 /// </summary>
 /// <param name="botApiService"></param>
 public BotManageController(IBotApiService botApiService, IBotManageService botManageService)
 {
     _botApiService    = botApiService;
     _botManageService = botManageService;
 }
Example #6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="botApiService"></param>
 public BotTagManageController(IBotApiService botApiService)
 {
     _botApiService = botApiService;
 }