public override void ExecuteAlgorithm()
        {
            Random random            = new Random();
            int    size_measurements = random.Next(1, 15),
                   size_string       = random.Next(4, 6);
            ICollection <Measurement> measurements = GetMeasurements(size_measurements);

            addMeasurementRecords = new RandomAddMeasurementRecords(measurements, new RandomString(random, size_string));
            Repository.addAllMeasurements(addMeasurementRecords.getRecords());
        }
Ejemplo n.º 2
0
        public override void ExecuteAlgorithm()
        {
            Random        random = new Random();
            List <string> list_names_parameters = new List <string>();

            list_names_parameters.Add("Param" + 1);
            ICollection <Measurement> measurements = GetMeasurements(1);

            addMeasurementRecords = new RandomAddMeasurementRecords(measurements, new RandomByTheList(random, list_names_parameters));
            Repository.addAllMeasurements(addMeasurementRecords.getRecords());
        }