static void HideMethodMain() { var hotel = new HotelFazenda(500, 200, 800); Periodo periodo1 = new Periodo(new DateTime(2018, 1, 1), new DateTime(2018, 1, 6)); var valor5DiasNoVerao = hotel.GetValorTotal(periodo1); Periodo periodo2 = new Periodo(new DateTime(2018, 4, 1), new DateTime(2018, 4, 8)); var valor7DiasAposVerao = hotel.GetValorTotal(periodo2); }
void IntroduceParameterObjectMain() { var hotel = new HotelFazenda(500, 200, 800); var valor5DiasNoVerao = hotel.GetValorTotal(new Periodo(new DateTime(2018, 1, 1), new DateTime(2018, 1, 6))); var valor7DiasAposVerao = hotel.GetValorTotal(new Periodo(new DateTime(2018, 4, 1), new DateTime(2018, 4, 8))); }