Exemple #1
0
        static void Main(string[] args)
        {
            ValidatorService validatorService = new ValidatorService();
            FiltrService     filtrService     = new FiltrService();
            CitiesController citiesController = new CitiesController(validatorService, filtrService);
            FiltrData        data             = new FiltrData
            {
                Cities = new City[]
                {
                    new City {
                        Budget = 1000, Name = "Moscow", Point = new Point {
                            X = 1, Y = 1
                        }
                    },
                    new City {
                        Budget = 700, Name = "Piter", Point = new Point {
                            X = 1, Y = 2
                        }
                    },
                    new City {
                        Budget = 300, Name = "Tver", Point = new Point {
                            X = 2, Y = 1
                        }
                    }
                },
                Options = new FiltrOptions
                {
                    Iterations = 12,
                    PercentBet = 0.06
                }
            };

            citiesController.FiltrData(data);
        }