public override string ToString() { return(CampgroundId.ToString().PadRight(6) + ParkId.ToString().PadRight(6) + Name.PadRight(30) + OpenFromMonth.ToString().PadRight(30) + DailyFee.ToString().PadRight(10)); }
//Display the park information public override string ToString() { return(ParkId.ToString() + ") " + Name); }
public void GetReservationsWithin30DaysSelectedPark() { //ARRANGE ReservationSqlDAO dao = new ReservationSqlDAO(ConnectionString); //ACT List <Reservation> result = (List <Reservation>)dao.GetReservationsWithin30DaysSelectedPark(ParkId.ToString()); //ASSERT Assert.AreEqual(2, result.Count); }
// Used for viewing the list of all parks. Formats info to look nice public override string ToString() { return(ParkId.ToString().PadRight(3) + ParkName.PadRight(5)); }
public override string ToString() { return(ParkId.ToString().PadRight(6) + Name.PadRight(30) + Location.PadRight(30) + EstablishDate.ToShortDateString().PadRight(10) + Area.ToString().PadRight(20) + Visitors.ToString().PadRight(10) + Description.ToString().PadRight(60)); }
public override string ToString() { return(ParkId.ToString() + ") " + Name.PadRight(5) + " " + "National Park" + '\n' + "Location:" + " " + Location.PadRight(5) + '\n' + "Established:" + " " + EstablishedDate.Substring(0, 9).PadRight(5) + '\n' + "Area:" + " " + Area.ToString().PadRight(5) + '\n' + "Annual Visitors:" + " " + Vistiors.ToString().PadRight(5) + '\n' + '\n' + Description); }
public override string ToString() { return($"{ParkId.ToString()} {ParkName.PadRight(10)} {ParkLocation.PadRight(10)} {ParkEstablishDate.ToString().PadRight(10)} {Area.ToString().PadRight(10)} {Visitors.ToString().PadRight(10)} {ParkDescription.PadRight(10)}"); }
public override string ToString() { return(ParkId.ToString().PadRight(6) + ParkName.PadRight(6) + Location.PadRight(12) + EstablishedDate.ToString().PadRight(12) + Area.ToString().PadRight(10) + Visitors.ToString().PadRight(10) + "\n" + Description); }
public override string ToString() { return(CampGroundId.ToString().PadRight(6) + ParkId.ToString().PadRight(6) + CampgroundName.PadRight(10) + OpenMonth.ToString().PadRight(6) + ClosingMonth.ToString().PadRight(6) + DailyFee.ToString().PadRight(6)); }