private MesOperator() { if (_mesClient == null) { _mesClient = new MesServiceClient(); } }
public void TestMethodGetCocTypeBySn() { var drvCfp8Tosa = new Cfp8Tosa(CreateParam, MockIlog()); string[] info; string msg; const string sn = "TW1729J04-07"; var mes = new MesServiceClient(); mes.GetCocInfoBySn(sn, out info, out msg); var bhType = drvCfp8Tosa.GetCocTypeBySn("TW1729J04-07", info); Assert.AreEqual(bhType, "BH1"); }
public JudgeCoc(MesServiceClient client, CocPnTableReader cocPnTableReader) { _mesClient = client; _cocPnTableReader = cocPnTableReader; _cocPnTableReader.ReadPnTable(); }