예제 #1
0
        public static void PrintListCountries()
        {
            Console.Clear();
            Console.WriteLine(Header());
            Console.WriteLine(ListCountriesMenu(), Environment.NewLine);
            TravelSimulatorContext context = new TravelSimulatorContext();

            foreach (Country country in context.Countries)
            {
                Console.WriteLine(country.CountryName);
            }
            Console.WriteLine(GoBackMessage());
        }
 public VoucherService(TravelSimulatorContext cont)
 {
     this.context = cont;
 }
 //Used for Unit tests
 public TouristService(TravelSimulatorContext cont)
 {
     this.context = cont;
 }
 public VoucherService()
 {
     this.context = new TravelSimulatorContext();
 }
 //Used in the View
 public TouristService()
 {
     this.context = new TravelSimulatorContext();
 }
예제 #6
0
 //Used forn Unit tests
 public HotelService(TravelSimulatorContext cont)
 {
     this.context = cont;
 }
예제 #7
0
 //Used in the View
 public HotelService()
 {
     this.context = new TravelSimulatorContext();
 }
 //Used for Unit tests
 public CountryService(TravelSimulatorContext cont)
 {
     this.context = cont;
 }
 //Used in the View
 public CountryService()
 {
     this.context = new TravelSimulatorContext();
 }