public void GetAlbumTracksListViewModellTest() { var artistDto = CreateArtist(); var albumDto = new Album { Id = 1, Name = "Some album", Artist = artistDto, ArtistId = artistDto.Id }; var albumViewModel = ModelsMapper.GetAlbumTracksListViewModel(albumDto); Assert.IsNotNull(albumViewModel); Assert.IsTrue(albumViewModel.AlbumDetails.Id == albumDto.Id); Assert.IsTrue(albumViewModel.AlbumDetails.Name.Equals(albumDto.Name, StringComparison.OrdinalIgnoreCase)); Assert.IsNotNull(albumViewModel.AlbumDetails.Artist); Assert.IsTrue(albumViewModel.AlbumDetails.Artist.Id == albumDto.ArtistId); }