C# Класс RefactoringKatas.Original.Replacing_conditional_logic_with_polymorphism.MovieRental

Показать файл Открыть проект

Открытые методы

Метод Описание
Charge ( IPayingCustomer customer ) : void
CreateMovieRentalWithRegularPriceCode ( int daysRented ) : MovieRental
MovieRental ( int daysRented, MovieRentalPriceCode movieRentalPriceCode )

Описание методов

Charge() публичный Метод

public Charge ( IPayingCustomer customer ) : void
customer IPayingCustomer
Результат void

CreateMovieRentalWithRegularPriceCode() публичный статический Метод

public static CreateMovieRentalWithRegularPriceCode ( int daysRented ) : MovieRental
daysRented int
Результат MovieRental

MovieRental() публичный Метод

public MovieRental ( int daysRented, MovieRentalPriceCode movieRentalPriceCode )
daysRented int
movieRentalPriceCode MovieRentalPriceCode