public async Task GetTopOneLog() { var filter = new LogFilterRequest { Top = 1 }; var expectedResult = new LogModel() { }; var result = await logReadRepository.GetAllLogs(filter); Assert.AreEqual(expectedResult, result); }
public async Task <List <LogModel> > GetAllLogs([FromBody] LogFilterRequest filter) { return(await logReadRepository.GetAllLogs(filter)); }