public void SetUp()
        {
           
            _wpfTester = new WPFTester();

            _window = new Window();

            _wpfTester.ShowWindow(_window);

            Init();
            _ISession = MusicSessionImpl.GetSession(_SK.Builder, new WPFHwndProvider(_window));
            _Session = _ISession as MusicSessionImpl;

           IMusicImporter imi = _ISession.GetDBImporter();
           imi.Load();

           IDirectoryImporterBuilder imib = _ISession.GetImporterBuilder(MusicImportType.Directory) as IDirectoryImporterBuilder;
           Assert.That(imib, Is.Not.Null);
           imib.Directory = DirectoryIn;
           imib.DefaultAlbumMaturity = AlbumMaturity.Discover;

           Assert.That(imib.IsValid, Is.True);
           imi = imib.BuildImporter();
           Assert.That(imi, Is.Not.Null);
           imi.Load();
        }
        protected override void PostOpen(IMusicSession ims)
        {
            ims.AllAlbums.Should().BeEmpty();
            ims.AllGenres.Count.Should().Be(25);
            ims.AllArtists.Should().BeEmpty();

            IDirectoryImporterBuilder imib = ims.GetImporterBuilder(MusicImportType.Directory) as IDirectoryImporterBuilder;
            imib.Should().NotBeNull();
            imib.Directory = DirectoryIn;
            imib.DefaultAlbumMaturity = AlbumMaturity.Discover;

            imib.IsValid.Should().BeTrue();
            IMusicImporter imi = imib.BuildImporter();
            imi.Should().NotBeNull();
            imi.Load();

            ims.ShouldHaveAlbumsLike(Albums[0], AlbumDescriptorCompareMode.AlbumandTrackMD);

        }
        public void SetUp()
        {
            Init();
            _ISession = MusicSessionImpl.GetSession(_SK.Builder);
            _Session = _ISession as MusicSessionImpl;

            IMusicImporter imi = _ISession.GetDBImporter();
            imi.Load();

            IDirectoryImporterBuilder imib = _ISession.GetImporterBuilder(MusicImportType.Directory) as IDirectoryImporterBuilder;
            Assert.That(imib, Is.Not.Null);
            imib.Directory = DirectoryIn;
            imib.DefaultAlbumMaturity = AlbumMaturity.Discover;

            Assert.That(imib.IsValid, Is.True);
            imi = imib.BuildImporter();
            Assert.That(imi, Is.Not.Null);
            imi.Load();
        }