diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Library/LibrarySystem/Core/Book.cs	Tue Apr 03 23:29:32 2012 +0100
@@ -0,0 +1,25 @@
+using System.Collections.Generic;
+using LibrarySystem.Interfaces;
+
+namespace LibrarySystem.Core
+{
+    public class Book : IBook
+    {
+        public string Author { get; set; }
+        public string ISBN { get; set; }
+        public IPublisher Publisher { get; set; }
+        public string Title { get; set; }
+        public string Id { get; set; }
+        public decimal CurrentFee { get; set; }
+        public IList<IRental> RentalHistory { get; set; }
+
+        public Book(IPublication publication)
+        {
+            Author = publication.Author;
+            ISBN = publication.ISBN;
+            Title = publication.Title;
+            Publisher = publication.Publisher;
+            RentalHistory = new List<IRental>(0);
+        }
+    }
+}