public string GetHotelImage([FromRoute] int hotelId) { GetHotelImageCommand commandImage = CommandFactory.GetHotelImageCommand(hotelId); commandImage.Execute(); var result = commandImage.GetResult(); _logger?.LogInformation($"Se obtuvo la imagen del hotel exitosamente con el Id: {hotelId}"); return(result); }
public void GetHotelImageTest() { AddHotelCommand AddHotel = CommandFactory.createAddHotelCommand(_hotel); AddHotel.Execute(); var insertedHotelId = AddHotel.GetResult(); _insertedHotels.Add(insertedHotelId); GetHotelImageCommand GetHotelImage = CommandFactory.GetHotelImageCommand(insertedHotelId); GetHotelImage.Execute(); var base64ImageCode = GetHotelImage.GetResult(); Assert.IsNotNull(base64ImageCode); }