view 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 source

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);
        }
    }
}