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()); }
public async Task DeleteAsync(Guid id) { await _bookingsQuery.Delete(id); }