Ejemplo n.º 1
0
        public static async void TestDeleteMember()
        {
            var context    = new MockContext <IConference>();
            var conference = new Mocks.Conference(context);

            context.Arrange(m => m.UpdateMemberAsync("conferenceId", "memberId", The <UpdateConferenceMemberData> .Is(r => r.State == ConferenceMemberState.Completed), null)).Returns(Task.FromResult(new HttpResponseMessage()));
            await conference.DeleteMemberAsync("conferenceId", "memberId");
        }
Ejemplo n.º 2
0
        public static async void TestMute()
        {
            var context    = new MockContext <IConference>();
            var conference = new Mocks.Conference(context);

            context.Arrange(m => m.UpdateAsync("conferenceId", The <UpdateConferenceData> .Is(r => r.Mute), null)).Returns(Task.FromResult(new HttpResponseMessage()));
            await conference.MuteAsync("conferenceId", true);
        }
Ejemplo n.º 3
0
        public static async void TestPlayAudioFileToMember()
        {
            var context    = new MockContext <IConference>();
            var conference = new Mocks.Conference(context);

            context.Arrange(m => m.PlayAudioToMemberAsync("conferenceId", "memberId", The <PlayAudioData> .Is(r => r.FileUrl == "url"), null)).Returns(Task.FromResult(new HttpResponseMessage()));
            await conference.PlayAudioFileToMemberAsync("conferenceId", "memberId", "url");
        }