public async Task Test_CalendarUpdateWithStartTimeEntity() { var serviceManager = this.ServiceManager as MockCalendarServiceManager; DateTime now = DateTime.Now; DateTime startTime = new DateTime(now.Year, now.Month, now.Day, 18, 0, 0); startTime = startTime.AddDays(1); startTime = TimeZoneInfo.ConvertTimeToUtc(startTime); serviceManager.SetupCalendarService(new List <EventModel>() { MockCalendarService.CreateEventModel( startDateTime: startTime, endDateTime: startTime.AddHours(1)) }); await this.GetTestFlow() .Send(UpdateMeetingTestUtterances.UpdateMeetingWithStartTime) .AssertReply(this.ShowAuth()) .Send(this.GetAuthResponse()) .AssertReplyOneOf(this.AskForNewTimePrompt()) .Send("tomorrow 9 pm") .AssertReply(this.ShowCalendarList()) .Send(Strings.Strings.ConfirmYes) .AssertReply(this.ShowCalendarList()) .AssertReply(this.ActionEndMessage()) .StartTestAsync(); }
public async Task Test_CalendarJoinWithStartTimeEntity() { var now = DateTime.Now; var startTime = new DateTime(now.Year, now.Month, now.Day, 18, 0, 0); startTime = startTime.AddDays(1); startTime = TimeZoneInfo.ConvertTimeToUtc(startTime); this.ServiceManager = MockServiceManager.SetMeetingsToSpecial(new List <EventModel>() { MockCalendarService.CreateEventModel( startDateTime: startTime, endDateTime: startTime.AddHours(1), content: "<a href=\"tel:12345678 \">12345678</a>") }); await this.GetTestFlow() .Send(ConnectToMeetingUtterances.JoinMeetingWithStartTime) .AssertReply(this.ShowAuth()) .Send(this.GetAuthResponse()) .AssertReplyOneOf(this.ConfirmPhoneNumberPrompt()) .Send(Strings.Strings.ConfirmYes) .AssertReplyOneOf(this.JoinMeetingResponse()) .AssertReply(this.JoinMeetingEvent()) .AssertReply(this.ActionEndMessage()) .StartTestAsync(); }
public async Task Test_CalendarSummaryByStartTime() { var serviceManager = this.ServiceManager as MockCalendarServiceManager; DateTime now = DateTime.Now; DateTime startTime = new DateTime(now.Year, now.Month, now.Day, 18, 0, 0); startTime = startTime.AddDays(1); startTime = TimeZoneInfo.ConvertTimeToUtc(startTime); serviceManager.SetupCalendarService(new List <EventModel>() { MockCalendarService.CreateEventModel( startDateTime: startTime, endDateTime: startTime.AddHours(1)), }); await this.GetTestFlow() .Send(FindMeetingTestUtterances.FindMeetingByStartTime) .AssertReply(this.ShowAuth()) .Send(this.GetAuthResponse()) .AssertReplyOneOf(this.FoundOneEventPrompt()) .AssertReply(this.ShowCalendarList(1)) .AssertReplyOneOf(this.ReadOutMorePrompt()) .Send(Strings.Strings.ConfirmNo) .AssertReply(this.ActionEndMessage()) .StartTestAsync(); }
public async Task Test_CalendarNextMeetingTimeRemaining() { var serviceManager = this.ServiceManager as MockCalendarServiceManager; serviceManager.SetupCalendarService(new List <EventModel>() { MockCalendarService.CreateEventModel(startDateTime: DateTime.UtcNow.AddDays(1)) }); await this.GetTestFlow() .Send(TimeRemainingUtterances.NextMeetingTimeRemaining) .AssertReply(this.ShowAuth()) .Send(this.GetAuthResponse()) .AssertReplyOneOf(this.ShowNextMeetingRemainingTime()) .AssertReply(this.ActionEndMessage()) .StartTestAsync(); }
public async Task Test_CalendarSummaryByTimeRange() { var serviceManager = this.ServiceManager as MockCalendarServiceManager; serviceManager.SetupCalendarService(new List <EventModel>() { MockCalendarService.CreateEventModel(startDateTime: DateTime.UtcNow.AddDays(7), endDateTime: DateTime.UtcNow.AddDays(8)) }); await this.GetTestFlow() .Send(FindMeetingTestUtterances.FindMeetingByTimeRange) .AssertReply(this.ShowAuth()) .Send(this.GetAuthResponse()) .AssertReplyOneOf(this.FoundOneEventPrompt()) .AssertReply(this.ShowCalendarList(1)) .AssertReplyOneOf(this.ReadOutMorePrompt()) .Send(Strings.Strings.ConfirmNo) .AssertReply(this.ActionEndMessage()) .StartTestAsync(); }
public async Task Test_CalendarJoinLinkWithStartTimeEntity() { var now = DateTime.Now; var startTime = new DateTime(now.Year, now.Month, now.Day, 18, 0, 0); startTime = startTime.AddDays(1); startTime = TimeZoneInfo.ConvertTimeToUtc(startTime); this.ServiceManager = MockServiceManager.SetMeetingsToSpecial(new List <EventModel>() { MockCalendarService.CreateEventModel( startDateTime: startTime, endDateTime: startTime.AddHours(1), content: "<a href=\"meetinglink\">Join Microsoft Teams Meeting</a>") }); await this.GetTestFlow() .Send(string.Empty) .AssertReplyOneOf(GetTemplates(CalendarMainResponses.FirstPromptMessage)) .Send(ConnectToMeetingUtterances.JoinMeetingWithStartTime) .AssertReplyOneOf(this.ConfirmMeetingLinkPrompt()) .Send(Strings.Strings.ConfirmYes) .AssertReplyOneOf(this.JoinMeetingResponse()) .AssertReply(this.JoinMeetingEvent()) .StartTestAsync(); }