public void test_wcf_analytic_client_loadlist() { AnalyticClient proxy = new AnalyticClient(); proxy.Open(); //TODO: catch faults to handle reconnect //ie. subscribe to proxy.InnerChannel.Faulted Session <List <Analytic> > response = proxy.LoadList(new Session <NullT> { SqlKey = SQLKEYANALYST }); proxy.Close(); Assert.IsTrue(response.SessionOk); //Assert.AreEqual(response.ServerMessage, String.Empty); //Assert.AreEqual(response.SqlKey, this.SQLKEYPRIVATE); }
public void test_wcf_analytic_client_load() { AnalyticClient proxy = new AnalyticClient(); proxy.Open(); var id = new Analytic(1); var response = proxy.Load(new Session <Analytic>() { Data = id, SqlKey = SQLKEYADMIN }); proxy.Close(); Assert.IsTrue(response.SessionOk); //Assert.AreEqual(response.ServerMessage, String.Empty); //Assert.AreEqual(response.SqlKey, this.SQLKEYPRIVATE); }