public void no_veterinaran_id_is_provided()
        {
            var request = new ConfirmAppointment
            {
                AttendingVeterinarianId = Guid.Empty
            };

            var sut = new ConfirmAppointmentValidator();

            sut.ShouldHaveValidationErrorFor(p => p.AttendingVeterinarianId, request);
        }
예제 #2
0
        public async Task <IActionResult> ConfirmAppointment([FromRoute] Guid id, [FromBody] ConfirmAppointment request)
        {
            request.Id = id;
            var result = await _mediator.Send(request);

            if (result is { ResourceFound : false })