Beispiel #1
0
        public void DeleteAudioReturnsOk()
        {
            _audioServiceMock.Setup(service => service.GetAudioById(1)).Returns(_audio1);
            _audioServiceMock.Setup(service => service.Delete(1));

            var result = _controller.DeleteAudio(1);

            Assert.IsType <OkResult>(result);
        }