C# Class RefactoringKatas.Refactored.Replacing_conditional_logic_with_polymorphism.MovieRental

Datei anzeigen Open project: jcbozonier/Refactoring-Katas

Public Methods

Method 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 method

public Charge ( IPayingCustomer customer ) : void
customer IPayingCustomer
return void

CreateMovieRentalWithRegularPriceCode() public static method

public static CreateMovieRentalWithRegularPriceCode ( int daysRented ) : MovieRental
daysRented int
return MovieRental

MovieRental() public method

public MovieRental ( int daysRented, IMovie movie ) : RefactoringKatas.Refactored.Replacing_conditional_logic_with_polymorphism.Pricing
daysRented int
movie IMovie
return RefactoringKatas.Refactored.Replacing_conditional_logic_with_polymorphism.Pricing