Git Repository Public Repository

CPE_learningsite

URLs

Copy to Clipboard

This repository has no backups
This repository's network speed is throttled to 100KB/sec

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*
Developer: Tyler Allen
Date Created: 08/24/2016
---------------------------------------------------
*/

using CPE.App.Notify.Helpers;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Shouldly;

namespace CPE.App.NotifyConsole.Test {
    [TestClass]
    public class ProcessEndOfMeetingSessionAdobeConnectResultsForParticipantTest {
        /* 
            Private test variables

            These are database specific because it's easier and
            probably more efective than to replicate service requests
        */
        private const int _brokenKey = 0;
        private const int _meetingSessionKey = 3003;

        #region Participant Tracking Results

        [TestMethod]
        public void participant_tracking_results_found() {
            var meetingParticipantSessions = SessionHelper.getMeetingParticipantSessions(_meetingSessionKey);
            meetingParticipantSessions.ShouldNotBeNull();
            meetingParticipantSessions.Count.ShouldBeGreaterThan(0);

            foreach (var meetingParticipantSession in meetingParticipantSessions) {
                var participantTrackings = SessionHelper.getParticipantTrackingResults(meetingParticipantSession.MeetingParticipantSessionKey);
                participantTrackings.ShouldNotBeNull();
                participantTrackings.Count.ShouldBeGreaterThan(0);
            }
        }

        [TestMethod]
        public void participant_tracking_results_not_found() {
            var participantTrackings = SessionHelper.getParticipantTrackingResults(_brokenKey);
            participantTrackings.ShouldNotBeNull();
            participantTrackings.Count.ShouldBe(0);
        }

        #endregion

        #region Participant Session Data Result

        [TestMethod]
        public void participant_session_data_result_found() {
            var meetingParticipantSessions = SessionHelper.getMeetingParticipantSessions(_meetingSessionKey);
            meetingParticipantSessions.ShouldNotBeNull();
            meetingParticipantSessions.Count.ShouldBeGreaterThan(0);

            foreach (var meetingParticipantSession in meetingParticipantSessions) {
                var participantSessionDataResult = SessionHelper.getParticipantSessionsDataResult(_meetingSessionKey, meetingParticipantSession.MeetingParticipantSessionKey);
                participantSessionDataResult.ShouldNotBeNull();
            }
        }

        [TestMethod]
        public void participant_session_data_result_not_found() {
            var participantSessionDataResult = SessionHelper.getParticipantSessionsDataResult(_brokenKey, _brokenKey);
            participantSessionDataResult.ShouldBeNull();
        }

        #endregion
    }
}

Commits for CPE_learningsite/CPE/CPE.App/CPE.App.Notify.Test/ProcessEndOfMeetingSessionAdobeConnectResultsForParticipantTest.cs

Diff revisions: vs.
Revision Author Commited Message
4cd176 ... v.shishlov Fri 27 Aug, 2021 14:33:17 +0000

initial commit