コード例 #1
0
        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);
        }
コード例 #2
0
        public void WriteRandomNumbersInFile(MockDataSpecification dataSpecification)
        {
            var numbers = GetRandomNumbers(dataSpecification);

            WriteDataInFile(numbers);
        }