Ejemplo n.º 1
0
        private async Task SetUpData(string filePath)
        {
            string[] file = await _fileLoader.ReadFile(filePath);

            _userInterface.ShowLoadingFileMessage(filePath);

            _userInterface.ShowTransformingDataMessage();
            PrecipitationResults result = _dataTransformer.Transform(file);

            await _precipitationRepository.Add(result.GridReferences);

            _userInterface.ShowCreatingDatabaseMessage();
        }