public async Task <BookingModel> PostAsync([FromBody] CreateBookingModel model)
        {
            var item = await _bookingsQuery.Create(model);

            var resultModel = _mapper.Map <BookingModel>(item);

            return(resultModel);
        }
        public async Task CreateShouldSaveNewBookingAsync()
        {
            // arrange
            var model = new CreateBookingModel
            {
                BookingStatusCode   = "testBooking",
                SelfBooked          = true,
                DateOfBooking       = DateTime.UtcNow.ToLocalTime(),
                OtherBookingDetails = "testOtherBookingDetails"
            };

            // act
            var result = await _bookingsQueryProcessor.Create(model);

            // assert
            result.BookingStatusCode.Should().Be(model.BookingStatusCode);
            result.SelfBooked.Should().Be(model.SelfBooked);
            result.UserEntityId.Should().Be(_currentUserEntity.Id);

            _unitOfWorkMock.Verify(x => x.CommitAsync());
        }