Example #1
0
    public void SetupTownAndCities(Towns towns)
    {
        var nameGenerator = new RandomNameGenerator();

        foreach (var location in cityLocations)
        {
            towns.AddCity(location, nameGenerator.GetCityName());
        }
        foreach (var location in townLocations)
        {
            towns.AddTown(location, nameGenerator.GetTownName());
        }
    }