public async Task LobsController_GetById_28() { //Arrange string expectedTitle = "Visionstream NZ"; int ID = 28; var controller = new LobsController(_lobsService); // Act IActionResult actionResult = await controller.GetById(ID); // Assert Assert.NotNull(actionResult); OkObjectResult result = actionResult as OkObjectResult; Assert.NotNull(result); var _Lob = result.Value as tblLOBs; Assert.Equal(expectedTitle, _Lob.LOB); }
public async Task <IActionResult> Controller_GetById() => await _controllerLobs.GetById(8);