private List <int> GetRandomNumbers(MockDataSpecification dataSpecification) { var data = new List <int>(); for (int i = 0; i < dataSpecification.Count; i++) { var randomNumber = _random.Next(dataSpecification.ValueFrom, dataSpecification.ValueTo); data.Add(randomNumber); } return(data); }
public void WriteRandomNumbersInFile(MockDataSpecification dataSpecification) { var numbers = GetRandomNumbers(dataSpecification); WriteDataInFile(numbers); }