Example #1
0
        public void ToQueueDetails_Should_Handle_Null()
        {
            WaitingListObject source = null;
            var actual = source.ToQueueDetails();

            actual.Should().BeNull();
        }
Example #2
0
        public void ToQueueDetails_Should_Map_Correctly()
        {
            var source = new WaitingListObject
            {
                PatientCount       = 123,
                LevelOfPain        = 456,
                AverageProcessTime = 789
            };

            var actual = source.ToQueueDetails();

            actual.PatientCount.Should().Be(source.PatientCount);
            actual.PainLevel.Should().Be(source.LevelOfPain);
            actual.AverageQueueTime.Should().Be(source.AverageProcessTime);
        }