3 Date Created: 08/24/2016
4 ---------------------------------------------------
7 using CPE.App.Notify.Helpers;
8 using Microsoft.VisualStudio.TestTools.UnitTesting;
11 namespace CPE.App.NotifyConsole.Test {
13 public class ProcessEndOfMeetingSessionAdobeConnectResultsForParticipantTest {
15 Private test variables
17 These are database specific because it's easier and
18 probably more efective than to replicate service requests
20 private const int _brokenKey = 0;
21 private const int _meetingSessionKey = 3003;
23 #region Participant Tracking Results
26 public void participant_tracking_results_found() {
27 var meetingParticipantSessions = SessionHelper.getMeetingParticipantSessions(_meetingSessionKey);
28 meetingParticipantSessions.ShouldNotBeNull();
29 meetingParticipantSessions.Count.ShouldBeGreaterThan(0);
31 foreach (var meetingParticipantSession in meetingParticipantSessions) {
32 var participantTrackings = SessionHelper.getParticipantTrackingResults(meetingParticipantSession.MeetingParticipantSessionKey);
33 participantTrackings.ShouldNotBeNull();
34 participantTrackings.Count.ShouldBeGreaterThan(0);
39 public void participant_tracking_results_not_found() {
40 var participantTrackings = SessionHelper.getParticipantTrackingResults(_brokenKey);
41 participantTrackings.ShouldNotBeNull();
42 participantTrackings.Count.ShouldBe(0);
47 #region Participant Session Data Result
50 public void participant_session_data_result_found() {
51 var meetingParticipantSessions = SessionHelper.getMeetingParticipantSessions(_meetingSessionKey);
52 meetingParticipantSessions.ShouldNotBeNull();
53 meetingParticipantSessions.Count.ShouldBeGreaterThan(0);
55 foreach (var meetingParticipantSession in meetingParticipantSessions) {
56 var participantSessionDataResult = SessionHelper.getParticipantSessionsDataResult(_meetingSessionKey, meetingParticipantSession.MeetingParticipantSessionKey);
57 participantSessionDataResult.ShouldNotBeNull();
62 public void participant_session_data_result_not_found() {
63 var participantSessionDataResult = SessionHelper.getParticipantSessionsDataResult(_brokenKey, _brokenKey);
64 participantSessionDataResult.ShouldBeNull();