Пример #1
0
        public async Task DeleteImage_NotFound()
        {
            // Arrange

            // Act
            HttpResponseMessage response = await controller.Delete("3617ebac-a459-xxxx-bb15-9be01b06cc48");

            // Assert
            Assert.AreEqual(response.StatusCode, HttpStatusCode.NotFound);
        }
Пример #2
0
        public async Task ReturnsNotFoundWhenIdIsMissing()
        {
            var result = await _controller.Delete(Guid.Empty);

            result.Should().BeOfType <NotFoundObjectResult>();
        }