Пример #1
0
 public XConnectContactService(IExmContactService exmContactService, IXConnectContactRepository xConnectContactRepository)
 {
     Condition.Requires(exmContactService, nameof(exmContactService)).IsNotNull();
     Condition.Requires(xConnectContactRepository, nameof(xConnectContactRepository)).IsNotNull();
     _exmContactService         = exmContactService;
     _xConnectContactRepository = xConnectContactRepository;
 }
        public SaveMarketingPreferencesService(
            IXConnectContactService xConnectContactService,
            IExmContactService exmContactService,
            IManagerRootService managerRootService)
        {
            Condition.Requires(xConnectContactService, nameof(xConnectContactService)).IsNotNull();
            Condition.Requires(exmContactService, nameof(exmContactService)).IsNotNull();
            Condition.Requires(managerRootService, nameof(managerRootService)).IsNotNull();

            _xConnectContactService = xConnectContactService;
            _exmContactService      = exmContactService;
            _managerRootService     = managerRootService;
        }