예제 #1
0
        public bool CanJoinAdhocMeeting(IAdhocMeeting adhocMeeting)
        {
            #pragma warning disable CS0618 // Type or member is obsolete
            return(adhocMeeting.Supports(AdhocMeetingCapability.JoinAdhocMeeting));

            #pragma warning restore CS0618 // Type or member is obsolete
        }
예제 #2
0
        public void ShouldSupportJoinAdhocMeetingWhenLinkAvailable()
        {
            // Given
            // Setup

            // When
            bool supports = m_adhocMeeting.Supports(AdhocMeetingCapability.JoinAdhocMeeting);

            // Then
            Assert.IsTrue(supports);
        }
예제 #3
0
        public async Task ShouldNotSupportJoinAdhocMeetingWhenLinkNotAvailable()
        {
            // Given
            m_restfulClient.OverrideResponse(new Uri(DataUrls.AdhocMeeting), HttpMethod.Post, HttpStatusCode.Created, "AdhocMeeting_NoJoinAdhocMeetingLink.json");
            m_adhocMeeting = await m_application.CreateAdhocMeetingAsync(new AdhocMeetingCreationInput("subject"), m_loggingContext).ConfigureAwait(false);

            // When
            bool supports = m_adhocMeeting.Supports(AdhocMeetingCapability.JoinAdhocMeeting);

            // Then
            Assert.IsFalse(supports);
        }