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

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