public async Task GetGridLogs_Filter_Eq_MessageId_String() { var key = "MessageId"; var value = "BARS-MESS-6730233"; var paramMessageId = CreateQueryRules(key, value); filterParameters.RulesSet.Rules.Add(paramMessageId); var data = await showLogsService.GetGridLogs(filterParameters); var expectValue = data.Data.FirstOrDefault(); Assert.IsNotNull(data); Assert.AreEqual(expectValue.MessageId, value); }
public async Task <ActionResult> GetAllLogsData([FromBody] ShowLogFilterParameters filterParameters) { var logData = await _showLogService.GetGridLogs(filterParameters); return(Ok(logData)); }