public override string ToString()
 {
     return(CampgroundId.ToString().PadRight(6) + ParkId.ToString().PadRight(6) + Name.PadRight(30) + OpenFromMonth.ToString().PadRight(30) + DailyFee.ToString().PadRight(10));
 }
示例#2
0
 //Display the park information
 public override string ToString()
 {
     return(ParkId.ToString() + ") " + Name);
 }
示例#3
0
        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);
        }
示例#4
0
 // 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));
 }
示例#5
0
 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);
 }
示例#7
0
 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)}");
 }
示例#8
0
 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));
 }