Example #1
0
        public void InitialiseDepartingBoats()
        {
            var boatsInHarbor = Harbor.BoatsInHarbor();

            for (int i = 0; i < boatsInHarbor.Length; i++)
            {
                if (boatsInHarbor[i] == null)
                {
                    continue;
                }
                else if (boatsInHarbor[i].DaysLeftInHarbor == 0)
                {
                    Harbor.DepartBoatFromPort(i);
                }
            }
        }