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); }
public async Task SetParticipationResultAsync(AppointmentParticipationSetResultDto setParticipationResult) { AppointmentParticipations.SetResult.Command command = _mapper.Map <AppointmentParticipations.SetResult.Command>(setParticipationResult); await _mediator.Send(command); }
public async Task <ActionResult> SetParticipationResult([FromRoute] AppointmentParticipationSetResultDto setParticipationResult) { await _appointmentService.SetParticipationResultAsync(setParticipationResult); return(NoContent()); }