public RentForFamily() { contexto = new RentContext(); IRentCostStrategy rent = new FamilyCostStrategy(); contexto.RentStrategy = rent; }
public RentByWeek() { contexto = new RentContext(); IRentCostStrategy rent = new WeekCostStrategy(); contexto.RentStrategy = rent; }
public RentByHour() { contexto = new RentContext(); IRentCostStrategy rentbyhour = new HourCostStrategy(); contexto.RentStrategy = rentbyhour; }
public RentByDay() { contexto = new RentContext(); IRentCostStrategy rentbyday = new DayCostStrategy(); contexto.RentStrategy = rentbyday; }