コード例 #1
0
 /// <summary>
 /// <see cref="ProductsGetService"/> クラスの新しいインスタンスを作成します。
 /// </summary>
 /// <param name="productsGetRepository">商品マスタリストの取得リポジトリ。</param>
 /// <param name="logger">ロガー。</param>
 public ProductsGetService(
     IProductsGetRepository productsGetRepository,
     ILogger <ProductsGetService> logger
     )
 {
     this._productsGetRepository = productsGetRepository;
     this._logger    = logger;
     this._outputDto = new ProductsGetOutputDto();
 }
コード例 #2
0
 /// <summary>
 /// <see cref="ProductsPutService"/> クラスの新しいインスタンスを作成します。
 /// </summary>
 /// <param name="getRepository">取得リポジトリ。</param>
 /// <param name="putRepository">更新リポジトリ。</param>
 /// <param name="executor">実行者。</param>
 /// <param name="logger">ロガー。</param>
 public ProductsPutService(
     IProductsGetRepository getRepository,
     IProductsPutRepository putRepository,
     IExecutionModel executor,
     ILogger <ProductsPutService> logger
     )
 {
     this.GetRepository = getRepository;
     this.PutRepository = putRepository;
     this.Executor      = executor;
     this.Logger        = logger;
     this.Output        = new ProductsPutOutputDto();
 }