Beispiel #1
0
 public BookInMemory(IAuthorInMemory authorInMemory)
 {
     Books = new List <Book>()
     {
         new Book
         {
             Id            = 1,
             Title         = "Romeo and Juliet",
             NumberOfPages = 480,
             ImgPath       = "romeo.jpg",
             Author        = authorInMemory.GetAuthor(1)
         },
         new Book
         {
             Id            = 2,
             Title         = "Murder on the orient express",
             NumberOfPages = 256,
             ImgPath       = "murder.jpg",
             Author        = authorInMemory.GetAuthor(2)
         },
         new Book
         {
             Id            = 3,
             Title         = "A stone for Danny Fisher",
             NumberOfPages = 317,
             ImgPath       = "stone.jpg",
             Author        = authorInMemory.GetAuthor(3)
         }
     };
     this.authorInMemory = authorInMemory;
 }
Beispiel #2
0
 public EditModel(IBookInMemory bookInMemory, IAuthorInMemory authorInMemory)
 {
     this.bookInMemory   = bookInMemory;
     this.authorInMemory = authorInMemory;
 }
Beispiel #3
0
 public EditModel(IAuthorInMemory authorInMemory)
 {
     this.authorInMemory = authorInMemory;
 }
Beispiel #4
0
 public DetailsModel(IAuthorInMemory authorInMemory)
 {
     this.authorInMemory = authorInMemory;
 }
Beispiel #5
0
 public ListAuthorsModel(IAuthorInMemory authorInMemory)
 {
     this.authorInMemory = authorInMemory;
 }