コード例 #1
0
        public async Task DeleteShouldMarkBookingAsDeleted()
        {
            // arrange
            var booking = new BookingEntity {
                Id = Guid.NewGuid(), UserEntityId = _currentUserEntity.Id
            };

            _bookingList.Add(booking);

            // act
            await _bookingsQueryProcessor.Delete(booking.Id);

            // assert
            booking.IsDeleted.Should().BeTrue();
            _unitOfWorkMock.Verify(x => x.CommitAsync());
        }
コード例 #2
0
 public async Task DeleteAsync(Guid id)
 {
     await _bookingsQuery.Delete(id);
 }