partial void DeleteSafeHouseDto(SafeHouseDto instance);
 partial void InsertSafeHouseDto(SafeHouseDto instance);
 partial void UpdateSafeHouseDto(SafeHouseDto instance);
        void INodeCreator.CreateSafeHouses()
        {
            double radius = 100;

            using (UndeadEarthDataContext dataContext = new UndeadEarthDataContext(_connectionString))
            {
                List<SafeHouseDto> safeHouses = new List<SafeHouseDto>();

                foreach (HotZoneDto hotZoneDto in dataContext.HotZoneDtos)
                {
                    UndeadEarth.Contract.Tuple<double, double> north = _distanceCalculator.GetNorthernPoint((double)hotZoneDto.Latitude, (double)hotZoneDto.Longitude, radius);
                    UndeadEarth.Contract.Tuple<double, double> south = _distanceCalculator.GetSouthernPoint((double)hotZoneDto.Latitude, (double)hotZoneDto.Longitude, radius);
                    UndeadEarth.Contract.Tuple<double, double> east = _distanceCalculator.GetEasternPoint((double)hotZoneDto.Latitude, (double)hotZoneDto.Longitude, radius);
                    UndeadEarth.Contract.Tuple<double, double> west = _distanceCalculator.GetWesternPoint((double)hotZoneDto.Latitude, (double)hotZoneDto.Longitude, radius);

                    var shopInHotZone = dataContext.StoreDtos.First(c => c.HotZoneId == hotZoneDto.Id);

                    SafeHouseDto safeHouseNextToStore = new SafeHouseDto
                    {
                        HotZoneId = hotZoneDto.Id,
                        Id = Guid.NewGuid(),
                        Latitude = (shopInHotZone.Latitude + (decimal).1),
                        Longitude = (shopInHotZone.Longitude - (decimal).1)
                    };

                    safeHouses.Add(safeHouseNextToStore);

                    for (int i = 0; i < 4; i++)
                    {
                        UndeadEarth.Contract.Tuple<double, double> points = GetRandomPoint(north, south, east, west);

                        var safeHouse = new SafeHouseDto();
                        safeHouse.Id = Guid.NewGuid();
                        safeHouse.HotZoneId = hotZoneDto.Id;
                        safeHouse.Latitude = (decimal)points.Item1;
                        safeHouse.Longitude = (decimal)points.Item2;

                        safeHouses.Add(safeHouse);
                    }
                }

                dataContext.SafeHouseDtos.InsertAllOnSubmit(safeHouses);
                dataContext.SubmitChanges();

                safeHouses.Clear();
            }
        }