C# Class RefactoringKatas.Refactored.Replacing_conditional_logic_with_polymorphism.MovieRental

Afficher le fichier Open project: jcbozonier/Refactoring-Katas

Méthodes publiques

Méthode Description
Charge ( IPayingCustomer customer ) : void
CreateMovieRentalWithRegularPriceCode ( int daysRented ) : MovieRental
MovieRental ( int daysRented, IMovie movie ) : RefactoringKatas.Refactored.Replacing_conditional_logic_with_polymorphism.Pricing

Method Details

Charge() public méthode

public Charge ( IPayingCustomer customer ) : void
customer IPayingCustomer
Résultat void

CreateMovieRentalWithRegularPriceCode() public static méthode

public static CreateMovieRentalWithRegularPriceCode ( int daysRented ) : MovieRental
daysRented int
Résultat MovieRental

MovieRental() public méthode

public MovieRental ( int daysRented, IMovie movie ) : RefactoringKatas.Refactored.Replacing_conditional_logic_with_polymorphism.Pricing
daysRented int
movie IMovie
Résultat RefactoringKatas.Refactored.Replacing_conditional_logic_with_polymorphism.Pricing