From ee3e31b317ebaa8b28d7bdfb264f62a3b1b6fa61 Mon Sep 17 00:00:00 2001 From: JuanDDY Date: Sun, 29 Oct 2023 11:22:43 -0500 Subject: [PATCH] erfgh --- mynewapp/src/app/serie/dataSeries.ts | 21 ++++++++++++++++++++ mynewapp/src/app/serie/serie.service.spec.ts | 16 +++++++++++++++ mynewapp/src/app/serie/serie.service.ts | 10 ++++++++++ 3 files changed, 47 insertions(+) create mode 100644 mynewapp/src/app/serie/dataSeries.ts create mode 100644 mynewapp/src/app/serie/serie.service.spec.ts create mode 100644 mynewapp/src/app/serie/serie.service.ts diff --git a/mynewapp/src/app/serie/dataSeries.ts b/mynewapp/src/app/serie/dataSeries.ts new file mode 100644 index 0000000..bc07584 --- /dev/null +++ b/mynewapp/src/app/serie/dataSeries.ts @@ -0,0 +1,21 @@ +import {Serie} from "./serie.js" + +export const dataSeries = [ + new Serie (1,"Breaking Bad","AMC", 5,"Set and filmed in Albuquerque, New Mexico, the series tells the story of Walter White, a struggling and depressed high school chemistry teacher who is diagnosed with lung cancer" , + "https://www.amc.com/shows/breaking-bad","https://i.imgur.com/GGje0vc.jpg") , + + new Serie (2,"Orange Is the New Black", "Netflix", 6, "The series begins revolving around Piper Chapman, a woman in her thirties living in New York City who is sentenced to 15 months in Litchfield Penitentiary", + "https://www.netflix.com/co/title/70242311","https://i.imgur.com/EvKe48G.jpg"), + + new Serie (3, "Game of Thrones","HBO", 7, "American fantasy drama", "https://www.hbo.com/game-of-thrones", + "https://i.imgur.com/TDCEV1S.jpg"), + + new Serie (4, "The Big Bang Theory", "CBS", 12, "Leonard and Sheldon are brilliant physicists—geniuses in the laboratory but socially challenged everywhere else. Enter beautiful, street-smart neighbor Penny, who aims to teach them a thing or two about life. Despite their on-again, off-again relationship in the past, Leonard and Penny have finally gotten married. Even Sheldon has found a female companion, entering into a relationship agreement with neurobiologist Amy Farrah Fowler, and he recently took their relationship to the next level by marrying her after a long courtship. In their free time, Leonard and Sheldon enjoy fantasy role-playing games with their ever-expanding universe of friends, including fellow scientists Koothrappali, Wolowitz, and Wolowitz’s adorable microbiologist wife, Bernadette, who is adjusting to life with their two children.", + "https://www.cbs.com/shows/big_bang_theory/about/", "https://i.imgur.com/uAEpVWk.jpg"), + + new Serie (5, "Sherlock", "BBC", 4, "Sherlock depicts consulting detective Sherlock Holmes (Benedict Cumberbatch) solving various mysteries in modern-day London. Holmes is assisted by his flatmate and friend, Dr John Watson (Martin Freeman), who has returned from military service in Afghanistan with the Royal Army Medical Corps", + "https://www.bbc.co.uk/programmes/b018ttws", "https://i.imgur.com/02B7qhj.jpg"), + + new Serie (6, "A Very English Scandal", "BBC", 2, "A Very English Scandal is a fact-based three-part British television comedy-drama miniseries based on John Preston's book of the same name.", + "https://www.bbc.co.uk/programmes/p065smy4", "https://i.imgur.com/D4y3DrQ.jpg"), + ]; \ No newline at end of file diff --git a/mynewapp/src/app/serie/serie.service.spec.ts b/mynewapp/src/app/serie/serie.service.spec.ts new file mode 100644 index 0000000..c65c4a2 --- /dev/null +++ b/mynewapp/src/app/serie/serie.service.spec.ts @@ -0,0 +1,16 @@ +/* tslint:disable:no-unused-variable */ + +import { TestBed, async, inject } from '@angular/core/testing'; +import { SerieService } from './serie.service'; + +describe('Service: Serie', () => { + beforeEach(() => { + TestBed.configureTestingModule({ + providers: [SerieService] + }); + }); + + it('should ...', inject([SerieService], (service: SerieService) => { + expect(service).toBeTruthy(); + })); +}); diff --git a/mynewapp/src/app/serie/serie.service.ts b/mynewapp/src/app/serie/serie.service.ts new file mode 100644 index 0000000..f695778 --- /dev/null +++ b/mynewapp/src/app/serie/serie.service.ts @@ -0,0 +1,10 @@ +import { Injectable } from '@angular/core'; + +@Injectable({ + providedIn: 'root' +}) +export class SerieService { + +constructor() { } + +}