annotate 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
rev   line source
41
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
1 using System.Collections.Generic;
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
2 using LibrarySystem.Interfaces;
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
3
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
4 namespace LibrarySystem.Core
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
5 {
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
6 public class Book : IBook
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
7 {
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
8 public string Author { get; set; }
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
9 public string ISBN { get; set; }
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
10 public IPublisher Publisher { get; set; }
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
11 public string Title { get; set; }
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
12 public string Id { get; set; }
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
13 public decimal CurrentFee { get; set; }
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
14 public IList<IRental> RentalHistory { get; set; }
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
15
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
16 public Book(IPublication publication)
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
17 {
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
18 Author = publication.Author;
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
19 ISBN = publication.ISBN;
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
20 Title = publication.Title;
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
21 Publisher = publication.Publisher;
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
22 RentalHistory = new List<IRental>(0);
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
23 }
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
24 }
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
25 }