using System; using System.Collections.Generic; using System.Linq; using System.Web; using EHEC_Server.DatabaseAccess; namespace EHEC_Server.DataBuilder { public class GenerateDataBuilder { private static List Doctors = new List(); private static List Patients = new List(); private static List Origins = new List(); private static List Results = new List(); private static List Exams = new List(); private static Random Rnd = new Random(); private static List FirstNames = new List(new string[] { "Michael", "Andreas", "Stefan", "Ivan","Adrien" }); private static List LastNames = new List(new string[] { "Meister", "Schär", "Eberhard", "Zingg", "Howald", "Aebi", "Feldmann" }); private static List DoctorOrigins = new List(new string[] { "SanktMonika", "DisneyWorld", "Hell", "Heaven" }); private static List Regions = new List(new string[] { "SanktMonika", "DisneyWorld", "Hell", "Heaven" }); private static List Street = new List(new string[] { "Rosenauweg", "Schessstrasse", "Hardstrasse", "Gehweg", "Bananastreet", "Moosweg", "Feldstrasse" }); private static List BirthDate = new List(new string[] { "12991212", "20000112", }); private static List City = new List(new string[] { "Meister", "Schär", "Eberhard", "Zingg", "Howald", "Aebi", "Feldmann" }); // public static List CreatePatients() // { //int Counter = Patients.Count(); //for (int i = 0; i < Counter; i++) // foreach (var c in FirstNames) // { // for (int j = 0; j < 10; j++) // { // Patient patient = new Patient( // FirstNames[Rnd.Next(1, FirstNames.Count())], // LastNames[Rnd.Next(1, LastNames.Count())], // BirthDate[Rnd.Next(1, BirthDate.Count())], // Street[Rnd.Next(1, Street.Count())], // City[Rnd.Next(1, City.Count())]); // Patients.Add(patient); // } // } // return Patients; } }