public void SetStrip(ComicStrip comicstrip) { if (comicstrip == null) { throw new InvalidStripException(); } this.Comicstrip = comicstrip; }
public void AddStrip(ComicStrip comicstrip) { if (comicstrip == null) { throw new InvalidComicstripException(); } if (this.Comicstrips.Contains(comicstrip)) { throw new ComicstripAlreadyPresentException(); } this.Comicstrips.Add(comicstrip); }
public DeliveryItem(ComicStrip comicstrip, int quantity) { this.SetStrip(comicstrip); this.SetQuantity(quantity); }
public OrderItem(ComicStrip comicstrip, int quantity) { this.SetStrip(comicstrip); this.SetQuantity(quantity); }