Пример #1
0
 public void SetStrip(ComicStrip comicstrip)
 {
     if (comicstrip == null)
     {
         throw new InvalidStripException();
     }
     this.Comicstrip = comicstrip;
 }
Пример #2
0
 public void AddStrip(ComicStrip comicstrip)
 {
     if (comicstrip == null)
     {
         throw new InvalidComicstripException();
     }
     if (this.Comicstrips.Contains(comicstrip))
     {
         throw new ComicstripAlreadyPresentException();
     }
     this.Comicstrips.Add(comicstrip);
 }
Пример #3
0
 public DeliveryItem(ComicStrip comicstrip, int quantity)
 {
     this.SetStrip(comicstrip);
     this.SetQuantity(quantity);
 }
Пример #4
0
 public OrderItem(ComicStrip comicstrip, int quantity)
 {
     this.SetStrip(comicstrip);
     this.SetQuantity(quantity);
 }