First refactoring bugs fixed. There were two bugs. The first was the type defect... FirstRefactoringComplete
authorMichael Welch <michaelgwelch@gmail.com>
Mon, 6 Feb 2012 21:46:42 +0000 (15:46 -0600)
committerMichael Welch <michaelgwelch@gmail.com>
Mon, 6 Feb 2012 21:46:42 +0000 (15:46 -0600)
RefactoringChapter1/Customer.cs

index c9253e0..a662b1c 100644 (file)
@@ -59,9 +59,9 @@ namespace RefactoringChapter1
                        
                }
                
-               private int AmountFor (Rental each)
+               private double AmountFor (Rental rental)
                {
-                       int thisAmount = 0;
+                       double thisAmount = 0;
                        switch (rental.Movie.PriceCode)
                        {
                        case Movie.Regular: