Example #1
0
        /// <summary>
        /// Clean Clothes Method of Customer
        /// </summary>
        /// <param name="laundry">Laundry Object to fullfill the order</param>
        public void CleanMyClothes(Laundry laundry)
        {
            Console.WriteLine("Customer : Hey Clean My Clothes");

            string[] laundryLanguages = laundry.Language.Split(',');

            if (laundryLanguages.Contains(this.Language))
            {
                laundry.CleanClothes(this, DirtyClothes);
            }
            else
            {
                Console.WriteLine("Laundry : Hey I dont understand your language");
            }
        }