//delete
        public dynamic DeleteCall(Enum endpt, string query = "", int expectedCode = 200)
        {
            StartStep(endpt, "Delete", expectedCode);
            var ept = $"{RootEndpt}{endpt.Api()}{query}";

            RspMsg = Client.DeleteAsync(ept).Result;

            AssertResult(expectedCode, RspMsg);

            return(RspMsg.GetRsp());
        }
        //post
        public dynamic PostCall(Enum endpt, object body, string vars, int expectedCode = 200)
        {
            StartStep(endpt, "Post", expectedCode);
            var data = FormatBody(body);

            RspMsg = Client.PostAsync(RootEndpt + endpt.Api() + vars, data).Result;
            var a = RspMsg.Content.ReadAsStringAsync().Result;

            AssertResult(expectedCode, RspMsg);

            return(RspMsg.GetRsp());
        }
        //get
        public dynamic GetCall(Enum endpt, string query = "", int expectedCode = 200)
        {
            StartStep(endpt, "Get", expectedCode);
            var ept = $"{RootEndpt}{endpt.Api()}{query}";

            //Console.WriteLine("GET: "+ept);
            RspMsg = Client.GetAsync(ept).Result;
            var a = RspMsg.Content.ReadAsStringAsync();

            //Console.WriteLine("rsp: " + a.Result);
            AssertResult(expectedCode, RspMsg);

            return(RspMsg.GetRsp());
        }
        public dynamic DeleteCall(Enum endpt, object body, string query = "", int expectedCode = 200)
        {
            StartStep(endpt, "Delete", expectedCode);
            var ept = $"{RootEndpt}{endpt.Api()}{query}";

            var request = new HttpRequestMessage(HttpMethod.Delete, ept)
            {
                Content = FormatBody(body)
            };

            RspMsg = Client.SendAsync(request).Result;

            AssertResult(expectedCode, RspMsg);

            return(RspMsg.GetRsp());
        }