Ejemplo n.º 1
0
        public void SetUp()
        {
            // this is slow
            var tr = new StreamReader(XmlFileName);
            var xs = new XmlSerializer(typeof(TXLife), Declarations.SchemaVersion);

            _msg    = (TXLife)xs.Deserialize(tr);
            _client = new AcordServiceClient
                          (new BasicHttpBinding(), new EndpointAddress("http://someserver:80/life"));
        }
Ejemplo n.º 2
0
 public void TearDown()
 {
     _msg    = null;
     _client = null;
 }
Ejemplo n.º 3
0
 public void TearDown()
 {
     _request = null;
 }
Ejemplo n.º 4
0
        public void SetUp()
        {
            var sr = new StreamReader(XmlFileName);

            _request = (TXLife)_xmlSerializer.Deserialize(sr);
        }
Ejemplo n.º 5
0
 /// <summary>
 /// Is this TXLife a response
 /// </summary>
 /// <param name="txl"></param>
 /// <returns></returns>
 public static bool HasResponse(this TXLife txl)
 {
     return(!txl.TXLifeResponse.IsEmpty());
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Is this TXLife a request
 /// </summary>
 /// <param name="txl"></param>
 /// <returns></returns>
 public static bool HasRequest(this TXLife txl)
 {
     return(!txl.TXLifeRequest.IsEmpty());
 }