C# Class RefactoringKatas.Original.Replacing_conditional_logic_with_polymorphism.MovieRental

显示文件 Open project: jcbozonier/Refactoring-Katas

Public Methods

Method Description
Charge ( IPayingCustomer customer ) : void
CreateMovieRentalWithRegularPriceCode ( int daysRented ) : MovieRental
MovieRental ( int daysRented, MovieRentalPriceCode movieRentalPriceCode )

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, MovieRentalPriceCode movieRentalPriceCode )
daysRented int
movieRentalPriceCode MovieRentalPriceCode