Пример #1
0
 internal PublicCaseReport(CompletedCaseReport report)
 {
     AppealCaseID   = report.AppealCase.ID;
     ChairID        = report.CaseBoard.Chair.Member.ID;
     RapporteurID   = report.CaseBoard.Rapporteur.Member.ID;
     SecondMemberID = report.CaseBoard.SecondWorker.Member.ID;
     Log            = new FinishedCaseLog(report.Log);
 }
Пример #2
0
        private void _case12Assertions()
        {
            Assert.AreEqual(0, allocatedCase22.Record.Allocation.Value);
            Assert.AreEqual(0, allocatedCase22.Record.RapporteurSummons.Enqueue.Value);
            Assert.AreEqual(2, allocatedCase22.Record.RapporteurSummons.Start.Value);
            Assert.AreEqual(3, allocatedCase22.Record.RapporteurSummons.Finish.Value);
            Assert.AreEqual(4, allocatedCase22.Record.OtherMemberSummons.Enqueue.Value);
            Assert.AreEqual(4, allocatedCase22.Record.OtherMemberSummons.Start.Value);
            Assert.AreEqual(5, allocatedCase22.Record.OtherMemberSummons.Finish.Value);
            Assert.AreEqual(6, allocatedCase22.Record.ChairSummons.Enqueue.Value);
            Assert.AreEqual(6, allocatedCase22.Record.ChairSummons.Start.Value);
            Assert.AreEqual(7, allocatedCase22.Record.ChairSummons.Finish.Value);
            Assert.AreEqual(8, allocatedCase22.Record.OP.Enqueue.Value);

            Assert.AreEqual(752, allocatedCase22.Record.RapporteurDecision.Enqueue.Value);
            Assert.AreEqual(752, allocatedCase22.Record.RapporteurDecision.Start.Value);
            Assert.AreEqual(753, allocatedCase22.Record.RapporteurDecision.Finish.Value);
            Assert.AreEqual(754, allocatedCase22.Record.OtherMemberDecision.Enqueue.Value);
            Assert.AreEqual(754, allocatedCase22.Record.OtherMemberDecision.Start.Value);
            Assert.AreEqual(755, allocatedCase22.Record.OtherMemberDecision.Finish.Value);
            Assert.AreEqual(756, allocatedCase22.Record.ChairDecision.Enqueue.Value);
            Assert.AreEqual(756, allocatedCase22.Record.ChairDecision.Start.Value);
            Assert.AreEqual(757, allocatedCase22.Record.ChairDecision.Finish.Value);


            CompletedCaseReport report = new CompletedCaseReport(allocatedCase22);

            Assert.AreEqual(report.HourOfAlloction, allocatedCase22.Record.Allocation.Value);
            Assert.AreEqual(
                report.HourEnqueuedForSummons(WorkerRole.Rapporteur),
                allocatedCase22.Record.RapporteurSummons.Enqueue.Value);
            Assert.AreEqual(
                report.HourSummonsWorkStarted(WorkerRole.Rapporteur),
                allocatedCase22.Record.RapporteurSummons.Start.Value);
            Assert.AreEqual(
                report.HourSummonsWorkFinished(WorkerRole.Rapporteur),
                allocatedCase22.Record.RapporteurSummons.Finish.Value);
            Assert.AreEqual(
                report.HourEnqueuedForSummons(WorkerRole.OtherMember),
                allocatedCase22.Record.OtherMemberSummons.Enqueue.Value);
            Assert.AreEqual(
                report.HourSummonsWorkStarted(WorkerRole.OtherMember),
                allocatedCase22.Record.OtherMemberSummons.Start.Value);
            Assert.AreEqual(
                report.HourSummonsWorkFinished(WorkerRole.OtherMember),
                allocatedCase22.Record.OtherMemberSummons.Finish.Value);
            Assert.AreEqual(
                report.HourEnqueuedForSummons(WorkerRole.Chair),
                allocatedCase22.Record.ChairSummons.Enqueue.Value);
            Assert.AreEqual(
                report.HourSummonsWorkStarted(WorkerRole.Chair),
                allocatedCase22.Record.ChairSummons.Start.Value);
            Assert.AreEqual(
                report.HourSummonsWorkFinished(WorkerRole.Chair),
                allocatedCase22.Record.ChairSummons.Finish.Value);
            Assert.AreEqual(
                report.HourOPScheduled,
                allocatedCase22.Record.OP.Enqueue.Value);

            Assert.AreEqual(
                report.HourEnqueuedForDecision(WorkerRole.Rapporteur),
                allocatedCase22.Record.RapporteurDecision.Enqueue.Value);
            Assert.AreEqual(
                report.HourDecisionWorkStarted(WorkerRole.Rapporteur),
                allocatedCase22.Record.RapporteurDecision.Start.Value);
            Assert.AreEqual(
                report.HourDecisionWorkFinished(WorkerRole.Rapporteur),
                allocatedCase22.Record.RapporteurDecision.Finish.Value);
            Assert.AreEqual(
                report.HourEnqueuedForDecision(WorkerRole.OtherMember),
                allocatedCase22.Record.OtherMemberDecision.Enqueue.Value);
            Assert.AreEqual(
                report.HourDecisionWorkStarted(WorkerRole.OtherMember),
                allocatedCase22.Record.OtherMemberDecision.Start.Value);
            Assert.AreEqual(
                report.HourDecisionWorkFinished(WorkerRole.OtherMember),
                allocatedCase22.Record.OtherMemberDecision.Finish.Value);
            Assert.AreEqual(
                report.HourEnqueuedForDecision(WorkerRole.Chair),
                allocatedCase22.Record.ChairDecision.Enqueue.Value);
            Assert.AreEqual(
                report.HourDecisionWorkStarted(WorkerRole.Chair),
                allocatedCase22.Record.ChairDecision.Start.Value);
            Assert.AreEqual(
                report.HourDecisionWorkFinished(WorkerRole.Chair),
                allocatedCase22.Record.ChairDecision.Finish.Value);
        }