Beispiel #1
0
        public void Should_Map()
        {
            // Arrange
            var dto = new AppointmentParticipationSetResultDto
            {
                Id       = Guid.NewGuid(),
                PersonId = Guid.NewGuid(),
                ResultId = Guid.NewGuid()
            };

            // Act
            SetResult.Command command = _mapper.Map <SetResult.Command>(dto);

            // Assert
            command.Should().BeEquivalentTo(dto);
        }
Beispiel #2
0
 public async Task SetParticipationResultAsync(AppointmentParticipationSetResultDto setParticipationResult)
 {
     AppointmentParticipations.SetResult.Command command = _mapper.Map <AppointmentParticipations.SetResult.Command>(setParticipationResult);
     await _mediator.Send(command);
 }
Beispiel #3
0
        public async Task <ActionResult> SetParticipationResult([FromRoute] AppointmentParticipationSetResultDto setParticipationResult)
        {
            await _appointmentService.SetParticipationResultAsync(setParticipationResult);

            return(NoContent());
        }