Example #1
0
        public static void Main(string[] args)
        {
            var dogBarking = new DogBarking(BarkingMotivation.People);
            var dogWhisperer = new DogWhisperer{FreeTimeInMinutes = 120};

            while (dogBarking.Motivation != null )
            {
                Console.WriteLine(dogBarking.Bark());
                dogBarking.Motivation = dogWhisperer.CanRemoveMotivation(dogBarking.Motivation.Value) ? null : dogBarking.Motivation;
            }
            Console.ReadLine();
        }
 public void CanRemoveMotivation_BMPeople_FTM120()
 {
     var dogBarking = new DogBarking(BarkingMotivation.People);
     var dogWhisperer = new DogWhisperer { FreeTimeInMinutes = 120 };
     Assert.True(dogWhisperer.CanRemoveMotivation(dogBarking.Motivation.Value));
 }