Beispiel #1
0
        public void CreateDepartment()
        {
            Department dpt = new Department();

            dpt.Name = _AskTheUser.ForStringValue("Department name ?");
            dpt.Code = _AskTheUser.ForIntValue("Department code ?");
            AddDepartment(dpt);
        }
        public void CreateCity()
        {
            City myCity = new City();

            myCity.Name       = _AskTheUser.ForStringValue("City name ?");
            myCity.NbCitizens = _AskTheUser.ForIntValue("Number of cityzens ?");
            myCity.PostCode   = _AskTheUser.ForStringValue("Postcode ?");
            myCity.Department = _DepartmentService.AskForDepartment("Department code ?");
            myCity.Department.Cities.Add(myCity);
            _allCities.Add(myCity);
        }