public void GetAllMusicAlbumTest() { Service.MusicAlbumService testService = new Service.MusicAlbumService(this.AlbumsRepository); var result = testService.GetAllMusicAlbum(); Assert.That(result.Count, Is.EqualTo(2)); }
public void DeleteMusicAlbumTest() { Service.MusicAlbumService testService = new Service.MusicAlbumService(AlbumsRepository); var result = testService.DeleteMusicAlbum(1); Assert.That(result, Is.EqualTo(true)); var albumModels = testService.GetAllMusicAlbum(); Assert.That(albumModels.Count, Is.EqualTo(1)); }