public async Task Can_Get_LpcReport_Async() { var sut = await _lpcReportService.GetLPCReportAsync(1); Assert.NotNull(sut); Assert.IsType <LpcReportModel>(sut); Assert.NotEmpty(sut.PhotoURL); Assert.NotEmpty(sut.PdfURL); Assert.NotEmpty(sut.MapURL); }
public async Task <IActionResult> Get(int id) { if (id == 0) { return(BadRequest()); } var result = await _lpcReportService.GetLPCReportAsync(id); if (result == null) { return(NotFound()); } return(Ok(result)); }