private void _connectEmtsToIncidents()
        {
            // Triplicate each incident
            List <Incident> incidents = _incidents.Concat(_incidents.Concat(_incidents.ToList()).ToList()).ToList();

            incidents = incidents.OrderBy(item => RandomFactory.Number()).ToList();

            // Keep a random set, but at the most as many as original uniques
            while (incidents.Count > RandomFactory.Number(1, _incidents.Count))
            {
                incidents.RemoveAt(RandomFactory.Number(0, incidents.Count - 1));
            }

            // Insert
            while (incidents.Count > 0)
            {
                Incident ii = incidents[0];
                Emt      e  = _emts[RandomFactory.Number(0, _emts.Count - 1)];
                if (e.Incidents == null)
                {
                    e.Incidents = new List <Incident>();
                }
                e.Incidents.Add(ii);
                incidents.Remove(ii);
            }
        }
 private void _createBaseStations()
 {
     while (RandomFactory.HasMoreOf(RandomFactoryReturnType.BASESTATION))
     {
         _basestations.Add(new BaseStation {
             Name = RandomFactory.NextOf(RandomFactoryReturnType.BASESTATION)
         });
     }
 }
 private void _createIncidents()
 {
     while (RandomFactory.HasMoreOf(RandomFactoryReturnType.INCIDENT))
     {
         _incidents.Add(new Incident {
             Active      = RandomFactory.Number(0, 100) > 33,
             Description = RandomFactory.NextOf(RandomFactoryReturnType.INCIDENT)
         });
     }
 }
 private void _createEmts()
 {
     while (RandomFactory.HasMoreOf(RandomFactoryReturnType.EMT))
     {
         BaseStation bs = _basestations[RandomFactory.Number(0, _basestations.Count - 1)];
         _emts.Add(new Emt
         {
             Name        = RandomFactory.NextOf(RandomFactoryReturnType.EMT),
             BaseStation = bs
         });
     }
 }