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")); }
public void TearDown() { _msg = null; _client = null; }
public void TearDown() { _request = null; }
public void SetUp() { var sr = new StreamReader(XmlFileName); _request = (TXLife)_xmlSerializer.Deserialize(sr); }
/// <summary> /// Is this TXLife a response /// </summary> /// <param name="txl"></param> /// <returns></returns> public static bool HasResponse(this TXLife txl) { return(!txl.TXLifeResponse.IsEmpty()); }
/// <summary> /// Is this TXLife a request /// </summary> /// <param name="txl"></param> /// <returns></returns> public static bool HasRequest(this TXLife txl) { return(!txl.TXLifeRequest.IsEmpty()); }