public IHttpActionResult GetAllLogs([FromBody] GetGeneratedDocRequest request) { request.ValidateNotNull(); return(Ok(new GetGeneratedDocResponse() { Data = _logger.GetAllLogs(request.FilterCriteria, request.SortCriteria, request.Paging), Success = ResponseStatus.Succeeded })); }
public void GetAllLogs() { GetGeneratedDocRequest getGeneratedDocRequest = new GetGeneratedDocRequest(); getGeneratedDocRequest.FilterCriteria = new List <FilterCriteria>() { }; getGeneratedDocRequest.SortCriteria = new List <SortCriteria>() { }; getGeneratedDocRequest.Paging = new Paging(); var result = controller.GetAllLogs(getGeneratedDocRequest); Assert.IsNotNull(result); }