Files
cloud-cap-samples/media-store/test/data/media-store.mock.js

189 lines
4.3 KiB
JavaScript

const FIRST_TRACK = {
"@odata.context": "$metadata#Tracks(genre(),album(artist()))/$entity",
ID: 1,
name: "For Those About To Rock (We Salute You)",
composer: "Angus Young, Malcolm Young, Brian Johnson",
unitPrice: 0.99,
album_ID: 1,
genre_ID: 1,
album: {
ID: 1,
title: "For Those About To Rock We Salute You",
artist_ID: 1,
artist: {
ID: 1,
name: "AC/DC",
},
},
genre: {
ID: 1,
name: "Rock",
},
};
const ALL_ALBUMS_WITH_TRACKS_BY_ARTIST = {
"@odata.context": "$metadata#Albums(tracks())",
value: [
{
ID: 1,
title: "For Those About To Rock We Salute You",
artist_ID: 1,
tracks: [
{
ID: 1,
name: "For Those About To Rock (We Salute You)",
composer: "Angus Young, Malcolm Young, Brian Johnson",
unitPrice: 0.99,
album_ID: 1,
genre_ID: 1,
},
{
ID: 6,
name: "Put The Finger On You",
composer: "Angus Young, Malcolm Young, Brian Johnson",
unitPrice: 0.99,
album_ID: 1,
genre_ID: 1,
},
{
ID: 7,
name: "Let's Get It Up",
composer: "Angus Young, Malcolm Young, Brian Johnson",
unitPrice: 0.99,
album_ID: 1,
genre_ID: 1,
},
{
ID: 8,
name: "Inject The Venom",
composer: "Angus Young, Malcolm Young, Brian Johnson",
unitPrice: 0.99,
album_ID: 1,
genre_ID: 1,
},
{
ID: 9,
name: "Snowballed",
composer: "Angus Young, Malcolm Young, Brian Johnson",
unitPrice: 0.99,
album_ID: 1,
genre_ID: 1,
},
{
ID: 10,
name: "Evil Walks",
composer: "Angus Young, Malcolm Young, Brian Johnson",
unitPrice: 0.99,
album_ID: 1,
genre_ID: 1,
},
{
ID: 11,
name: "C.O.D.",
composer: "Angus Young, Malcolm Young, Brian Johnson",
unitPrice: 0.99,
album_ID: 1,
genre_ID: 1,
},
{
ID: 12,
name: "Breaking The Rules",
composer: "Angus Young, Malcolm Young, Brian Johnson",
unitPrice: 0.99,
album_ID: 1,
genre_ID: 1,
},
{
ID: 13,
name: "Night Of The Long Knives",
composer: "Angus Young, Malcolm Young, Brian Johnson",
unitPrice: 0.99,
album_ID: 1,
genre_ID: 1,
},
{
ID: 14,
name: "Spellbound",
composer: "Angus Young, Malcolm Young, Brian Johnson",
unitPrice: 0.99,
album_ID: 1,
genre_ID: 1,
},
],
},
{
ID: 4,
title: "Let There Be Rock",
artist_ID: 1,
tracks: [
{
ID: 15,
name: "Go Down",
composer: "AC/DC",
unitPrice: 0.99,
album_ID: 4,
genre_ID: 1,
},
{
ID: 16,
name: "Dog Eat Dog",
composer: "AC/DC",
unitPrice: 0.99,
album_ID: 4,
genre_ID: 1,
},
{
ID: 17,
name: "Let There Be Rock",
composer: "AC/DC",
unitPrice: 0.99,
album_ID: 4,
genre_ID: 1,
},
{
ID: 18,
name: "Bad Boy Boogie",
composer: "AC/DC",
unitPrice: 0.99,
album_ID: 4,
genre_ID: 1,
},
{
ID: 19,
name: "Problem Child",
composer: "AC/DC",
unitPrice: 0.99,
album_ID: 4,
genre_ID: 1,
},
{
ID: 20,
name: "Overdose",
composer: "AC/DC",
unitPrice: 0.99,
album_ID: 4,
genre_ID: 1,
},
{
ID: 21,
name: "Hell Ain't A Bad Place To Be",
composer: "AC/DC",
unitPrice: 0.99,
album_ID: 4,
genre_ID: 1,
},
{
ID: 22,
name: "Whole Lotta Rosie",
composer: "AC/DC",
unitPrice: 0.99,
album_ID: 4,
genre_ID: 1,
},
],
},
],
};
module.exports = { FIRST_TRACK, ALL_ALBUMS_WITH_TRACKS_BY_ARTIST };