public void GetContainerStatus_TestCase(string lotId, int expectedNum) { DataTable dt = _mesService.GetContainerStatus(lotId); Assert.IsNotNull(dt, "Table is empty"); Assert.IsTrue(dt.Rows.Count == expectedNum); }
private async void GetWafersLot1A(string lotId) { try { MyLog.Information($"GetWafersPort1Async->_mesService.GetContainerStatus({lotId})"); dtWafers = await Task.Run(() => _mesService.GetContainerStatus(lotId)); if (dtWafers == null) { MyLog.Information($"GetWafersPort1Async->_mesService.GetContainerStatus({lotId}) returned no wafers"); } else { MyLog.Information($"GetWafersPort1Async->_mesService.GetContainerStatus({lotId}) returned some wafers"); } } catch (Exception ex) { MyLog.Error(ex, "GetWafersLot1Async()"); } finally { await Task.Delay(1000).ContinueWith(_ => { Messenger.Default.Send(new LoadingWafersMessage(thisPortNo, false, "")); }); MyLog.Debug("GetWafersLot1Async->Set LoadingWafers=false"); ConvertAndAddToGrid(dtWafers, lotId); if (string.IsNullOrWhiteSpace(_port1Lot1)) { Messenger.Default.Send(new ReFocusMessage("Lot1", null)); } else { Messenger.Default.Send(new ReFocusMessage("Lot2", null)); } } }