Exemple #1
0
        public RestStrategy(Application app, string userToken, IRestRepository repository) : base(app, userToken)
        {
            _repository = repository;

            _testConnectionBehavior = new Behaviors.Rest.TestConnectionBehavior(_userToken, _repository);
            _inquryBehavior         = new Behaviors.Rest.InquiryBehavior(_app, _userToken, _repository);
        }
Exemple #2
0
        public RestStrategy(Application app, string userToken, Credentials credentials) : base(app, userToken)
        {
            _repository  = new RestRepository(userToken, credentials);
            _credentials = credentials;

            _testConnectionBehavior = new Behaviors.Rest.TestConnectionBehavior(_userToken, _repository);
            _inquryBehavior         = new Behaviors.Rest.InquiryBehavior(_app, _userToken, _repository);
        }