Beispiel #1
0
        public async void CheckNewAdditionalInfo(string message)
        {
            var data         = new FakeQueue().WithMessage("blablabla");
            var preparedData = data.Build();
            var result       = await CallNewAdditioanlInfo(message, data.BuildAsList());

            Assert.Equal(message, result.AdditionalMessage);
            Assert.Equal(preparedData.QueueNo, result.QueueNo);
            Assert.Equal(preparedData.OwnerInitials, result.OwnerInitials);
            Assert.Equal(preparedData.IsBreak, result.IsBreak);
            Assert.Equal(preparedData.IsSpecial, result.IsSpecial);
            Assert.Equal(preparedData.RoomNo, result.RoomNo);
        }
Beispiel #2
0
        public async void CheckNewQueueNo_IsSpecialOff()
        {
            var data         = new FakeQueue().WithQueueNo(15).WithSpecial(true);
            var preparedData = data.Build();

            var result = await CallNewQueueNo(-2, data.BuildAsList());

            var expectedQueueMessage = String.Concat(preparedData.OwnerInitials, preparedData.QueueNo);

            Assert.Equal(expectedQueueMessage, result.QueueNoMessage);
            Assert.False(result.IsBreak);
            Assert.False(result.IsSpecial);
        }