private void DoPostResults(Client client)
        {
            IET.Inspec.Fairburn.AgentTemplate.Proxy.PostResultsRequest req = new IET.Inspec.Fairburn.AgentTemplate.Proxy.PostResultsRequest();
            req.TestMode = 1;
            AgentAcknowledgeResponse resp = client.PostResults(req);

            Assert.IsInstanceOf(typeof(AgentAcknowledgeResponse), resp);
        }
        public void PostResultsTest_InputTestMode1_OutputSuccess()
        {
            Service            x   = new Service();
            PostResultsRequest req = new PostResultsRequest();

            req.Lock     = new Guid();
            req.TestMode = 1;
            AgentAcknowledgeResponse resp = x.PostResults(req);

            Assert.IsInstanceOf(typeof(AgentAcknowledgeResponse), resp);
        }
Esempio n. 3
0
 private AgentAcknowledgeResponse DoPostResults(PostResultsRequest request)
 {
     using (DatabaseRequest db = new DatabaseRequest(_Db, "AgentTemplatePostResults"))
     {
         db.AddParameter("@Lock", request.Lock);
         if (request.TestMode != 0)
         {
             db.AddParameter("@TestMode", request.TestMode);
         }
         db.ExecuteNonQuery();
         AgentAcknowledgeResponse response = new AgentAcknowledgeResponse();
         return(response);
     }
 }