public void Cook()
        {
            Potato goodRawPotato = new Potato();
            PotatoPeeler(goodRawPotato);

            if (goodRawPotato != null)
            {
                if (!goodRawPotato.HasNotBeenPeeled && !goodRawPotato.IsRotten)
                {
                    CookPotato(goodRawPotato);
                }
            }
        }
예제 #2
0
        public void Cook()
        {
            Potato goodRawPotato = new Potato();

            PotatoPeeler(goodRawPotato);

            if (goodRawPotato != null)
            {
                if (!goodRawPotato.HasNotBeenPeeled && !goodRawPotato.IsRotten)
                {
                    CookPotato(goodRawPotato);
                }
            }
        }
예제 #3
0
 private static void CookPotato(Potato toBeCooked)
 {
     toBeCooked.IsCooked = true;
 }
예제 #4
0
 private static void PotatoPeeler(Potato toBePeeled)
 {
     toBePeeled.HasNotBeenPeeled = false;
 }
 private static void CookPotato(Potato toBePeeled)
 {
     toBePeeled.IsCooked = true;
 }
 private static void PotatoPeeler(Potato toBePeeled)
 {
     toBePeeled.HasNotBeenPeeled = false;
 }