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 }
public void ShouldSupportJoinAdhocMeetingWhenLinkAvailable() { // Given // Setup // When bool supports = m_adhocMeeting.Supports(AdhocMeetingCapability.JoinAdhocMeeting); // Then Assert.IsTrue(supports); }
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); }