public void CanRemoveMotivation_BMPeople_FTM120()
        {
            var dogBarking   = new DogBarking(BarkingMotivation.People);
            var dogWhisperer = new DogWhisperer {
                FreeTimeInMinutes = 120
            };

            Assert.True(dogWhisperer.CanRemoveMotivation(dogBarking.Motivation.Value));
        }
Пример #2
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();
        }