Exemple #1
0
        public SendController(ISendBusiness sendBusiness, ICommonBusiness commonBusiness, IConsumerBusiness consumerBusiness, ILookupBusiness lookupBusiness)
        {
            sendBusiness.ThrowIfNull(nameof(sendBusiness));
            commonBusiness.ThrowIfNull(nameof(commonBusiness));
            consumerBusiness.ThrowIfNull(nameof(consumerBusiness));
            lookupBusiness.ThrowIfNull(nameof(lookupBusiness));

            _sendBusiness     = sendBusiness;
            _commonBusiness   = commonBusiness;
            _consumerBusiness = consumerBusiness;
            _lookupBusiness   = lookupBusiness;
        }
        public ConsumerController(IConsumerBusiness business)
        {
            business.ThrowIfNull(nameof(business));

            _business = business;
        }