コード例 #1
0
 public PlanAppService(IRepository <Plan, Guid> planRepository,
                       IPlanDomainService planDomainService,
                       IPlanPriceRepository planPriceRepository,
                       IOrderRepository orderRepository,
                       IObjectMapper mapper)
 {
     _planRepository      = planRepository ?? throw new ArgumentNullException(nameof(planRepository));
     _planDomainService   = planDomainService ?? throw new ArgumentNullException(nameof(planDomainService));
     _planPriceRepository = planPriceRepository ?? throw new ArgumentNullException(nameof(planPriceRepository));
     _orderRepository     = orderRepository ?? throw new ArgumentNullException(nameof(orderRepository));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
コード例 #2
0
 public ProductAppService(IProductRepository productRepository,
                          IRepository <ProductSale, Guid> productSaleRepository,
                          IRepository <ProductSalePrice, Guid> productSalePriceRepository,
                          IRepository <Plan, Guid> planRepository,
                          IRepository <PlanPrice, Guid> planPriceRepository,
                          IObjectMapper objectMapper,
                          IProductDomainService productDomainService,
                          IPlanDomainService planDomainService,
                          IPlanPriceDomainService planPriceDomainService)
 {
     _productRepository          = productRepository ?? throw new ArgumentNullException(nameof(productRepository));
     _productSaleRepository      = productSaleRepository ?? throw new ArgumentNullException(nameof(productSaleRepository));
     _productSalePriceRepository = productSalePriceRepository ?? throw new ArgumentNullException(nameof(productSalePriceRepository));
     _planRepository             = planRepository ?? throw new ArgumentNullException(nameof(planRepository));
     _planPriceRepository        = planPriceRepository ?? throw new ArgumentNullException(nameof(planPriceRepository));
     _objectMapper           = objectMapper ?? throw new ArgumentNullException(nameof(objectMapper));
     _productDomainService   = productDomainService ?? throw new ArgumentNullException(nameof(productDomainService));
     _planDomainService      = planDomainService ?? throw new ArgumentNullException(nameof(planDomainService));
     _planPriceDomainService = planPriceDomainService ?? throw new ArgumentNullException(nameof(planPriceDomainService));
 }