public async Task GetById_WhenValidIdProvided_ShouldReturnOkObjectResult() { _recordService.GetById(_recordId).Returns(new RecordDo { RecordId = _recordId }); var result = await _recordsController.GetById(_recordId); result.Should().BeOfType <OkObjectResult>(); }