Beispiel #1
0
        public async Task DeleteDocumentAsync_Verify_CallService()
        {
            //arrange
            _documentsRepositoryMock.Setup(mock => mock.DeleteDocumentAsync(It.IsAny <int>()))
            .Returns(Task.FromResult(true));

            //act
            await _documentsService.DeleteDocument(1);

            //assert
            _documentsRepositoryMock.Verify(mock => mock.DeleteDocumentAsync(1), Times.Once);
        }