public SalesReceiptsInstanceProvider(
     ISalesReceiptsServiceSettings salesReceiptsServiceSettings,
     IOrderRepository orderRepository,
     IOrderParametersProvider orderParametersProvider)
 {
     _salesReceiptsServiceSettings =
         salesReceiptsServiceSettings ?? throw new ArgumentNullException(nameof(salesReceiptsServiceSettings));
     _orderRepository         = orderRepository ?? throw new ArgumentNullException(nameof(orderRepository));
     _orderParametersProvider = orderParametersProvider ?? throw new ArgumentNullException(nameof(orderParametersProvider));
 }
示例#2
0
 public SalesReceiptsService(
     ISalesReceiptsServiceSettings salesReceiptsServiceSettings,
     IOrderRepository orderRepository,
     IOrderParametersProvider orderParametersProvider,
     IOrganizationParametersProvider organizationParametersProvider
     )
 {
     this.salesReceiptsServiceSettings = salesReceiptsServiceSettings ?? throw new ArgumentNullException(nameof(salesReceiptsServiceSettings));
     this.orderRepository                = orderRepository ?? throw new ArgumentNullException(nameof(orderRepository));
     this.orderParametersProvider        = orderParametersProvider ?? throw new ArgumentNullException(nameof(orderParametersProvider));
     this.organizationParametersProvider = organizationParametersProvider ?? throw new ArgumentNullException(nameof(organizationParametersProvider));
 }
示例#3
0
 public SalesReceiptsInstanceProvider(ISalesReceiptsServiceSettings salesReceiptsServiceSettings, IOrderRepository orderRepository)
 {
     this.salesReceiptsServiceSettings = salesReceiptsServiceSettings ?? throw new ArgumentNullException(nameof(salesReceiptsServiceSettings));
     this.orderRepository = orderRepository ?? throw new ArgumentNullException(nameof(orderRepository));
 }