/// <summary> /// Instantiates the Toy class based on a specified Wrapping Service. /// </summary> /// <param name="aWrappingService">Wrapping Service responsible in providing a specific Wrapping for the Toy.</param> /// <exception cref="MissingWrappingForMenuItemException">Thrown is no Wrapping for the Toy was found.</exception> protected Toy(IWrappingService aWrappingService) { Wrapping = aWrappingService.GetWrapping<Toy>(); }
/// <summary> /// Instantiates the Toy class based on a specified Wrapping Service. /// </summary> /// <param name="aWrappingService">Wrapping Service responsible in providing a specific Wrapping for the Toy.</param> /// <exception cref="MissingWrappingForMenuItemException">Thrown is no Wrapping for the Toy was found.</exception> protected Toy(IWrappingService aWrappingService) { Wrapping = aWrappingService.GetWrapping <Toy>(); }