Beispiel #1
0
 private static void Initialisation()
 {
     _animeRepo = new AnimeRepo();
     _logger = new ConsoleLogger();
     _animeFolderManager = new AnimeFolderManager(_basepath, _logger);
     _animeManager = new AnimeManager(new MalDataParser(new XmlSerializerAndDeserializer())
         , _logger, _animeRepo, _username, _password, _animeFolderManager
         , new AnimeSynopsisManager(_animeFolderManager)
         ,_animeSynopsisFileName);
 }
        public MainWindow()
        {
            InitializeComponent();
            CreateAutoMapperMaps();
            _logger = new TextLogger(_basePath + "CustomMalUpdaterWPF.log");
            _animeFolderManager = new AnimeFolderManager(_basePath, _logger);
            _animeRepo = new AnimeRepo();

            _animeManager = new AnimeManager(new MalDataParser(new XmlSerializerAndDeserializer())
                , _logger, _animeRepo, _username, _password, _animeFolderManager
                , new AnimeSynopsisManager(_animeFolderManager)
                , _animeSynopsisFileName);
        }