public void FindFanartTest()
        {
            const string NfoFullPath = @"C:\tests\movies\this is a movie\this is a movie file-fanart.jpg";
            const string NfoPath     = @"C:\tests\movies\this is a movie\";

            string actual = ImportMoviesFactory.FindFanart("this is a movie file.avi", NfoPath);

            Assert.IsTrue(actual == NfoFullPath);
        }
Exemple #2
0
 void bgw_DoWork(object sender, DoWorkEventArgs e)
 {
     ImportMoviesFactory.ConvertMediaPathImportToDB();
 }
Exemple #3
0
 /// <summary>
 /// Event handler for the BtnOk Click event.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 private void BtnOkClick(object sender, EventArgs e)
 {
     ImportMoviesFactory.MergeImportDatabaseWithMain();
     InvokeOkClicked(new EventArgs());
 }
Exemple #4
0
 /// <summary>
 /// Event handler for the BtnOk Click event.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 private void BtnOkClick(object sender, EventArgs e)
 {
     MovieDBFactory.RemoveMissingMovies();
     ImportMoviesFactory.MergeImportDatabaseWithMain();
     this.Close();
 }
Exemple #5
0
 /// <summary>
 /// Event handler for the BtnCancel Click event.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 private void BtnCancelClick(object sender, EventArgs e)
 {
     ImportMoviesFactory.CancelMovieImport();
     this.Close();
 }