Exemple #1
0
        public void SetConfigDetails_returnsEmptyStringForUpdateConnection()
        {
            ReadConfigFile();
            var jsonRequest           = GetJsonRequest("SetConfiguration");
            AgentRequestHandler agent = new AgentRequestHandler();
            string jsonResponse       = agent.SetConfigDetails("UpdateConnectionConfiguration", jsonRequest);

            Assert.IsTrue(jsonResponse.Equals(string.Empty));
        }
Exemple #2
0
        public void SetConfigDetails_returnsJsonResponseForSetConfiguration()
        {
            ReadConfigFile();
            var jsonRequest           = GetJsonRequest("SetConfiguration");
            AgentRequestHandler agent = new AgentRequestHandler();
            string jsonResponse       = agent.SetConfigDetails("SetConfiguration", jsonRequest);

            Assert.IsTrue(jsonResponse.Length > 0);
        }