public async Task <ActionResult <Assessment> > GetByIdAsync(int patientId)
        {
            var query    = new GetAssessmentByPatientId.Query(patientId);
            var response = await _mediator.Send(query);

            return(Ok(response.Assessment));
        }
        public async Task GetAssessmentByPatientId_ShouldReturnAssessment()
        {
            // Arrange
            int id      = new Random().Next();
            var query   = new GetAssessmentByPatientId.Query(id);
            var handler = new GetAssessmentByPatientId.Handler(_assessmentService);

            // Act
            var response = await handler.Handle(query, new CancellationToken());

            // Assert
            response.Assessment.GivenName.Should().Be("Unit");
            response.Assessment.FamilyName.Should().Be("Test");
        }