public async Task WhenAskedForMeeting_ShouldUseConnector(string phrase, string mail) { var info = new TextDeconstructionInformation("What is my next meeting", null); var chatEvent = GetChatEvent(phrase, mail); _connector.GetNextMeetingAsync(mail).Returns((Event)null); var result = await _processor.ProcessCommandAsync(info, chatEvent, null, null); _connector.Received().GetNextMeetingAsync(mail); Assert.AreEqual(result.Text, "Can not find your next event! You may have no events or the service user account do not see your calendar."); }
public async Task WhenAskedForMeeting_ShouldUseConnector(string phrase, string mail) { var info = new TextDeconstructionInformation("What is my next meeting", null, SentenceTypes.Question); var chatEvent = GetChatEvent(phrase, mail); _connector.GetNextMeetingAsync(mail).Returns((Event)null); var result = await _processor.ProcessCommandAsync(info, chatEvent, null); _connector.Received().GetNextMeetingAsync(mail); }