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); }
void bgw_DoWork(object sender, DoWorkEventArgs e) { ImportMoviesFactory.ConvertMediaPathImportToDB(); }
/// <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()); }
/// <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(); }
/// <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(); }