Ejemplo n.º 1
0
 /// <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>();
 }
Ejemplo n.º 2
0
 /// <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>();
 }