public void DisassociateSummaryAttachment()
        {
            _attachmentCommandService.DisassociateSummaryAttachment(_reportAttachment.Id);

            //_eventDispatcher.Verify( mock => mock.Publish( It.IsAny<object>() ) );
            _summariesUnitOfWork.Verify(mock => mock.Remove(It.IsAny <SummaryAttachment>()), Times.Once);
            _summariesUnitOfWork.Verify(mock => mock.Commit(It.IsAny <ConcurrencyMode>()), Times.Once);
        }
Пример #2
0
 public void DeleteSummaryAttachment(Guid id)
 {
     _attachmentCommandService.DisassociateSummaryAttachment(id);
 }