Exemplo n.º 1
0
        private static void Main(string[] args)
        {
            DogRepository repo = new DogRepository();

            repo.SetDog(new Dog(1, (decimal)12.4, (decimal)134.5));
            repo.SetDog(new Dog(2));
            repo.GetDogs();
            repo.GetDog(1);

            string s1 = repo.GetTitle("title", "subtitle", "author") +
                        repo.CountHowMuchYouMustSpendMoneyToBeHappy((decimal)12.4,
                                                                    (decimal)134.5, (decimal)12.4);
            string s2 = repo.GetTitle("title", "subtitle", "author") +
                        repo.CountHowMuchYouMustSpendMoneyToBeFine((decimal)12.4,
                                                                   (decimal)134.5, (decimal)12.4);

            Console.WriteLine(s1 + " vs " + s2);
            Console.ReadKey();
        }