41
|
1 using System.Collections.Generic;
|
|
2 using LibrarySystem.Interfaces;
|
|
3
|
|
4 namespace LibrarySystem.Core
|
|
5 {
|
|
6 public class Book : IBook
|
|
7 {
|
|
8 public string Author { get; set; }
|
|
9 public string ISBN { get; set; }
|
|
10 public IPublisher Publisher { get; set; }
|
|
11 public string Title { get; set; }
|
|
12 public string Id { get; set; }
|
|
13 public decimal CurrentFee { get; set; }
|
|
14 public IList<IRental> RentalHistory { get; set; }
|
|
15
|
|
16 public Book(IPublication publication)
|
|
17 {
|
|
18 Author = publication.Author;
|
|
19 ISBN = publication.ISBN;
|
|
20 Title = publication.Title;
|
|
21 Publisher = publication.Publisher;
|
|
22 RentalHistory = new List<IRental>(0);
|
|
23 }
|
|
24 }
|
|
25 }
|