Esempio n. 1
0
        public void Initialize()
        {
            webManager     = new WebManagers.WebRequestManager();
            responseReader = new WebManagers.WebResponseReader();

            Filename = "test_urls.json";
            if (File.Exists(AppDomain.CurrentDomain.BaseDirectory + "\\" + Filename))
            {
                Import();
            }
            else
            {
                APItester_sngltn.TestCases.Add(new APItester_sngltn()
                {
                    URI        = "http://msk1-vm-ovisp01:8085/api/Person/GetManager/DegterevaSV"
                    , Method   = "GET"
                    , Expected = "eliseevavv"
                    , OK       = false
                });
                APItester_sngltn.TestCases.Add(new APItester_sngltn()
                {
                    URI        = "http://msk1-vm-ovisp01:8085/api/Person/GetColleges/lobanovamg"
                    , Method   = "GET"
                    , Expected = "[\"a.vagin\",\"Bagirovaev\",\"iku\",\"kotovaen\",\"stalmakovsm\"]"
                    , OK       = false
                });
            }

            Export();
        }
Esempio n. 2
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. 3
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();
        }