Exemple #1
0
            public TestBotManager()
            {
                ApiClient = DummyFactory.CreateDummyApiClient();
                var botModule = new ChoiceBotMain.ChoiceBot(ApiClient);

                Manager = new BotManager(ApiClient);
                Manager.AddBot(botModule);
            }
Exemple #2
0
        public static DummyApiClient CreateDummyApiClient()
        {
            var apiClient = new DummyApiClient
            {
                CurrentUser = { Id = "123", DisplayName = "The Choicer Bot", IsBot = true, UserName = "******" }
            };

            return(apiClient);
        }