public void GetOrderByID_returns_null_if_no_item_with_matching_id_exists()
        {
            var orders = new List <OrderItem>();

            orders.Add(new OrderItem()
            {
                ID = 1
            });
            orders.Add(new OrderItem()
            {
                ID = 5
            });

            var mockContext = new MockDBContextFactory().WithBuiltinOrderItems(orders).Create();

            var repository = new RestourantRepository(mockContext);

            var order = repository.GetOrderByID(2);

            Assert.IsNull(order);
        }
        public void GetOrderByID_returns_matching_item()
        {
            var orders = new List <OrderItem>();

            orders.Add(new OrderItem()
            {
                ID = 1
            });
            orders.Add(new OrderItem()
            {
                ID = 5
            });

            var mockContext = new MockDBContextFactory().WithBuiltinOrderItems(orders).Create();

            var repository = new RestourantRepository(mockContext);

            var order = repository.GetOrderByID(5);

            Assert.IsNotNull(order);
            Assert.AreEqual(5, order.ID);
        }