public CreditCard3dsiController(ICreditCard3dsi service, ISubmissionService submissions, IMapper mapper) { if (service == null) { throw new ArgumentNullException(nameof(service)); } if (submissions == null) { throw new ArgumentNullException(nameof(submissions)); } if (mapper == null) { throw new ArgumentNullException(nameof(mapper)); } this.service = service; this.submissions = submissions; this.mapper = mapper; }
public SubmitOrderService(IShoppingCartProvider shoppingCart, ICreditCard3dsi creditCard3dsi, ICreditCard3dsiDemo creditCard3dsiDemo, IPurchaseOrder purchaseOrder) { if (shoppingCart == null) { throw new ArgumentNullException(nameof(shoppingCart)); } if (creditCard3dsi == null) { throw new ArgumentNullException(nameof(creditCard3dsi)); } if (creditCard3dsiDemo == null) { throw new ArgumentNullException(nameof(creditCard3dsiDemo)); } if (purchaseOrder == null) { throw new ArgumentNullException(nameof(purchaseOrder)); } this.shoppingCart = shoppingCart; this.creditCard3dsi = creditCard3dsi; this.creditCard3dsiDemo = creditCard3dsiDemo; this.purchaseOrder = purchaseOrder; }