コード例 #1
0
ファイル: AdhocMeeting.cs プロジェクト: shaoyiwork/skype-docs
        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(m_loggingContext, new AdhocMeetingCreationInput("subject")).ConfigureAwait(false);

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

            // Then
            Assert.IsFalse(supports);
        }
コード例 #2
0
        public async Task CreateAdhocMeetingShouldWork()
        {
            // Given
            var input = new AdhocMeetingCreationInput("subject");

            // When
            IAdhocMeeting meeting = await m_application.CreateAdhocMeetingAsync(input, m_loggingContext).ConfigureAwait(false);

            // Then
            Assert.IsNotNull(meeting);
        }
コード例 #3
0
        public async void TestSetup()
        {
            TestHelper.InitializeTokenMapper();

            m_loggingContext = new LoggingContext(Guid.NewGuid());

            var data = TestHelper.CreateApplicationEndpoint();

            m_restfulClient          = data.RestfulClient;
            m_clientPlatformSettings = data.ClientPlatformSettings;
            m_mockEventChannel       = data.EventChannel;

            await data.ApplicationEndpoint.InitializeAsync(m_loggingContext).ConfigureAwait(false);

            await data.ApplicationEndpoint.InitializeApplicationAsync(m_loggingContext).ConfigureAwait(false);

            m_application = data.ApplicationEndpoint.Application;

            m_adhocMeeting = await m_application.CreateAdhocMeetingAsync(new AdhocMeetingCreationInput("subject"), m_loggingContext).ConfigureAwait(false);
        }