public async Task Handle_NoMatchingId_ThrowsNotFoundException()
        {
            var query = new GetConsultationQuery {
                Id = 99
            };

            var handler = new GetConsultationQuery.GetConsultationQueryHandler(_context, _mapper);

            Func <Task> action = () => handler.Handle(query, CancellationToken.None);

            await action.Should().ThrowExactlyAsync <NotFoundException>();
        }
        public async Task Handle_ReturnsCorrectVmAndCasefile()
        {
            var query = new GetConsultationQuery {
                Id = 1
            };

            var handler = new GetConsultationQuery.GetConsultationQueryHandler(_context, _mapper);

            var result = await handler.Handle(query, CancellationToken.None);

            result.Should().BeOfType <GetConsultationVm>();
            result.Id.Should().Be(1);
            result.Plans.Should().Be("rv by end of week. ease into hydrotherapy when able");
        }