Beispiel #1
0
        public void SetUp(int a, int b)
        {
            _mediaId = new MediaInfoCommand(_database).Add(TestConstants.AudioFile).Id;

            _cmd = new TagCommand(_database);

            var reader = _cmd.Select();

            while (reader.Read())
            {
                _cmd.Delete(reader.Current.Id);
            }

            _tagId = _cmd.Insert(Name).Id;
            _cmd.AddMedia(_tagId, _mediaId);
        }
Beispiel #2
0
 public void Select_THROWS_IF_DB_DISCONNECTED()
 {
     _database.Disconnect();
     Assert.That(() => _cmd.Select(), Throws.InvalidOperationException);
 }