public StrokeUnitRecordFromCSV(StrokeUnitRecordFromCSV copy) { Name = new string(copy.Name); Street = new string(copy.Street); PostCode = new string(copy.PostCode); City = new string(copy.City); Latitude = copy.Latitude; Longitude = copy.Longitude; }
public async Task <IStrokeUnitRecord> WithLocationAsync(ILocationService locationService, CancellationToken cancellationtoken) { var result = new StrokeUnitRecordFromCSV(this); (result.Latitude, result.Longitude) = await locationService.GetLocationAsync(Location, cancellationtoken); if (result.Latitude == 0 && result.Longitude == 0) { return(null); } return(result); }