public RegistroPontoBot(string token, string webHookUrl, IBotApiService apiService, IBotCommands comandos) { _apiService = apiService; _comandos = comandos; Token = token; WebHookUrl = webHookUrl; }
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; }
/// <summary> /// /// </summary> /// <param name="botApiService"></param> public BotTagManageController(IBotApiService botApiService) { _botApiService = botApiService; }