/// <summary> /// Get data from file and load into list /// </summary> /// <returns></returns> public List <string> GetData() { var data = new List <string>(); var lines = _fileProcessor.GetFileContents(); Condition.Requires(lines, "File contents").IsNotNull().IsNotEmpty(); for (var i = 0; i < lines.Length; i++) { data.Add(lines[i]); } return(data); }