Exemple #1
0
 public BranchHour(LibraryBranch branchId, int closeTime, DayOfWeek dayOfWeek, int openTime)
 {
     this.Branch    = branchId;
     this.DayOfWeek = dayOfWeek;
     this.OpenTime  = openTime;
     this.CloseTime = closeTime;
 }
Exemple #2
0
 public Book(double cost, LibraryBranch location, StatusId status, string title, int year,
             string imageUrl, int numberOfCopies, string isbn, string author, string deweyIndex)
     : base(cost, location, status, title, year, imageUrl, numberOfCopies)
 {
     ISBN       = isbn.Replace("-", "");
     Author     = author;
     DeweyIndex = deweyIndex;
 }
Exemple #3
0
 public Patron(string address, DateTime dateOfBirth, string firstName,
               LibraryBranch homeLibraryBranch, string lastName, LibraryCard libraryCard)
 {
     Address           = address;
     DateOfBirth       = dateOfBirth;
     FirstName         = firstName;
     HomeLibraryBranch = homeLibraryBranch;
     LastName          = lastName;
     LibraryCard       = libraryCard;
 }
Exemple #4
0
 public LibraryAsset(double cost, LibraryBranch location, StatusId status, string title, int year, string imageUrl, int numberOfCopies)
 {
     Cost           = Convert.ToDecimal(cost);
     Location       = location;
     Status         = new Status(status);
     Title          = title;
     Year           = (short)year;
     NumberOfCopies = numberOfCopies;
     ImageUrl       = ImageChecker(imageUrl);
 }
Exemple #5
0
 public Video(double cost, LibraryBranch location, StatusId status, string title, short year, string imageUrl, int numberOfCopies, string director)
     : base(cost, location, status, title, year, imageUrl, numberOfCopies)
 {
     this.Director = director;
 }