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;
 }