Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | 5x 5x 16x 16x 5x 1x 5x | import { IceCream } from "./IceCream"; import { IIceCreamProvider } from "./IIceCreamProvider"; export class IceCreamFakeProvider implements IIceCreamProvider { public getAll(): Promise<Array<IceCream>> { return new Promise<Array<IceCream>>(resolve => { let list = [ { UniqueId: "1", Title: "Cherry" }, { UniqueId: "2", Title: "Chocolate" }, { UniqueId: "3", Title: "Coffee and Cookie" }, { UniqueId: "10", Title: "Vanilla" } ] as IceCream[]; resolve(list); }); } public buy(uniqueid: string, quantity: number): Promise<void> { return new Promise<void>(resolve => resolve()); } } |