//***********************************CreateDatabase*********************************** private void CreateDatabase(Document doc, List <Element> Elements, ElementRepository elementRepository, CSVDataRepository cSVDataRepository, string type) { var DictionaryData = GetParameterData(doc, Elements, type); List <string> Parameters = GetCompleteParameters(type); elementRepository.CreateElement(DictionaryData, Parameters); IReadOnlyList <DataElement> dataElement = elementRepository.ReadElement(); cSVDataRepository.Create(dataElement, type); }