public async Task AcceptAndBridgeAsyncShouldWorkWithNullLoggingContext() { // Given m_messagingInvitation = await StartIncomingMessagingInvitationAsync("Event_IncomingIMCall.json").ConfigureAwait(false); // When await m_messagingInvitation.AcceptAndBridgeAsync(null, "https://example.com", "Example User").ConfigureAwait(false); // Then // No exception is thrown }
public async Task AcceptAndBridgeAsyncShouldThrowIfCapabilityNotAvailable() { // Given m_messagingInvitation = await StartIncomingMessagingInvitationAsync("Event_IncomingIMCall_NoActionLinks.json").ConfigureAwait(false); // When await m_messagingInvitation.AcceptAndBridgeAsync(m_loggingContext, "https://example.com", "Example User").ConfigureAwait(false); // Then // Exception is thrown }
public async Task AcceptAndBridgeAsyncShouldMakeHttpRequest() { // Given m_messagingInvitation = await StartIncomingMessagingInvitationAsync("Event_IncomingIMCall.json").ConfigureAwait(false); // When await m_messagingInvitation.AcceptAndBridgeAsync(m_loggingContext, "https://example.com", "Example User").ConfigureAwait(false); // Then Assert.IsTrue(m_restfulClient.RequestsProcessed("POST " + DataUrls.AcceptAndBridge)); }
public async Task AcceptAndBridgeAsyncShouldThrowIfMeetingUrlIsWhitespaces() { // Given m_messagingInvitation = await StartIncomingMessagingInvitationAsync("Event_IncomingIMCall.json").ConfigureAwait(false); // When await m_messagingInvitation.AcceptAndBridgeAsync(m_loggingContext, " ", "Example User").ConfigureAwait(false); // Then // Exception is thrown }