Esempio n. 1
0
        public AdinTceRepo()
        {
            this._CommandBuilder = new AdinTceCommandBuilder(new TokenMiniFactory(), new FormatFactory());
            this._webManager     = new AdinTceWebManager();
            this._responseReader = new AdinTceResponseReader();
            this._jsonManager    = new AdinTceJsonManager();

            _webManager.SetCredentials(new System.Net.NetworkCredential(
                                           ConfigurationManager.AppSettings["AdinTceLogin"], ConfigurationManager.AppSettings["AdinTcePassword"]));

            GUIDtoken    = new AdinTceGUIDToken();
            tokenBuilder = new AdinTceExplicitTokenBuilder();
        }
Esempio n. 2
0
        public AdinTceRepo(
            IQueryManagers.ICommandBuilder CommandBuilder_,
            IWebManagers.IWebManager webManager_,
            IWebManagers.IResponseReader responseReader_,
            IJsonManagers.IJsonManger jsonManager_)
        {
            this._CommandBuilder = CommandBuilder_;
            this._webManager     = webManager_;
            this._responseReader = responseReader_;
            this._jsonManager    = jsonManager_;

            GUIDtoken    = new AdinTceGUIDToken();
            tokenBuilder = new AdinTceExplicitTokenBuilder();
        }