From f7d1b39fab9e662596fc78a630576e3e748462ab Mon Sep 17 00:00:00 2001 From: Strati Date: Sat, 1 Sep 2018 12:53:07 +0200 Subject: [PATCH] finish testdata generator --- WebClient/WpfWebClient/Helper/GenerateTestData.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/WebClient/WpfWebClient/Helper/GenerateTestData.cs b/WebClient/WpfWebClient/Helper/GenerateTestData.cs index b095fea..8db75b0 100644 --- a/WebClient/WpfWebClient/Helper/GenerateTestData.cs +++ b/WebClient/WpfWebClient/Helper/GenerateTestData.cs @@ -89,12 +89,12 @@ namespace WpfWebClient.Helper - PatientAtFoodPlace patf = new PatientAtFoodPlace(); - - int i = 300; + int i = 0; do { + PatientAtFoodPlace patf = new PatientAtFoodPlace(); + int randnumFP = random.Next(0, foodPlaces.Count()); FoodPlace foodpl = foodPlaces[randnumFP]; @@ -110,7 +110,7 @@ namespace WpfWebClient.Helper i++; - } while (i < 375); + } while (i < 5); return PatientsAtFoodPlaces; }