コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="AuditEventParser"/> class.
        /// </summary>
        /// <param name="odmResponse">The odm response.</param>
        public AuditEventParser(IRWSResponse odmResponse)
        {
            SetResponse(odmResponse);

            REF_STATE = AUDIT_REF_STATE;

            STATE = STATE_NONE;
        }
コード例 #2
0
        public void TwoHundredRequest_successfully_returns_RWS_info()
        {
            TwoHundredRequest req = new TwoHundredRequest();

            Assert.IsTrue(req.UrlPath().Contains("twohundred"));

            IRWSResponse resp = _connection.SendRequest(req);

            Assert.IsNotNull(resp);
            Assert.IsInstanceOfType(resp, typeof(RWSTextResponse));
            Assert.AreEqual(HttpStatusCode.OK, _connection.GetLastResult().StatusCode);
        }
コード例 #3
0
        public void VersionRequest_can_propery_parse_RWS_version_number()
        {
            VersionRequest req = new VersionRequest();

            Assert.IsTrue(req.UrlPath().Contains("version"));

            IRWSResponse resp = _connection.SendRequest(req);

            Assert.IsNotNull(resp);
            Assert.IsInstanceOfType(resp, typeof(RWSTextResponse));
            Assert.AreEqual(HttpStatusCode.OK, _connection.GetLastResult().StatusCode);
        }
コード例 #4
0
        /// <summary>
        /// Sets the response.
        /// </summary>
        /// <param name="odmResponse">The odm response.</param>
        public void SetResponse(IRWSResponse odmResponse)
        {
            var odm = odmResponse as RWSResponse;

            OdmXmlDoc = odm != null?odm.GetXDocument() : XDocument.Parse("");
        }
コード例 #5
0
        /// <summary>
        /// Fluent method to set the odm response.
        /// </summary>
        /// <param name="odmResponse">The odm response.</param>
        /// <returns></returns>
        public IParser ForOdmResponse(IRWSResponse odmResponse)
        {
            SetResponse(odmResponse);

            return(this);
        }
コード例 #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ClinicalViewMetadataParser"/> class.
 /// </summary>
 /// <param name="odmResponse">The odm response.</param>
 public ClinicalViewMetadataParser(IRWSResponse odmResponse)
 {
     SetResponse(odmResponse);
 }