public LibraryItem(ISBN isbn, string title, Category category)
        {
            Validate(new KeyValuePair <string, object>("Title", title));

            _isbn     = isbn;
            _title    = title;
            _category = category;
            _copies   = new ObservableConcurrentDictionary <uint, ItemCopy>();
            _copies.CollectionChanged += _copies_CollectionChanged;
            AddCopy();
        }
Exemple #2
0
 public Book(ISBN isbn, string name, Category category)
     : this(isbn, name, category, string.Empty)
 {
 }
Exemple #3
0
 public Book(ISBN isbn, string name, Category category, string author)
     : base(isbn, name, category)
 {
     Author = author;
 }
Exemple #4
0
 public Journal(ISBN isbn, string name, Category category)
     : this(isbn, name, category, string.Empty)
 {
 }
Exemple #5
0
 public Journal(ISBN isbn, string name, Category category, string editor)
     : base(isbn, name, category)
 {
     Editor = editor;
 }