Example #1
0
        public SoapStrategy(Application app, string userToken, ISoapRepository repository) : base(app, userToken)
        {
            _repository = repository;

            _addPersonBehavior                   = new Behaviors.Soap.AddPersonBehavior(_app, _userToken, _repository);
            _addOrganizationBehavior             = new Behaviors.Soap.AddOrganizationBehavior(_app, _userToken, _repository);
            _addAccountBehavior                  = new Behaviors.Soap.AddAccountBehavior(_app, _userToken, _repository);
            _addAccountPartyRelationshipBehavior = new Behaviors.Soap.AddAccountPartyRelationshipBehavior(_app, _userToken, _repository);
            _addCardBehavior       = new Behaviors.Soap.AddCardBehavior(_app, _userToken, _repository);
            _updateAccountBehavior = new Behaviors.Soap.UpdateAccountBehavior(_app, _userToken, _repository);
        }
Example #2
0
        public SoapStrategy(Application app, string userToken, Credentials credentials) : base(app, userToken)
        {
            _repository  = new SoapRepository(userToken, credentials);
            _credentials = credentials;

            _addPersonBehavior                   = new Behaviors.Soap.AddPersonBehavior(_app, _userToken, _repository);
            _addOrganizationBehavior             = new Behaviors.Soap.AddOrganizationBehavior(_app, _userToken, _repository);
            _addAccountBehavior                  = new Behaviors.Soap.AddAccountBehavior(_app, _userToken, _repository);
            _addAccountPartyRelationshipBehavior = new Behaviors.Soap.AddAccountPartyRelationshipBehavior(_app, _userToken, _repository);
            _addCardBehavior       = new Behaviors.Soap.AddCardBehavior(_app, _userToken, _repository);
            _updateAccountBehavior = new Behaviors.Soap.UpdateAccountBehavior(_app, _userToken, _repository);
        }