Пример #1
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 public ProductsService()
 {
     this.dataAccessObject = new ProductDataAccessObject();
 }
Пример #2
0
 /// <summary>
 /// Constructor with data access layer dependency injection.
 /// </summary>
 /// <param name="dataAccessObject"></param>
 public ProductsService(IProductDataAccessObject dataAccessObject)
 {
     this.dataAccessObject = dataAccessObject;
 }