using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace StubContext { public class StubContext : LibraryContext { public async Task> booksStub() { List listBook = new List(); //Création des livres BookEntity book1 = new BookEntity { Author = "Lechardeur", Title = "Comment pécho 100% garanti", Isbn = "696969a" }; BookEntity book2 = new BookEntity { Author = "Vianney", Title = "Gros", Isbn = "0015150" }; BookEntity book3 = new BookEntity { Author = "Khéna", Title = "Khéna; un homme, un livre", Isbn = "666666b" }; //Ajout des livres books.Add(book1); books.Add(book2); books.Add(book3); return listBook; } } }