Skip to content

Commit

Permalink
tidied up street name data
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonySteele committed Oct 30, 2011
1 parent 0dc4923 commit 0236d8b
Show file tree
Hide file tree
Showing 6 changed files with 98 additions and 60 deletions.
1 change: 1 addition & 0 deletions src/GiveCRM.DummyDataGenerator/Data/FamilyNames.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ internal static class FamilyNames
"Bell",
"Bennett",
"Berry",
"Black",
"Booth",
"Brooke",
"Brown",
Expand Down
1 change: 1 addition & 0 deletions src/GiveCRM.DummyDataGenerator/Data/FemaleNames.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ internal static class FemaleNames
"Helen",
"Hermione",
"Irene",
"Iris",
"Jacqueline",
"Jade",
"Jane",
Expand Down
1 change: 1 addition & 0 deletions src/GiveCRM.DummyDataGenerator/Data/MaleNames.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ internal static class MaleNames
"Adam",
"Alan",
"Albert",
"Alexander",
"Alistair",
"Anders",
"Andrew",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
using System.Collections.Generic;

internal static class AddressData
internal static class StreetData
{
internal static List<string> StreetNamePrefix = new List<string>
{
Expand All @@ -13,6 +13,10 @@ internal static class AddressData
"",
"",
"",
"",
"",
"",
"",
"Upper",
"Lower",
"New",
Expand All @@ -21,80 +25,111 @@ internal static class AddressData

internal static List<string> StreetNames = new List<string>
{
"Station",
"Main",
"Park",
"Church",
"London",
"Victoria",
"Green",
"Blue",
"Red",
"Black",
"White",
"White",
"White",
"Manor",
"Queens",
"Grange",
"Kings",
"Windsor",
"Highfield",
"Mill",
"Alexander",
"York",
"St Johns",
"Broadway",
"Springfield",
"George",
"Victoria",
"West",
"North",
"Manchester",
"Richmond",
"South",
"School",
"Stanley",
"Chester",
"Mill",
"Abbey",
"Albert",
"Amberley",
"Apple",
"Arbutus",
"Aster",
"Atlee",
"Baker",
"Bond",
"Bedford",
"Belgrave",
"Belsize",
"Berkley",
"Russel",
"Rose",
"Rose",
"Petunia",
"Dafodil",
"Daisy",
"Lily",
"Thistle",
"Black",
"Bloom",
"Carnation",
"Goat",
"Blue",
"Bond",
"Boundary",
"Broadway",
"Camp",
"Flamingo",
"Carnation",
"Cherry",
"Apple",
"Orchard",
"Pear",
"Orange",
"Vine",
"Chester",
"Church",
"Churchill",
"Clifton",
"Cressida",
"Crocus",
"Cromwell",
"Daffodil",
"Dahlia",
"Daisy",
"Dandelion",
"Dartmouth",
"Eucalyptus",
"Flamingo",
"Foxglove",
"George",
"Geranium",
"Ginger",
"Goat",
"Grange",
"Green",
"Heath",
"High",
"Highfield",
"Hollyhock",
"Honeysuckle",
"Hyacinth",
"Kings",
"Lancaster",
"Larch",
"Lavender",
"Lilac",
"Lily",
"London",
"Lupin",
"Main",
"Manchester",
"Manor",
"Maple",
"Mill",
"Mimosa",
"Mountain",
"Newlands",
"North",
"Nut",
"Orange",
"Orchard",
"Orchid",
"Park",
"Pear",
"Peony",
"Petunia",
"Pitt",
"Protea",
"Queens",
"Red",
"Rhododendron",
"Richmond",
"Rose",
"Russel",
"School",
"Snapdragon",
"Sorrel",
"South",
"Springfield",
"St George",
"St Johns",
"Stanley",
"Station",
"Sunflower",
"Sutherland",
"Tansy",
"Thistle",
"Tulip",
"Verbena",
"Victoria",
"Vine",
"West",
"White",
"Winchester",
"Windsor",
"Wisteria",
"Yarrow",
"Churchill",
"Pitt",
"Atlee"
"York"
};

internal static List<string> StreetSuffix = new List<string>
Expand Down
4 changes: 2 additions & 2 deletions src/GiveCRM.DummyDataGenerator/Generation/MemberGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ private void MakeStreetAddress(Member member)

private string GenerateStreetAddress()
{
string street = random.PickFromList(AddressData.StreetNamePrefix) + " "
+ random.PickFromList(AddressData.StreetNames) + " " + random.PickFromList(AddressData.StreetSuffix);
string street = random.PickFromList(StreetData.StreetNamePrefix) + " "
+ random.PickFromList(StreetData.StreetNames) + " " + random.PickFromList(StreetData.StreetSuffix);
street = street.Trim();
string streetNumber = (random.Next(200) + 1).ToString();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
<Compile Include="Data\TownDataItem.cs" />
<Compile Include="Generation\CampaignGenerator.cs" />
<Compile Include="Generation\DonationsGenerator.cs" />
<Compile Include="Data\AddressData.cs" />
<Compile Include="Data\StreetData.cs" />
<Compile Include="Data\CampaignNames.cs" />
<Compile Include="Data\FamilyNames.cs" />
<Compile Include="Generation\RandomSource.cs" />
Expand Down

0 comments on commit 0236d8b

Please sign in to comment.