Exemplo n.º 1
0
 public CLIParser(FrontiereCobad frontiereCobad)
 {
     this.gestionaireClubs      = frontiereCobad.GestionaireClubs;
     this.gestionaireCollectifs = frontiereCobad.GestionaireCollectifs;
     this.gestionaireJoueurs    = frontiereCobad.GestionaireJoueurs;
     this.accesseurPoona        = frontiereCobad.AccesseurPoona;
     this.importeurCompetition  = frontiereCobad.ImporteurCompetition;
 }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            var builder = new ConfigurationBuilder()
                          .SetBasePath(Directory.GetCurrentDirectory())
                          .AddJsonFile("appsettings.json", optional: false, reloadOnChange: true);

            var configuration = builder.Build();

            //var connectionString = configuration.GetSection("Secrets")["MySQLConnectionString"];

            var frontierePersistance = new FrontiereStockageSQLite();

            var accesseurPoona = new AccesseurPoonaParFichierCSV();

            var importeurCompetition = new ImporteurDeCompetitionParFichierXML(frontierePersistance);;

            var frontiereCobad = new FrontiereCobad(frontierePersistance, accesseurPoona, importeurCompetition);

            var parser = new CLIParser(frontiereCobad);

            parser.Parse(args);
        }