Zebra Game Kata Part 9 - Answer Problem.

Here is the solution to the problem.

ZebraGameProblem/ZebraProblem.cs
using System.Collections.Generic;

namespace ZebraGameProblem
{
    public class ZebraProblem
    {
        public ZebraProblem()
        {
            const int houseMax = 5;

            Houses = new List<House>( houseMax )
                         {
                             new House
                                 {
                                     Id = 1,
                                     Nationality = Nationality.Norwegian,
                                     DoorColor = DoorColor.Yellow,
                                     Food = Food.Apple,
                                     Pet = Pet.Fox,
                                     Drink = Drink.Water
                                 },
                             new House
                                 {
                                     Id = 2,
                                     DoorColor = DoorColor.Blue,
                                     Pet = Pet.Horse,
                                     Nationality = Nationality.Ukrainian,
                                     Drink = Drink.Tea,
                                     Food = Food.Onion
                                 },
                             new House
                                 {
                                     Id = 3,
                                     Drink = Drink.Milk,
                                     DoorColor = DoorColor.Red,
                                     Nationality = Nationality.Australian,
                                     Pet = Pet.Snails,
                                     Food = Food.Mushroom
                                 },
                             new House
                                 {
                                     Id = 4,
                                     DoorColor = DoorColor.Ivory,
                                     Nationality = Nationality.Italian,
                                     Pet = Pet.Dog,
                                     Food = Food.Cake,
                                     Drink = Drink.OrangeJuice
                                 },
                             new House
                                 {
                                     Id = 5,
                                     Drink = Drink.Coffee,
                                     DoorColor = DoorColor.Green,
                                     Nationality = Nationality.Japanese,
                                     Food = Food.Banana,
                                     Pet = Pet.Zebra
                                 }
                         };
        }

        public List<House> Houses { get; }
    }
}

Who drinks water and who owns the zebra?

The Norwegian in house #1 drinks water, and the Japanese in house #5 owns the zebra.