The Dummy Data Provider

As we can easily see, we're emulating the role of a Data Provider returning one or more sample Quizzes in a credible fashion. The reason for this can't be more obvious; we don't have any Data Provider in place for the time being (and we won't until we reach Chapter 4, Data Model with Entity Framework Core); hence, this is the only way we have to output some stuff and see some decent results on screen.

It's also worth noting that we built it in a way that it will always return identical items, as long as the num parameter value remains the same:

  • The generated items Id will follow a linear sequence, from 1 to num.
  • Any generated item will have incremental CreatedDate and LastModifiedDate values; the higher the Id is, ...

Get ASP.NET Core 2 and Angular 5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.