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)); }
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)); }
public SalesReceiptsInstanceProvider(ISalesReceiptsServiceSettings salesReceiptsServiceSettings, IOrderRepository orderRepository) { this.salesReceiptsServiceSettings = salesReceiptsServiceSettings ?? throw new ArgumentNullException(nameof(salesReceiptsServiceSettings)); this.orderRepository = orderRepository ?? throw new ArgumentNullException(nameof(orderRepository)); }