public void POSTRejectAgent_PositiveTest()
        {
            InitializeActions();

            Method = HttpVerbs.Post;
            Route  = "RejectAgent";
            ExpectedResponseType           = typeof(bool);
            ExpectedResponseHttpStatusCode = HttpStatusCode.OK;

            Body = JSONData.GetJsonFromObject(typeof(int), TestsRunParams["TestAgentID"]);

            agentActions.ClearURLData();

            var result = agentActions.RunAPI <bool>(EndPoint, Route, Method, Body);

            Verification(agentActions, result);
        }
Esempio n. 2
0
        public void POSTIsFileExists_PositiveTest()
        {
            InitializeActions();

            Method = HttpVerbs.Post;
            Route  = "FileExists";
            ExpectedResponseType           = typeof(bool);
            ExpectedResponseHttpStatusCode = HttpStatusCode.OK;

            Body = JSONData.GetJsonFromObject(typeof(string), TestsRunParams["TestBlobFileName"]);

            careingtonActions.ClearURLData();

            var result = careingtonActions.RunAPI <bool>(EndPoint, Route, Method, Body);

            Verification(careingtonActions, result);
        }
Esempio n. 3
0
        public void POSTApproveAgency_PositiveTest()
        {
            InitializeActions();

            Method = HttpVerbs.Post;
            Route  = "ApproveAgency";
            ExpectedResponseType           = typeof(bool);
            ExpectedResponseHttpStatusCode = HttpStatusCode.OK;

            Body = JSONData.GetJsonFromObject(typeof(int), TestsRunParams["TestAgencyID"]);

            agencyActions.ClearURLData();

            #region General Actions
            var result = agencyActions.RunAPI <bool>(EndPoint, Route, Method, Body);
            #endregion

            Verification(agencyActions, result);
        }