Esempio n. 1
0
        public async Task Delete_NotExistingGuidPassed_ReturnsNotFoundResponse()
        {
            // Arrange
            var notExistingGuid = Guid.NewGuid();

            // Act
            var badResponse = await _bookController.DeleteAsync(notExistingGuid);

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