Exemplo n.º 1
0
        public void Should_Map()
        {
            // Arrange
            var dto = new AppointmentSetVenueDto
            {
                Id      = Guid.NewGuid(),
                VenueId = Guid.NewGuid()
            };

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

            // Assert
            command.Should().BeEquivalentTo(dto);
        }
Exemplo n.º 2
0
 public async Task SetVenueAsync(AppointmentSetVenueDto setVenueDto)
 {
     SetVenue.Command command = _mapper.Map <SetVenue.Command>(setVenueDto);
     await _mediator.Send(command);
 }
Exemplo n.º 3
0
        public async Task <ActionResult> SetVenue([FromRoute] AppointmentSetVenueDto setVenueDto)
        {
            await _appointmentService.SetVenueAsync(setVenueDto);

            return(NoContent());
        }