Skip to content

Commit

Permalink
Add a 'Not recorded' value
Browse files Browse the repository at this point in the history
Some fields in the Academies db contain the value "Not recorded" rather than an empty string or NULL. Adding this as a random value in our address properties to replicate this.
  • Loading branch information
lookupdaily committed Oct 12, 2023
1 parent f55af07 commit cd17cc5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public GroupFaker(TrustToGenerate trustToGenerate)
.RuleFor(td => td.GroupContactStreet, f => $"{f.Address.BuildingNumber()} {f.Address.StreetName()}")
.RuleFor(td => td.GroupContactLocality, f => f.PickRandom(f.Address.StreetName(), string.Empty))
.RuleFor(td => td.GroupContactTown, f => f.PickRandom(f.Address.City(), string.Empty))
.RuleFor(td => td.GroupContactCounty, f => f.Address.County())
.RuleFor(td => td.GroupContactCounty, f => f.PickRandom(f.Address.County(), "Not recorded"))
.RuleFor(td => td.GroupContactPostcode, f => f.Address.ZipCode());
}

Expand Down

0 comments on commit cd17cc5

Please sign in to comment.