public async Task GetByIdWithArtist_WhenValidIdProvided_ShouldReturnOkObjectResult() { _recordService.GetById(_recordId, loadArtist: true).Returns(new RecordDo { RecordId = _recordId }); var result = await _recordsController.GetByIdWithArtist(_recordId); result.Should().BeOfType <OkObjectResult>(); }