Skip to content

Commit

Permalink
fix some todos from #594
Browse files Browse the repository at this point in the history
* init seed for repeatable mock data
* set maxPersons to 1500
  • Loading branch information
DanielHabenicht committed Apr 12, 2020
1 parent e73c865 commit 28bdafd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);

Randomizer.Seed = new Random(8675309);

var roomNumbers = new[] { "1A", "2A", "3A", "4A", "5A", "6A", "1B", "2B", "3B", "4B", "5B", "6B", "1.004785", "N100.45", "545", "0.0454a", "Apl", "F-54689", "F54689" };

#region Location
Expand Down Expand Up @@ -196,7 +198,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)

#region Person

var maxPersons = 5000;
var maxPersons = 1500;
var PersonFaker = new Faker<Person>()
.StrictMode(false)
.Rules((f, b) =>
Expand Down

0 comments on commit 28bdafd

Please sign in to comment.