Ejemplo n.º 1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            PlayerDatabase    database          = new PlayerDatabase();
            FileRepository    fileRepository    = new FileRepository();
            RestApiRepository restApiRepository = new RestApiRepository();
            MFLRepository     repository        = new MFLRepository(restApiRepository, fileRepository);
            MFLController     controller        = new MFLController(repository, database);
            Manager           manager           = new Manager(controller);

            controller.Manager = manager;

            Application.Run(manager);
        }
Ejemplo n.º 2
0
 public MFLController(IMFLRepository mflRepository, PlayerDatabase database)
 {
     _mflRepository = mflRepository;
     _database      = database;
 }