コード例 #1
0
        public void DeleteCallsRepositoryWithDTO()
        {
            _repoMock.Setup(repo => repo.GetById(1)).Returns(_audio);
            _repoMock.Setup(repo => repo.Delete(_audio));

            _audioService.Delete(1);

            _repoMock.Setup(repo => repo.GetById(1)).Returns(_audio);
            _repoMock.Verify(repo => repo.Delete(_audio));
        }