Пример #1
0
        public async Task DeleteVendorReview_ValidArguments_InvokeRepositoryAndPublishEvent()
        {
            await _vendorService.DeleteVendorReview(new VendorReview());

            _vendorReviewRepositoryMock.Verify(c => c.DeleteAsync(It.IsAny <VendorReview>()), Times.Once);
            _mediatorMock.Verify(c => c.Publish(It.IsAny <EntityDeleted <VendorReview> >(), default(CancellationToken)), Times.Once);
        }