public void SetUp()
 {
     _posted        = null;
     _luisResult    = Rhino.Mocks.MockRepository.GenerateMock <ILuisResult>();
     _dialogContext = Rhino.Mocks.MockRepository.GenerateMock <IDialogContext>();
     _dialogContext
     .Stub(x => x.PostAsync(Arg <string> .Is.Anything))
     .Do((Func <string, Task>)(s =>
     {
         _posted = s;
         return(Task.Factory.StartNew(() => { }));
     }));
     _tested = new BotHost();     //this is a made up class so I can call a method on it
 }
예제 #2
0
 public void InjectHost(BotHost <T> instance)
 {
 }
예제 #3
0
 public void InjectHost(BotHost <T> instance)
 {
     _botHost = instance;
 }
예제 #4
0
 public CommandFactory <T> InjectHost(BotHost <T> instance)
 {
     _instance = instance;
     return(this);
 }