예제 #1
0
        public static HotelReservationRegisterCommandBuilder Start()
        {
            _command = new HotelReservationRegisterCommand()
            {
                Description = "Reserva de Hotel",
                InputDate   = DateTime.Now,
                OutputDate  = DateTime.Now.AddDays(10)
            };

            return(new HotelReservationRegisterCommandBuilder());
        }
        public async Task <IActionResult> CreateReservation([FromBody] HotelReservationRegisterCommand flightRegisterCmd)
        {
            await _mediator.Send(flightRegisterCmd);

            return(Ok());
        }
예제 #3
0
 public void FillData(HotelReservationRegisterCommand command)
 {
     HotelReservationDescription.SendKeys(command.Description);
     HotelReservationDate.SendKeys(command.InputDate.GetDateTimeFormats()[50]);
     HotelReservationReturn.SendKeys(command.OutputDate.GetDateTimeFormats()[50]);
 }