Exemplo n.º 1
0
        public async Task DeleteAsync_ServiceDoesNotExist_ReturnsNotFoundResult()
        {
            // Arrange
            _service.Setup(s => s.RemoveAsync(It.IsAny <int>())).ReturnsAsync(false);

            // Act
            var result = await _controller.DeleteAsync(It.IsAny <int>());

            // Assert
            Assert.IsType <NotFoundResult>(result);
        }