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(); }
//Used forn Unit tests public HotelService(TravelSimulatorContext cont) { this.context = cont; }
//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(); }