Example #1
0
        public void Given_EmptyOrderQueue_When_CallingReadFromOrderQueue_CurrentOrderEqualsNull()
        {
            var   orderQueue = new OrderQueue();
            var   chef       = new Chef("Jan", "Kowalski");
            Order expected   = null;

            chef.ReadFromOrderQueue(orderQueue);

            Assert.Equal(expected, chef.GetCurrentOrder());
        }
Example #2
0
        public void Given_ValidOrderQueue_When_CallingReadFromOrderQueue_CurrentOrderEqualsExpected()
        {
            var orderQueue = new OrderQueue();
            var expected   = new Order("Pizza");
            var chef       = new Chef("Jan", "Kowalski");

            orderQueue.AddOrder(expected);

            chef.ReadFromOrderQueue(orderQueue);

            Assert.Equal(expected, chef.GetCurrentOrder());
        }