comparison Library/LibrarySystem/Core/Book.cs @ 41:dbd242eb9c33

Initial wave of TDD development
author adminsh@apollo
date Tue, 03 Apr 2012 23:29:32 +0100
parents
children aef06698d9e2
comparison
equal deleted inserted replaced
40:64c89891d7b6 41:dbd242eb9c33
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 }